Assuming here that your using a Cisco router. After defining the inside and outside interfaces offcourse. All you have to do is use the ip nat. somthing like this:
ip nat inside source static tcp 192.168.1.100 80 188.8.131.52 80
This is a static nat for a web server. 192.168.1.100 is the web server's inside private IP. 80 is the http port. 184.108.40.206 is the web server's public IP (the one people will type in the browser). 80 again is http port.
In English, the line above tells the router: "When ever a packet comes from the outside, requesting a connection to 220.127.116.11 with port 80. Then replace the IP whith 192.168.1.100, keep the 80 port the same, and send the packet inside to 192.168.1.100"
Re: static natting configure with example
7 years 2 months ago #37064