You are not logged in.
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
Have you updated your kernel and not rebooted?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thank you ) It was the problem.
Offline