I would like to set up a two hop VPN due to the network connection reliability, i.e. A=>B=>C=>Internet. A,B and C are at different locations on Internet. Currently, the tunnel between A and B is through OpenVPN (B as OpenVPN server on interface tun0 with ip 10.8.0.1, A as OpenVPN client with ip 10.8.0.2). B and C are currently connected via PPTP(C as the pptp server on interface ppp0 with ip 10.0.0.1, B using pptp-linux as pptp client on interface ppp0 with ip 10.0.0.235). What iptables rule do I need to add on B and C? Currently I have tried this on B
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o ppp0 -j MASQUERADE
with this on C
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE
But it does not work as expected. What else do I need for the iptables or the openvpn or pptp configurations? Thank you very much for all your help