Re: Natted packets

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

 



> Is it possible to know if a packet passing through my router is (s)natted?

I think `-m conntrack --ctstate SNAT` should do that.

> And the original (s)natted IP?

For userspace there's a getsockopt() call that you can use to find out.


	-`J'
-- 


[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