Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm following a guide for setting up a trasparent TOR proxy on my server.

There are several iptables rules in the guide, two of which are:

iptables -t nat -A OUTPUT -p udp --dport 53 -j REDIRECT --to-ports 53

iptables -t nat -A OUTPUT -p tcp --syn -j REDIRECT --to-ports 9040

All the other rules appear just fine, but those two do not show up in iptables -L, even right after setting them.

Theres no error message or anything.

Can anyone tell me why?

share|improve this question

migrated from stackoverflow.com May 7 '11 at 18:32

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 5 down vote accepted

Those are on the nat table, so:

iptables -t nat -L

will list them. This

iptables -L

is equivalent to:

iptables -t filter -L

There is also a mangle table, for "mangling" packets:

iptables -t mangle -L
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.