PDA

View Full Version : [ubuntu] how do i view the content of iptable "PREROUTING"


firsttimeuser
March 30th, 2009, 05:56 PM
I wrote some rules using

iptables -A PREROUTING x.x.x.x.x

and

iptables -A POSTROUTING X.X.X.X

and iptables -L -vn does not show anything, what is the command to list the rules I just appended into the chains? thanks

bodhi.zazen
March 30th, 2009, 06:03 PM
sudo iptables -L -vt nat

firsttimeuser
March 30th, 2009, 06:21 PM
thanks a lot!