X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=examples%2Fmasquerading-firewall.mdwn;h=6305950432168934d73e80df6b414a92c4775ca3;hb=8cf4197bf783a7d55ca82979a1c6c06580548121;hp=63377c1c7765db4525bd9c9b466d0ef27b4e1da8;hpb=7c74a57cd95cfc0358fdd5980d9170ea16751dfb;p=wiki diff --git a/examples/masquerading-firewall.mdwn b/examples/masquerading-firewall.mdwn index 63377c1..6305950 100644 --- a/examples/masquerading-firewall.mdwn +++ b/examples/masquerading-firewall.mdwn @@ -72,13 +72,12 @@ The network setup is as follows: > host# cat /etc/tinc/vpn/tinc.conf > Name = atwork -> Device = /dev/tun > ConnectTo = home > > host# cat /etc/tinc/vpn/tinc-up > #!/bin/sh > -> ifconfig vpn 192.168.10.20 netmask 255.255.0.0 +> ifconfig $INTERFACE 192.168.10.20 netmask 255.255.0.0 > > host# ls /etc/tinc/vpn/hosts > atwork home @@ -158,7 +157,7 @@ The network setup is as follows: > > iptables -t nat -F POSTROUTING > # Next rule prevents masquerading from altering source port of outbound tinc packets -> iptables -t nat -A POSTROUTING -p udp -m udp -sport 655 -j MASQUERADE -o ppp0 --to-ports 655 +> iptables -t nat -A POSTROUTING -p udp -m udp --sport 655 -j MASQUERADE -o ppp0 --to-ports 655 > iptables -t nat -A POSTROUTING -j MASQUERADE -o ppp0 > > iptables -t nat -F PREROUTING