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 have 4 Chains in my iptables table - INPUT, OUTPUT, FORWARD and MYCUSTOM-CHAIN

Now, i have a rule in my INPUT chain that filters all tcp traffic with destination port as 23. I need to re-route all this traffic to MYCUSTOM-CHAIn.

Please let me know if that's possible?

share|improve this question
up vote 6 down vote accepted
-A INPUT -p tcp --destination-port 23 -j MYCUSTOM-CHAIN
share|improve this answer
SWEET!! WORKED LIKE A CHARM, I had it almost figured out.. :) Thanks! – Jasdeep Singh May 20 '11 at 19:18
@Jasdeep Singh: Please accept the answer then, to mark it solved. – Seth Robertson May 20 '11 at 19:40

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.