WAN=eth1 VPN=tun0 LAN=eth0 #Enable packet forwarding to function as a router echo 1 > /proc/sys/net/ipv4/ip_forward iptables --append FORWARD --in-interface $LAN -j ACCEPT #Enable MASQUERADE to function as a NAT router iptables --table nat --append POSTROUTING --out-interface $WAN -j MASQUERADE iptables --table nat --append POSTROUTING --out-interface $VPN -j MASQUERADE
With shorewall, I had the following instead:
/etc/shorewall/interfaces: #ZONE INTERFACE BROADCAST OPTIONS net tun0 detect /etc/shorewall/masq #INTERFACE SOURCE ADDRESS PROTO PORT(S) IPSEC MARK tun0 192.168.0.0/24
2 comments:
are u saying ff disguises some sort of undercurrent for example? just because it's free it does not mean there's no quality involved. Look at windows ME, it was not free but I don't see ant quality there?
Post a Comment