Hi All, I'm setting up a VPS to use as VPN server, running Debian 6. I'm following this guide,
http://library.linode.com/networking/openvpn/debian-6-squeeze. I'm down to the point titled "Tunnel All Connections through the VPN", and I'm getting an error when I enter the iptables commands.
Here are their commands:
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
The first 3 are accepted, but on the last one I get the error message "No chain/target/match by that name." Here's the output of iptables -L.
lenwood@server:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 10.8.0.0/24 anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Can anyone help me? Thanks!