(The parameters are network address, gateway address and netmask of the network address.) To configure your Mac to use your Pi as the gateway to the VPN network you use (with 192.168.10.11 as the example Pi address): route add 10.128.0.0 192.168.10.11 255.255.0.0 On your Pi, once the VPN is connected, you need only enable packet forwarding with echo 1 >/proc/sys/net/ipv4/ip_forward`. You'll need to know address of the network you're connecting to when you connect your VPN if it's not obvious from the configuration you can run ip route on the Pi before and after connecting and see what new routes were added. You need to configure your Pi to route between the VPN interface and its local network interface and then configure the Mac to use the Pi as a gateway to the VPN.
0 Comments
Leave a Reply. |