Port forwarding problem

Port forwarding problem

Post by Guillaume Financ » Mon, 18 Sep 2000 04:00:00



Hello,

I managed to use ipchains and ipmasqadm portfw (port forwarding) so that:
- my LAN is masqueraded to access the outside network (i.e. Internet)
- a host from the outside can access the Web server in the LAN using the
port forwarding

Web server (LAN) private IP address: 192.168.1.1
Port forwarding rule: 111.222.333.1 / 80 (public) -> 192.168.1.1 / 80 (LAN)

My problem is:
                             if I open my browser on the web server (LAN) or
any client host in the LAN
                            and want to access the site
                             www.test.com which IP address is 111.222.333.1,
                             the port forwarding doesn't work to say:
111.222.333.1 / 80 redirected to
                             192.168.1.1 / 80

Is there a way to solve this problem?

cheers
Guillaume

 
 
 

Port forwarding problem

Post by Matt Goz » Thu, 21 Sep 2000 04:00:00



> Hello,

> I managed to use ipchains and ipmasqadm portfw (port forwarding) so that:
> - my LAN is masqueraded to access the outside network (i.e. Internet)
> - a host from the outside can access the Web server in the LAN using the
> port forwarding

> Web server (LAN) private IP address: 192.168.1.1
> Port forwarding rule: 111.222.333.1 / 80 (public) -> 192.168.1.1 / 80 (LAN)

> My problem is:
>                              if I open my browser on the web server (LAN) or
> any client host in the LAN
>                             and want to access the site
>                              www.test.com which IP address is 111.222.333.1,
>                              the port forwarding doesn't work to say:
> 111.222.333.1 / 80 redirected to
>                              192.168.1.1 / 80

> Is there a way to solve this problem?

> cheers
> Guillaume

If you post the ipmasqadm rules you used to set up the port forwarding,
it might give someone a clue as to what the problem is.

I also am set up so this happens, but I don't worry about it because I
always use the name of the actual web server from inside the firewall,
therby avoiding that problem.

Matt Gozo

 
 
 

1. iptables smtp port forwarding problem

Hello,
   I'm relatively new to linux and iptables. I'm running Redhat 8.0,
iptables 1.2.6a, and using script for iptables created via a utility
called gShield.  I'm trying to setup the linux box as a
gateway/firewall for a small lan.  The linux box has 2 nics, one for
the internal network and the other connected to the internet via a
cable connection.  The gateway should also forward mail on port 25 to
an internal w2k mail server.  After running the configuration script,
I can browse the internet just fine from the internal network using
the linux box as a gateway.  Port 25 is open and is forwarding to the
windows box, but when I telnet to the linux box on port 25 I get a
Connect failed message.  The mail server log shows that a connection
was made then immediately dropped.  I can telnet to the internal mail
server on the internal network, and also through another
firewall/router that is connected to the internet via a T1 line.(The
T1 is thru adelphia, now bankrupt, so we are switching to roadrunner).
 Anyway, can anyone help?

2. copying file from CD hangs system

3. Firewall & port forward problem

4. XFree 3.3.x Cirrus 7548 support

5. Port Forwarding Problems

6. Gnome install fails...

7. Port forwarding problem

8. Slow connection; aopen modem/kppp?

9. Port Forwarding Problem

10. ipchains port forwarding problems

11. Port Forwarding Problem

12. iptables port forwarding problem

13. port forwarding problems (ipmasqadm + ipchains)