10

im using command like this :

iptables -t nat -A PREROUTING -p tcp -d 192.168.1.118 --dport 4080 -j DNAT --to-destination 192.168.1.118:4088

My question what is command to look all rules in the selected chain. I'm using iptables -L but it doesn't display anything. But, that's command is successfull to redirect.

1 Answer 1

18
iptables -L -t nat

use the table name with -t

2
  • Thx it works. Then, how to delete the rules?
    – dtnder
    Commented Dec 23, 2012 at 10:04
  • 2
    In the command that you have specified use -D instead of -A .
    – daya
    Commented Dec 23, 2012 at 10:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .