iptables not writing rules.

Posted by Darkmage on Server Fault See other posts from Server Fault or by Darkmage
Published on 2010-06-03T07:39:01Z Indexed on 2010/06/03 7:44 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

im running these two rules as root, but when doing a iptables -L it dosent show any rules, any one have an idea of what the problem can be?

iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 --source 84.244.145.135 -j REDIRECT --to-port 1222
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 --source 243.134.97.194 -j REDIRECT --to-port 1222

duno@Virtual-Box:/home/glennwiz# iptables -L

Chain INPUT (policy ACCEPT) target prot opt source destination

Chain FORWARD (policy ACCEPT) target prot opt source destination

Chain OUTPUT (policy ACCEPT) target prot opt source destination

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu