Will socket get the forwarded IP packets?

Mar 22, 2016 at 9:49pm
If I configure the ip forwarding in linux, e.g: forward the IP 192.168.2.1/24 to 192.168.3.1

Then my socket is binding with 192.168.3.1. In this case, will the socket the get the packets which IP is inside 192.168.2.1/24? What I mean "get" is whether socket API such as read() will return the data in the packet for the user.

Thanks.
Topic archived. No new replies allowed.