abhishekpatel
asked on
no of masquerded connection
how to get the no of masqueraded connection by programming in c under linux. (similar to 'ipchains -L -M' command in linux).
I'm not sure what you are asking? Do you mean that you want to know what the external IP is for a host behind an IP Masquerading box (i.e in the private address space)?
ASKER
Edited text of question.
you would edit ip_forward.c and using a array for saving the external packet and change the Src_IP and Src_Port and after incomming packet do reverse work.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.