outline-server icon indicating copy to clipboard operation
outline-server copied to clipboard

Access Server Lan

Open posLop opened this issue 3 years ago • 2 comments

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

posLop avatar Sep 23 '21 01:09 posLop

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

kingforaday avatar Nov 22 '21 02:11 kingforaday

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

gokmensercan avatar Feb 12 '24 07:02 gokmensercan