Re: SNAT every packet in a connection

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

 



I should have explained in my original posting that this is for Point
to Point application. I have a
server at the other end  (receiving end of the connection) which will
receive these packets, make the source IP the same and
deliver to the LAN.
And as I said - I am already doing this today - albeit with many caveats such as
a) Point to Point load-balancing only (remote to central site)
b) Currently handle only one host in remote site





"Ashok Rao" <greatarbor@xxxxxxxxx> writes:

> From whatever I've read and seen myself, the NAT table is only
> traversed for the first packet of a connection. Hence packets in a
> single connection will always be SNATed to the same IP - Hence the
> packets going out on one of the interfaces will not have the right
> source IP.

The receiving end of the connection will be rather confused when it
gets 10 packets from 1.1.1.1 followed by 10 packets from 2.2.2.2 in
the same connection. Or rather, it should just drop the ones from
2.2.2.2.

What you want is basically impossible.


/Benny
-
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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