On Wed, 21 Apr 2004 11:18:57 -0400
Paco Jones <(E-Mail Removed)> wrote:
> This is driving me nuts... I've read all the posts that I can find
> about DNAT and IPTABLES; I've had very informative replies on how to set
> this up and it's still cauing me issues. Here goes:
>
> FIREWALL EXT INTERFACE: 65.222.35.249
> FIREWALL INT INTERFACE: 192.168.0.248
> WEB HOST: 192.168.0.5
>
> The root of the problem is that I need to OPEN port 80 on the Firewall
> external interface. The only way that I have found to do this is to
> start Apache; but then the requests are not forwarded to the internal
> webserver.
>
> I have a Linksys router at home that is doing this exact thing; NOW when
> I run nmap on my machine at home, it shows port 80 open and the
> request is forwarded correctly but on my test machine when I do nmap
> it only shows the port open if Apache is running on the firewall
> server.
>
> I'm using webmin to setup the rules:
> "accept protocol TCP and destination port 80 and state new" above that
> is a rule
> "accept if state is related or established"
> then I have DNAT rules setup
> "accept if protocol is tcp and input interface is eth0 (external
> interface) destination is 80"
>
> What do I need to do to open port 80 without using Apache on the firewall?
First check if the webserver is running and listening on port 80. Then you can check from the outside, if the port
is open. If the firewall is setup right, the packets are forwarded to the webserver, but if the webserver is not
running, the port on the webserver is closed. From the outside, you can't see the difference between closed port on the firewall or closed port on the server behind if using DNAT
Greets
Chris
|