Networking Forums

Networking Forums > Computer Networking > Linux Networking > Something between DNAT and REDIRECT

Reply
Thread Tools Display Modes

Something between DNAT and REDIRECT

 
 
Tomasz Grzelak
Guest
Posts: n/a

 
      11-07-2006, 09:08 PM
Hello!

Is there a way to make iptables change destination port only for a
tcp/udp packet? As the manual says DNAT takes ip[ort] as the argument,
but I don't know the ip (it can be any host).
I mean something like the REDIRECT, but without touching the ip addr, it
should remain untouched; the port should be changed only.

Can it be done?

thanks,
Myst

 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-12-2006, 12:43 AM
Hello,

Tomasz Grzelak a écrit :
>
> Is there a way to make iptables change destination port only for a
> tcp/udp packet? As the manual says DNAT takes ip[ort] as the argument,
> but I don't know the ip (it can be any host).
> I mean something like the REDIRECT, but without touching the ip addr, it
> should remain untouched; the port should be changed only.


Your manual is not up to date or inaccurate. "-j DNAT --to ort[-port]"
is valid and does what you want.
 
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
Loopback DNAT André Hänsel Linux Networking 5 07-04-2008 10:03 AM
DNAT cap Windows Networking 0 01-18-2006 01:04 PM
Proxy ARP and DNAT manish Linux Networking 0 08-03-2005 03:56 AM
Iptables {DNAT,REDIRECT} Akede Linux Networking 1 10-07-2004 03:06 AM
Cant get DNAT working on 2.6.7 Joaco Linux Networking 4 08-10-2004 07:59 PM



1 2 3 4 5 6 7 8 9 10 11