Computing.Net > Forums > Networking > port forwarding from inside the NAT

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

port forwarding from inside the NAT

Reply to Message Icon

Name: royg
Date: February 5, 2004 at 02:08:22 Pacific
OS: 2000 server
CPU/Ram: p4 1800
Comment:

ok, this may sound silly but this is the actual problem. I have a IIS server behind NAT and I use internet sharing to portforward all http traffic to this server. the rest of the world gets to my site perfactly but, and here is the problem, the PCs behind the NAT use the same IP as the outside users to get there (don't ask why, this was stupid planning, I agree).
if anyone encountered with a simmilar problem and got it to work I'll be more than glad to hear about it.
thanx in advance, Roy.



Sponsored Link
Ads by Google

Response Number 1
Name: JackG
Date: February 5, 2004 at 04:40:55 Pacific
Reply:

I wonder, if using IE for the access to the server, what would happen if you put a HOSTS file on a machine that mapped your servers public URL and its public IP address to the servers NAT assigned IP address. You could try copying C:\Windows\HOSTS.SAM to HOSTS and edit it with those two entries and give it a try.


0

Response Number 2
Name: royg
Date: February 5, 2004 at 07:53:04 Pacific
Reply:

Thank you JackG, I'm sorry but this doesn't work - the hosts file does not recognize IP as the second parameter in the table.

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

Any thoughts will be appreciated.
Thanx, Roy.


0

Response Number 3
Name: rick
Date: February 5, 2004 at 14:29:43 Pacific
Reply:

i have the same set up, web site inside the lan with a firewall/nat for the outside world.

i use the hosts file, works great.

hosts file entry on each of the clients

192.168.0.10 www.mywebsite.com

this points the client to the interal ip of the web server. the firewall/nat points outside users the the other "DMZ" nic in the web server.

what do you mean the hosts file does not reconigze the ip as the second param? it should be the first param?



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Connection Sharing Proble... Networking woes...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: port forwarding from inside the NAT

Grrrr Port Forwarding www.computing.net/answers/networking/grrrr-port-forwarding/22551.html

router, hub, port forwarding, etc.. www.computing.net/answers/networking/router-hub-port-forwarding-etc/19934.html

MS Exchange 5.5 behind the NAT www.computing.net/answers/networking/ms-exchange-55-behind-the-nat/4694.html