I have set up a linux gateway at home that other computers use where eth0 is connected to the internet and eth1 is connected to my home network. I am having some problems with vpn connetions though. Below is what I do when I start the gateway script:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A POSTROUTING -t nat -o eth0 -s 192.168.1.0/24 -d 0/0 -j MASQUERADE
iptables -A FORWARD -t filter -i eth1 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -t filter -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
I am not even sure if all that is neccessary. Anyway, I also do modprobe with the following modules:
Does anyone here know what else that I need to do to make my gateway support vpn stuff? Please keep in mind that I am by no means an advanced user.
btw ... There are both windows and linux machines on my network.