![]() ![]() Iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADEĮcho "1" | sudo tee /proc/sys/net/ipv4/ip_forward Here's the commands I use to setup raspberry pi to route incoming connections to tun0: iptables -A FORWARD -o tun0 -i eth0 -m conntrack -ctstate NEW -j ACCEPT Raspberry pi runs an openvpn client and has ip_forward and masquerade enabled in IP Tables so any incoming TCP/IP connection on ethernet port will be forwarded to tun0 which belongs to openvpn. I have configured my router to route some of connections to my raspberry pi.
0 Comments
Leave a Reply. |