hi there
we have 2 websites running on port 80 on the same server these websites are seperated by HTTP headers.
The problem i am having is when I try to access the external website from the Lan i recieve a password Prompt for the Monowall instead of being redirected to the external website.
The internal website works fine so does the external website as long as you are outside of the lan.
Do I need to create a lan to wan rule to fix this ?
If your WAN IP is the same one that the firewall shares, first you need to go into "General setup" and change the web GUI port from 80 to something else, like 8080 for example. Save and reboot m0n0wall to get the new changes to take effect.
Go back into your m0n0wall (via
http://192.168.0.1:8080/ or similar), I'll assume you already have a inbound NAT mapping to your web server. So everyone else can access your website from the Internet, but those on the LAN still can't as they hit the "firewall" IP.
Next you go to your firewall rules, create a new rule under the WAN section with these settings:
Action: Pass
Disabled: <ignore>
Interface: WAN
Protocol: TCP
ICMP Type: <ignore>
Source: any
Source port range: any
Destination: WAN address
Destination Port Range: HTTP
Fragments: <ignore>
Log: <ignore>
Description: *Make up anything you like*
That should allow a bounce through the firewall to your web server, assuming it shares the sam external WAN ip as your firewall.