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 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

1 Answer 1

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

 
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.