MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: iptables: No chain/target/match by that name  (Read 5551 times)

0 Members and 1 Guest are viewing this topic.

Offline Administrator

  • Chinmay Dingore
  • Administrator
  • Full Member
  • *****
  • Posts: 135
  • Karma: +1/-0
    • View Profile
    • MilesWeb Internet Services Pvt Ltd
iptables: No chain/target/match by that name
« on: March 12, 2014, 12:00:27 PM »
Hi Members,

When trying to add any rule in iptables on your VPS with OpenVZ virtualization, you might receive an error below.

Quote
iptables: No chain/target/match by that name

You will have to enable few modules on the node and then for the VPS. On the node, execute commands below.

Quote
[root@server ~]#modprobe xt_tcpudp
[root@server ~]#modprobe ip_conntrack
[root@server ~]#modprobe xt_state

If you want to use stateful firewall rules (and you should!) you will also need to make sure that 'ipt_state' is in the 'IPTABLES' option in your vz.conf file

Quote
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state"

Restart your container & then try adding the iptables rule. It would work as expected.
MilesWeb.com - Your Hosting, Our Responsibility!
Unlimited Hosting Plans | Managed VPS with 20% Discount

MilesWeb Hosting Forum

iptables: No chain/target/match by that name
« on: March 12, 2014, 12:00:27 PM »