Hello,
I have been reading some of the documentation and other post on this but I'm not sure I'm doing this correctly. I want to open port 80 on my edge router so I can access some web pages outside of the network. I have set up port forwarding for port 80 so it points to the VM on the LAN running the web server but the issue is when I go to the public IP it redirects to port 443 and doesn't load the default apache page. Here is my current configuration:
firewall { all-ping enable broadcast-ping disable ipv6-receive-redirects disable ipv6-src-route disable ip-src-route disable log-martians enable name WAN_IN { default-action drop description "WAN to internal" rule 10 { action accept description "Allow established/related" state { established enable related enable } } rule 20 { action drop description "Drop invalid state" state { invalid enable } } rule 80 { action accept description http destination { port 80 } log disable protocol tcp } } name WAN_LOCAL { default-action drop description "WAN to router" rule 1 { action accept description "Allow established/related" state { established enable related enable } } rule 2 { action drop description "Drop invalid state" state { invalid enable } } rule 3 { action drop description "Drop Invalid" log disable protocol all state { established disable invalid enable new disable related disable } } } receive-redirects disable send-redirects enable source-validation disable syn-cookies enable } interfaces { ethernet eth0 { address 192.168.1.1/24 description "Wireless LAN" duplex auto speed auto } ethernet eth1 { address 47.22.x.x/29 description Internet duplex auto firewall { in { name WAN_IN } local { name WAN_LOCAL } out { } } speed auto } ethernet eth2 { address 10.10.10.1/24 description "Private LAN" duplex auto speed auto } loopback lo { } } port-forward { auto-firewall enable hairpin-nat enable lan-interface eth2 rule 1 { description "http traffic" forward-to { address 10.10.10.166 port http } original-port http protocol tcp } wan-interface eth1 } service { dhcp-server { disabled false hostfile-update disable shared-network-name Private_DHCP { authoritative disable subnet 10.10.10.0/24 { default-router 10.10.10.1 dns-server 8.8.8.8 dns-server 8.8.4.4 lease 86400 start 10.10.10.2 { stop 10.10.10.234 } } } shared-network-name Wireless_DHCP { authoritative disable subnet 192.168.1.0/24 { default-router 192.168.1.1 dns-server 192.168.1.1 lease 86400 start 192.168.1.2 { stop 192.168.1.235 } } } } dns { forwarding { cache-size 150 listen-on eth0 listen-on eth2 } } gui { https-port 8080 } nat { rule 5010 { log disable outbound-interface eth1 protocol all type masquerade } rule 5011 { log disable outbound-interface eth2 type masquerade } } ssh { port 22 protocol-version v2 } upnp { } upnp2 { listen-on eth0 wan eth1 } } system { gateway-address 47.22.x.x host-name hnr01 login { user admin { authentication { encrypted-password **************** plaintext-password **************** } full-name "Manny Velez" level admin } } name-server 8.8.8.8 name-server 8.8.4.4 ntp { server 0.ubnt.pool.ntp.org { } server 1.ubnt.pool.ntp.org { } server 2.ubnt.pool.ntp.org { } server 3.ubnt.pool.ntp.org { } } syslog { global { facility all { level notice } facility protocols { level debug } } } time-zone UTC } vpn { ipsec { auto-firewall-nat-exclude disable ipsec-interfaces { interface eth1 } nat-networks { allowed-network 0.0.0.0/0 { } } nat-traversal enable } l2tp { remote-access { authentication { local-users { username admin { password **************** } } mode local } client-ip-pool { start 192.168.100.101 stop 192.168.100.110 } dns-servers { server-1 8.8.8.8 server-2 8.8.4.4 } ipsec-settings { authentication { mode pre-shared-secret pre-shared-secret **************** } ike-lifetime 3600 } mtu 1492 outside-address 47.22.x.x } } }
Would anyone know the comands I can run on the CLI of the edge router so when I go to ip:80 it loads the default apache page on 10.10.10.166?
Thank you so much for any and all help!