sourcingzoqa.blogg.se

Raspberry router os
Raspberry router os












raspberry router os raspberry router os

You now need to enable IP forwarding by editing /etc/nf and uncomment the line _forward = 1 Save and make it executable with chmod +x /etc/network/if-pre-up.d/iptables. sbin/iptables-restore < /etc/iptables.up.rules To make it permanent, save it like this sudo bash

raspberry router os

Next step, modify iptables to allow NAT iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE I used the sample provided by my vpn service (Witopia) and change dev tun to dev tun0 and added redirect-gateway at the end. Next, you have to set the config file for the vpn /etc/openvpn/nf. I have the same setup as you: Cable modem -> Router (192.168.1.1) +-> Raspberry Pi (192.168.1.11)įirst, I changed my network settings ( /etc/network/interfaces) on the RPi to a static address iface eth0 inet staticĪfter that, you need to setup the OpenVPN on the RPi: sudo apt-get install openvpn














Raspberry router os