What is command to look list of redirect rules, iptables

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

iptables -L -t nat

use the table name with -t

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like