Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables --sport doesn't seem to work with REDIRECT

Reply
Thread Tools Display Modes

iptables --sport doesn't seem to work with REDIRECT

 
 
jorge.hodge@gmail.com
Guest
Posts: n/a

 
      10-09-2007, 10:26 PM

iptables -t nat -A PREROUTING -p tcp --sport 6666 --dport 2222 -j
REDIRECT --to-ports 22

I would expect this to redirect only the packets with the source port
being 6666 but instead any packet with 2222 as destination port is
redirected. Does it ignore --sport?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables redirect question. yozhang@gmail.com Linux Networking 1 12-09-2005 09:22 PM
ip address redirect with iptables adam Linux Networking 2 09-09-2005 02:02 AM
iptables? redirect? M3ntos Linux Networking 3 05-20-2005 08:16 AM
Iptables {DNAT,REDIRECT} Akede Linux Networking 1 10-07-2004 03:06 AM
Iptables SSL redirect Fritz Bayer Linux Networking 6 07-20-2004 06:08 AM



1 2 3 4 5 6 7 8 9 10 11