View Full Version : How to NAT from Public IP to Private IP
sauravshree
01-08-2008, 09:31 AM
Hi!
I m Sauravshree from Nepal. I wanna configure a mail server on a private ip. i have a router with two interface WAN and LAN. Wan Interface is configured with public ip and my mail server is configured with one of the private ip.
i wanna configure the router if any request comes on the router destined to the tcp port 6060, it should be forwarded to the privated ip where mail server is running(port:6060).
Is there any one who solve this problem? plz write the commands in sequence...
dbeare
01-12-2008, 05:12 PM
Which model router are you using?
avinash
01-14-2008, 01:51 AM
Hi,
It would have been easier with router model/series. In general we configure Lan Interface with "ip nat inside" and WAN Interface with "ip nat outside",
int f0/0
Ip nat inside
int s0/0
Ip nat outside
and in global configuration mode:
ip nat inside source static tcp {private Ip} 6060 {public Ip} 6060
A.
HermeszData
11-10-2009, 12:44 AM
Hi,
It would have been easier with router model/series. In general we configure Lan Interface with "ip nat inside" and WAN Interface with "ip nat outside",
int f0/0
Ip nat inside
int s0/0
Ip nat outside
and in global configuration mode:
ip nat inside source static tcp {private Ip} 6060 {public Ip} 6060
A.
I am working on a similar situation trying to bring access to my web server. When I try my public IP address I cannot reach the server. from the inside, on the private IP addy everything works fine. How can i verify functionality without getting into my car with my laptop and trying to locate one of my favorite ISP... you know, D-Link, Linksys, Netgear, etc ...:(
buzz2pravin
11-10-2009, 08:42 AM
Hi... i m not sure whether this is solution for ur problem.. but i hope it will help you...generally NAT works on requests originated from the inside network...i.e. mapping inside local to inside global ip address.
when the request is originated from the outside n/w , you will have to do the port forwarding on the router.( i do that when using DC++ client on my PC).linksys routers provide the option of port forwarding.
u can visit the website http://portforward.com/
HermeszData
11-11-2009, 06:00 PM
While out today, I tried accessing my server and it works!
Oh well, So much for local varification.
Connect a laptop to the outside of your network and assign it a public IP address, then try and access your inside network.
HermeszData
11-12-2009, 09:02 AM
Just use my web ready pda. Crackberry, G1, H1!;)
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.