Assistance with VPN routing for one-to-one native connections
Assistance with VPN routing for one-to-one native connections
Background: VPN server running at home. Access it from my phone externally and obtain a static IP (10.10.100.101). Need to establish a direct nat connection between the VPN server and my LAN so I can apply IP rules. Plan is to route traffic from 10.10.100.0 internally. Intended to set up a 1:1 nat between 10.10.100.0 and 10.10.101.0, giving each VPN device its own LAN IP for management. Experienced delays getting it working correctly. Checked router logs and noticed an IPv4 source from 157.240.8.13 on 10.10.101.101 via eth0. Investigated and think my IPtables on the VPN server aren’t updating source IPs, causing requests from my phone to appear as if they’re coming from 10.10.101.0. When the response arrives, that network doesn’t exist, so it can’t be routed. Is this correct? And what should I do to fix it or adjust the setup? Thanks ahead.
Many of these details are unclear. You may need to set up a route in your router so that traffic destined for the 10.10.101.0 network connects to your local VPN server's IP address.
I was discussing routing, but a one-to-one NAT would handle that. Sadly I’m not very comfortable with 1:1 NAT.