Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Server Lan #987

Open
posLop opened this issue Sep 23, 2021 · 2 comments
Open

Access Server Lan #987

posLop opened this issue Sep 23, 2021 · 2 comments

Comments

@posLop
Copy link

posLop commented Sep 23, 2021

i want to be able to access my lan that my server is on so that i can access things like router gateway and local media servers

@kingforaday
Copy link

I just tried Outline Server yesterday myself and ran into this question. It is possible, but you need to make some modifications. I have not tried to understand if there is an easier way and undecided if I will, but

  1. You are being blocked by the distributed outline-ss-server binary. There is a check for private IP address in net/private.go. If it returns True, you will be met with ERR_ADDRESS_PRIVATE and it subsequently blocked. To work around this:
  • Check out the Jigsaw-Code/outline-ss-server project and change the following:
diff --git a/net/private_net.go b/net/private_net.go
index 3e10bf5..385c271 100644
--- a/net/private_net.go
+++ b/net/private_net.go
@@ -39,6 +39,7 @@ func init() {

 // IsPrivateAddress returns whether an IP address belongs to the LAN.
 func IsPrivateAddress(ip net.IP) bool {
+       return false
        for _, network := range privateNetworks {
                if network.Contains(ip) {
                        return true
  • After rebuilding this binary, use it in place of the one in outline-server/third_party/outline-ss-server/linux
  1. Don't forget you will also need to manually set your client-side routes for your LAN side:
# 10.132.0.0/16 is your LAN CIDR 
# Where 10.111.222.0 is the outline-server IP connection route
sudo route -n add 10.132.0.0/16 10.111.222.0

@gokmensercan
Copy link

Hi,
Is there or will there be any official development about local network access for OutlineVPN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants