All of lore.kernel.org
 help / color / mirror / Atom feed
* Altering a packet's port
@ 2005-03-21 20:43 Nicolas Ross
  2005-03-21 22:00 ` Sertys
  0 siblings, 1 reply; 11+ messages in thread
From: Nicolas Ross @ 2005-03-21 20:43 UTC (permalink / raw)
  To: netfilter

Hi all !

I have a quite "standard" setup as follow :

192.168.7.x/24 -> iptables/router  SNAT --to-source a.b.c.d  -> internet

What I want to do, is that if a packet originites from the local net 
(192.168.7.x) on tcp port 22, that the final destination of the packet would 
wtill be the same host, but on port 8022...

Like this :

Normal :

192.168.7.1 ssh to f.g.h.i on port 22

the connection is :

192.168.7.1:sport -> f.g.h.i:8022

Is it possible ?

I've tried with REDIRECT, but it afects the destination of the packet, but I 
don't want that...

Thanks,

Nicolas 



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-03-22 18:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-21 20:43 Altering a packet's port Nicolas Ross
2005-03-21 22:00 ` Sertys
2005-03-22  1:27   ` Nicolas Ross
2005-03-22 11:29     ` Jason Opperisano
2005-03-22 14:42       ` Nicolas Ross
2005-03-22 14:59         ` R. DuFresne
2005-03-22 15:12           ` R. DuFresne
2005-03-22 15:15             ` Nicolas Ross
2005-03-22 18:18               ` Toby
2005-03-22 18:29                 ` Toby
2005-03-22 18:49                   ` Nicolas Ross

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.