* port translation on the same network
@ 2004-07-18 9:34 gene bene
2004-07-19 3:39 ` George Alexandru Dragoi
2004-07-19 8:55 ` Antony Stone
0 siblings, 2 replies; 3+ messages in thread
From: gene bene @ 2004-07-18 9:34 UTC (permalink / raw)
To: netfilter
I have a print job in my network which comes in on port 10001 raw packets
(from a citrix server)
I need to use iptables to translate the port number to 9100
I have tried to set up a virtual ip (eth0:0) and use DNAT and SNAT to
translate the port with no success.
Can anyone help me with the correct settings?
Gene
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: port translation on the same network
2004-07-18 9:34 port translation on the same network gene bene
@ 2004-07-19 3:39 ` George Alexandru Dragoi
2004-07-19 8:55 ` Antony Stone
1 sibling, 0 replies; 3+ messages in thread
From: George Alexandru Dragoi @ 2004-07-19 3:39 UTC (permalink / raw)
To: netfilter
iptables -t nat -A PREROUTING -i eth0 -d <my ip> -p tcp --dport 10001
-j SNAT --to <my ip>:9100
On Sun, 18 Jul 2004 19:34:28 +1000, gene bene <phacoboy@hotpop.com> wrote:
> I have a print job in my network which comes in on port 10001 raw packets
> (from a citrix server)
>
> I need to use iptables to translate the port number to 9100
>
> I have tried to set up a virtual ip (eth0:0) and use DNAT and SNAT to
> translate the port with no success.
>
> Can anyone help me with the correct settings?
>
> Gene
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: port translation on the same network
2004-07-18 9:34 port translation on the same network gene bene
2004-07-19 3:39 ` George Alexandru Dragoi
@ 2004-07-19 8:55 ` Antony Stone
1 sibling, 0 replies; 3+ messages in thread
From: Antony Stone @ 2004-07-19 8:55 UTC (permalink / raw)
To: netfilter
On Sunday 18 July 2004 10:34 am, gene bene wrote:
> I have a print job in my network which comes in on port 10001 raw packets
> (from a citrix server)
>
> I need to use iptables to translate the port number to 9100
>
> I have tried to set up a virtual ip (eth0:0) and use DNAT and SNAT to
> translate the port with no success.
>
> Can anyone help me with the correct settings?
Apply this rule on the machine receiving the packets:
iptables -A PREROUTING -t nat -p tcp --dport 10001 -j DNAT --to :9100
(Assuming you meant they are TCP packets; if they're UDP just change the rule
in the obvious manner).
Regards,
Antony.
--
This email was created using 100% recycled electrons.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-07-19 8:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-18 9:34 port translation on the same network gene bene
2004-07-19 3:39 ` George Alexandru Dragoi
2004-07-19 8:55 ` Antony Stone
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.