Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
16.1 Legacy Series
»
[SOLVED] Port forward (web:80)
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Port forward (web:80) (Read 18714 times)
teuna
Newbie
Posts: 6
Karma: 1
[SOLVED] Port forward (web:80)
«
on:
June 24, 2016, 03:11:19 am »
Hello, I'm testing Opnsense as I need to replace an old IPCop box however I can't get port forward to work, can you see what I'm doing wrong or what I'm missing?
ProxyWeb is an alias to an Apache httpd server acting as a proxy for multiple web servers
When I try to browse any of my websites from a workstation on the same LAN it's not working like it does with IPCop, I think I'm missing something (not a network guy). I wasn't able to try from a workstation on a different network.
«
Last Edit: June 29, 2016, 07:39:21 am by franco
»
Logged
jhh
Newbie
Posts: 6
Karma: 2
Re: Port forward (web:80)
«
Reply #1 on:
June 24, 2016, 04:54:49 pm »
Hi teuna,
you have configured "WAN net" as destination in your NAT Rule.
Try "WAN address" instead (or enter that single IP, you want to translate, if this is not the address of the WAN interface).
What do you mean by "in the same LAN"?
Did you connect your workstation to the LAN network or to the WAN network of your OPNsense?
Regards,
Joerg
Logged
teuna
Newbie
Posts: 6
Karma: 1
Re: Port forward (web:80)
«
Reply #2 on:
June 24, 2016, 09:43:49 pm »
my bad
I changed destination in NAT rule to "WAN address" but it's still not working, it's like the firewall rule is not working, my browser give me timeout error when trying to connect to any of my websites
my workstation is connected to the LAN network
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Port forward (web:80)
«
Reply #3 on:
June 24, 2016, 11:27:03 pm »
What is your setting according to nat reflection?
Logged
franco
Administrator
Hero Member
Posts: 17474
Karma: 1587
Re: Port forward (web:80)
«
Reply #4 on:
June 27, 2016, 07:56:18 am »
Port 80 may be blocked by the GUI listening on the interface.
Where is the Apache Server, in LAN or WAN?
«
Last Edit: June 27, 2016, 08:21:38 am by franco
»
Logged
teuna
Newbie
Posts: 6
Karma: 1
Re: Port forward (web:80)
«
Reply #5 on:
June 27, 2016, 08:26:05 pm »
hello, thank you for your help, sorry for late reply
@fabian
nat reflection is "Enable (NAT + Proxy)" in System > Settings > Firewall/NAT and "Use system default" in my port forward rule
@franco
yes I think too maybe I miss something because of GUI
Apache server is on LAN, I changed GUI port to 8443 in System > Settings > Admin Access (see screenshot)
Logged
franco
Administrator
Hero Member
Posts: 17474
Karma: 1587
Re: Port forward (web:80)
«
Reply #6 on:
June 28, 2016, 08:44:08 am »
Edit: On second thought, it looks like the port forward is alright. If this is about WAN address:80 -> access to webserver from LAN it's a reflection and/or DNS issue, but not a port forward issue.
«
Last Edit: June 28, 2016, 08:48:15 am by franco
»
Logged
teuna
Newbie
Posts: 6
Karma: 1
Re: Port forward (web:80)
«
Reply #7 on:
June 28, 2016, 10:52:51 pm »
thank you all for your valuable help I got it to work
I'll document here so maybe it help others
first I changed reflection settings to "Enable (pure NAT)" but still didn't work
then I changed "Filter association" in my port forward rule from "NAT rule" (generated) to "PASS"
then I added a rule to firewall to allow connection on WAN port 80 as the generated rule got deleted (from previous step I suppose)
Now it works! Thank you
Logged
teuna
Newbie
Posts: 6
Karma: 1
Re: Port forward (web:80)
«
Reply #8 on:
June 28, 2016, 11:17:40 pm »
nevermind it's not working... it only works from LAN workstation not from outside (Internet)
Logged
teuna
Newbie
Posts: 6
Karma: 1
Re: Port forward (web:80)
«
Reply #9 on:
June 28, 2016, 11:45:06 pm »
I unchecked "Disable webConfigurator redirect rule" in System > Settings > Admin Access and now it's working both from LAN and Internet, I have no idea what I'm doing but it's working!
Logged
Julien
Hero Member
Posts: 666
Karma: 33
Re: [SOLVED] Port forward (web:80)
«
Reply #10 on:
June 30, 2016, 11:09:05 pm »
redirect rule it always redirect the request on port 80,
disable it will not use port 80 but the assign port.
Logged
OPNsense 23.1.7_3-amd64
FreeBSD 13.1-RELEASE-p7
OpenSSL 1.1.1t 7 Feb 2023
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
16.1 Legacy Series
»
[SOLVED] Port forward (web:80)