0

Using the latest TPROXY with the Linux Kernel, how would I get the IP address of the remote/destination machine? I am assuming that the local/source endpoint is returned from accept().

unixman83
  • 9,421
  • 10
  • 68
  • 102

1 Answers1

0

The original (before rerouting) remote destination will be in getsockname(). accept() will return the local (local enough BUT NOT an interface on the computer) source address.

unixman83
  • 9,421
  • 10
  • 68
  • 102