ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.18k stars 930 forks source link

Question: routing public IP to n2n tunnel #1000

Open bluesky2319 opened 2 years ago

bluesky2319 commented 2 years ago

Hello, based on the doc/routing.md section "Reach Whole Home Network from Whole Office Network", if one part (home or office) has a static public IP that is running a webserver on its port 80, how can I route the public IP traffic to the n2n tunnel? Routing.md explains many states based on local IP, but I don't know how can I route it to the public IP! For example, if at the office there is a webserver (storage server), how to send the traffic to the n2n tunnel when someone at home wants to download/upload files to the storage server? Now It works with their local IP and n2n IP. I should mention the webserver (storage server) is not n2n edge! I would appreciate any assistance!