Iptables rule creation error: No chain/target/match by that name

Posted by MikO on Server Fault See other posts from Server Fault or by MikO
Published on 2013-11-05T21:44:13Z Indexed on 2013/11/05 21:55 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

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...

© Server Fault or respective owner

Related posts about centos

Related posts about iptables