Article 5M615 Linux - ip forwarding, masquareding, NAT

Linux - ip forwarding, masquareding, NAT

by
guy_sarav
from LinuxQuestions.org on (#5M615)
hi,
I have one physical interface eth0 on my target.
ip address of this interface is 172.16.81.xx (public ip)

I have to create a virtual interface eth0:1 with ip address 173.1.1.x.
Will be running socket server with custom port 49155 using ip address 173.1.1.x

From another PC/target i should not be able to ping 173.1.1.x
However, from another PC i will be running a socket client program.
This client should be able to connect to port 49155 on 172.16.81.xx public ip.

Have tried NAT, bridge but not successful.

Please let me know how this can be done.
Thanks,
saravlatest?d=yIl2AUoC8zA latest?i=qCazVtZZ3A8:9yZo8RojvXU:F7zBnMy latest?i=qCazVtZZ3A8:9yZo8RojvXU:V_sGLiP latest?d=qj6IDK7rITs latest?i=qCazVtZZ3A8:9yZo8RojvXU:gIN9vFwqCazVtZZ3A8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments