Link to home
Start Free TrialLog in
Avatar of abhishekpatel
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).
Avatar of jlevie
jlevie

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)?
Avatar of abhishekpatel

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
Avatar of rbr
rbr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial