Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 May 7 '11 at 18:32

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

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


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.