How I get the origin IP and port, when I use the NAT function?

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

 



I use the DNAT function to redirect all the traffic to loacl host.
Then my application can process the traffic.
But I want get the real destination IP before NAT transfer.

Is there any function or API, my application can get the 
relationship between the original IP and the IP after NAT.



Best Regards
Mike  YangTao

****************************************************************************
This e-mail and its attachments contain confidential information 
from HUAWEI, which is intended only for the person or entity 
whose address is listed above. Any use of the information 
contained herein in any way (including, but not limited to, 
total or partial disclosure, reproduction, or dissemination) 
by persons other than the intended recipient(s) is prohibited. 
If you receive this e-mail in error, please notify the sender 
by phone or email immediately and delete it!
*******************************************************************************


[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