This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
vpn-pi [2020/04/29 16:44] robm |
vpn-pi [2020/04/29 16:54] (current) robm |
||
---|---|---|---|
Line 149: | Line 149: | ||
Then try to connect from another device (e.g. mobile phone). The WiFi network should be visible, and when you connect you should get an IP address, but probably an error about no internet connection. That's next. | Then try to connect from another device (e.g. mobile phone). The WiFi network should be visible, and when you connect you should get an IP address, but probably an error about no internet connection. That's next. | ||
+ | |||
+ | ===== Network Address Translation ===== | ||
+ | |||
+ | Enable Network Address Translation (NAT) on any traffic that leaves us via ExpressVPN' | ||
+ | |||
+ | Note that the interface doesn' | ||
+ | |||
+ | < | ||
+ | iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE | ||
+ | </ | ||
+ | |||
+ | Note that is this is the **only** MASQUERADE rule (check with '' | ||
+ | |||
+ | < | ||
+ | iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | ||
+ | </ | ||
+ |