You are not logged in.

#1 2013-05-21 08:04:22

fzerorubigd
Member
Registered: 2011-06-19
Posts: 19

{SOLVED} iptables No chain/target/match by that name.

I have two laptop (exactly same kernel and everything) and this command :

iptables -A INPUT -p tcp -m tcp --dport 15678 -j ACCEPT

Fail on one machine and run on another one without problem.

iptables 1.4.18-1
linux 3.9.2-1

this is my /etc/iptables/iptables.rules (on both laptops) :

# Generated by iptables-save v1.4.10 on Sun Mar 27 14:58:52 2011
*filter
:INPUT ACCEPT [2074481:2388158591]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1936543:146051200]
COMMIT
# Completed on Sun Mar 27 14:58:52 2011
# Generated by iptables-save v1.4.10 on Sun Mar 27 14:58:52 2011
*nat
:PREROUTING ACCEPT [4440:528768]
:INPUT ACCEPT [2752:365640]
:OUTPUT ACCEPT [14858:1257918]
:POSTROUTING ACCEPT [14861:1258098]
-A PREROUTING -d 10.10.34.34/32 -p tcp -j DNAT --to-destination 127.0.0.1 
-A OUTPUT -d 10.10.34.34/32 -p tcp -j DNAT --to-destination 127.0.0.1 
COMMIT
# Completed on Sun Mar 27 14:58:52 2011
# Generated by iptables-save v1.4.10 on Sun Mar 27 14:58:52 2011
*mangle
:PREROUTING ACCEPT [2076169:2388321719]
:INPUT ACCEPT [2074481:2388158591]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1936543:146051200]
:POSTROUTING ACCEPT [1942627:147067228]
COMMIT
# Completed on Sun Mar 27 14:58:52 2011

( as you may know, in my country Iran, they block internet, so I use this rules to block their ip, 10.10.34.34 is that IP) 

ps - The iptables command is from pacserve. I want to setup pacserve, but in one machine I get this error.

Last edited by fzerorubigd (2013-05-22 06:19:39)

Offline

#2 2013-05-21 22:02:21

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: {SOLVED} iptables No chain/target/match by that name.

Have you updated your kernel and not rebooted?

Offline

#3 2013-05-22 06:19:18

fzerorubigd
Member
Registered: 2011-06-19
Posts: 19

Re: {SOLVED} iptables No chain/target/match by that name.

Thank you smile) It was the problem.

Offline

Board footer

Powered by FluxBB