News: This forum is now permanently frozen.
Pages: [1]
Topic: m0n0wall with static IP, redirecting to a webserver  (Read 1155 times)
« on: December 09, 2014, 20:52:34 »
chemaramirez1 *
Posts: 9

Hi, all.

I have a m0n0wall to which a static IP has been assigned, I have a Web Server I want clients to access using the IP the m0n0wall has, I have already used NAT, but it doesn't seem to work, what can the problem be?

Thanks in advance.
« Reply #1 on: December 09, 2014, 21:08:56 »
Fred Grayson *****
Posts: 994

In addition to configuring NAT, did you also configure a matching Firewall Rule?

Are you testing this from the LAN behind the m0n0wall, or from out on the internet?

--
Google is your friend and Bob's your uncle.
« Reply #2 on: December 09, 2014, 21:20:11 »
chemaramirez1 *
Posts: 9

Hi, thanks for your reply.

Is the matching Firewall Rule the one that is automatically configured when selecting "Auto-add a firewall rule to permit traffic through this NAT rule"?

I've tested from out on the internet, and also from the LAN behind the m0n0wall, and none has worked. I believe that the test from the LAN is obvious from the NOTE under NAT.
« Reply #3 on: December 09, 2014, 21:43:39 »
Fred Grayson *****
Posts: 994

If you selected to auto-add the rule, then the correct rule will be added. You are correct that testing from the LAN will not work.

At this point, you probably should post screenshots of the Firewall NAT and Firewall Rules pages.

--
Google is your friend and Bob's your uncle.
« Reply #4 on: December 09, 2014, 21:56:55 »
chemaramirez1 *
Posts: 9

Here are the screenshots:


* firewall_nat.jpg (73.85 KB, 1024x768 - viewed 177 times.)

* Firewall_rules.jpg (85.52 KB, 1024x768 - viewed 172 times.)

* interfaces_wan.jpg (100.31 KB, 1024x768 - viewed 181 times.)
« Reply #5 on: December 10, 2014, 00:16:32 »
Fred Grayson *****
Posts: 994

In your first screenshot, you are NATing from the WAN interface port 80 to the internal port 8080.

However, in your second screenshot, the Firewall Rule is for Destination Port 80. The Int. Port in the NAT rule must match the destination port in the Firewall Rule and a service must be running on that port.

--
Google is your friend and Bob's your uncle.
« Reply #6 on: December 10, 2014, 00:29:57 »
chemaramirez1 *
Posts: 9

Thanks. I've also used the configuration you've said, and it doesn't work either. Could it be that the static IP is not accessible from the outside?
« Reply #7 on: December 10, 2014, 00:34:38 »
Fred Grayson *****
Posts: 994

It could be that port 80 is being filtered by the ISP and if so, it will be unreachable.

Is the WAN IP a routable public IP address?

--
Google is your friend and Bob's your uncle.
« Reply #8 on: December 10, 2014, 01:45:49 »
chemaramirez1 *
Posts: 9

I know it is a static IP, but that doesn't mean it is a routable public IP address, does it?.. and how can I know if it is? thanks.
« Reply #9 on: December 10, 2014, 03:00:59 »
Fred Grayson *****
Posts: 994

You could post the first three of the dotted quads.

--
Google is your friend and Bob's your uncle.
« Reply #10 on: December 10, 2014, 03:21:16 »
chemaramirez1 *
Posts: 9

what do you mean?, of the static IP?
« Reply #11 on: December 10, 2014, 04:04:32 »
Fred Grayson *****
Posts: 994

Post the m0nowall WAN interface IP address.

--
Google is your friend and Bob's your uncle.
« Reply #12 on: December 10, 2014, 19:32:50 »
chemaramirez1 *
Posts: 9

201.166.103
« Reply #13 on: December 10, 2014, 20:16:03 »
Fred Grayson *****
Posts: 994

Same IP you post to the forum with. That's a public IP. Assuming you have the NAT and Filter correct and a web server is running on port 80, then if it can't be reached all I can conclude is that your ISP is filtering the traffic. Perhaps try using another port for the NAT.


--
Google is your friend and Bob's your uncle.
« Reply #14 on: December 10, 2014, 22:03:15 »
chemaramirez1 *
Posts: 9

thanks a lot for your time and patience. I had to disable the firewall of the Modem, that was it.

Again, thanks a lot.
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines