PPTP NAT for the standalone PC (pptp client)

Hi,
I search around but i can’t find the solution,
How can i access to the other network from my laptop which i dialed to the PPTP server,
The other network connection: LAN network ==> Routerboard ==> PPTP VPN ==> PPTP server.
pptp.png

You need to add routing, which is always a “matter for two”:

On PPTP server: add routes to 1) 192.168.0.0/24 via 172.16.254.2 and 2) 192.168.5.0/24 via 172.16.254.9

On 192.168.0.1 router: add route to 192.168.5.0/24 via 10.10.10.2

On 192.168.5.1 router: add route to 192.168.1.0/24 via 10.10.10.2

After this, remote routers should be able to ping each other.

Now for your laptop connection, you’ll need to resort to either “use default gateway on remote network” setting for VPN connection (all your internet traffic wil go through the VPN), or manually adding more specific routes via 10.10.10.2, e.g. routes to 192.168.1.0/24 and 192.168.5.0/24 via 10.10.10.2 so that internet traffic flows via your ISP connection and only traffic addressed for the remote networks go towards the VPN.

Hi, I’m news to routing.
Do you mind to show me some CLI…

On PPTP server: add routes to 1) 192.168.0.0/24 via 172.16.254.2 and 2) 192.168.5.0/24 via 172.16.254.9


/ip route
add dst-address=192.168.0.0/24 gateway=172.16.254.2
add dst-address=192.168.5.0/24 gateway=172.16.254.9



On 192.168.0.1 router: add route to 192.168.5.0/24 via 10.10.10.2


/ip route
add dst-address=192.168.5.0/24 gateway=10.10.10.2



On 192.168.5.1 router: add route to 192.168.1.0/24 via 10.10.10.2


/ip route
add dst-address=192.168.1.0/24 gateway=10.10.10.2

Make sure no NAT is applied for the PPTP VPN endpoints, routing will take care of connectivity.

thanks.