Altering a packet's port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux