iptables is not showing updated content

hello Linux gurus,

I tried altering iptables configuration, here is my commands

/sbin/iptables -F

/sbin/iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT --to-port 8080

now when I say /sbin/iptables -L --> It does not show my latest configuration I added for port forward. Everything works fine but.

Any idea what I am missing.

cheers

2 Replies

Try using:

iptables -t nat -L

That helped. cheers mate.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct