Iptables rule creation error: No chain/target/match by that name
- by MikO
I'm trying to create my first VPN on a VPS with CentOS 6, following this tutorial.
When I have to create an iptables rule to allow proper routing of VPN subnet, with this command:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
It throws this error:
iptables: No chain/target/match by that name
I was searching and I've found that this error is usually thrown when you misspell something, but as far as I understand, the rule is correct...