Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Frustrating failure with simple port forwading
« previous
next »
Print
Pages: [
1
]
Author
Topic: Frustrating failure with simple port forwading (Read 835 times)
brightcold
Newbie
Posts: 3
Karma: 0
Frustrating failure with simple port forwading
«
on:
March 29, 2024, 03:42:36 am »
I'm having a problem with OPNSense that's driving me crazy. I just want to forward a port. I've got OPNSense running on a Proxmox VM serving as my gateway (192.168.1.1/16), and Ubuntu in an LXC container running an nginx docker image that i want to use as reverse proxy. I just want to port forward from OPNSense's public IP on port 80/443 to reach the NGINX webpage (192.168.1.13:81) to start with. I can reach said webpage no problem without NAT.
Using examples I followed on youtube videos, I created following following NAT port forwarding rules:
Source:Interface(WAN), Protocol(TCP), address(*), ports(*)
Destination: Address(WAN address), port(80)
NAT: IP(192.168.1.13), Ports(81)
(and a duplicate one for Destination port(443))
As I said, it's easy to verify the port is open with simple online tools, but when I try OPNSense public IP address, it goes nowhere. Without these rules, the public IP address for OPNSense takes me to the login page, as expected. I turned off all the firewalls I could find in proxmox for the VM, the container, the node and the datacenter in case it was messing it up, but that didn't help.
Frustrated with that, I tried to simply port forward to my old tp-link router that is now just serving as a wireless access point and try to reach the admin page. Modifying the previous rules, to simply change the NAT IP to 192.168.1.3, but those completely fail to NAT as well.
This is probably a simple problem but i'd appreciate any help. Thanks.
«
Last Edit: March 29, 2024, 04:31:43 am by brightcold
»
Logged
Patrick M. Hausen
Hero Member
Posts: 6812
Karma: 572
Re: Frustrating failure with simple port forwading
«
Reply #1 on:
March 29, 2024, 11:59:41 am »
Move the OPNsense UI to a different port, e.g. 4443, and disable HTTP to HTTPS redirection.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
brightcold
Newbie
Posts: 3
Karma: 0
Re: Frustrating failure with simple port forwading
«
Reply #2 on:
March 29, 2024, 03:47:42 pm »
I couldn't even find a setting for HTTP->HTTPS redirection to disable, but changing the OPNSense UI port seems to have worked. I can now reach the page with these rules. Thank you!
Logged
Patrick M. Hausen
Hero Member
Posts: 6812
Karma: 572
Re: Frustrating failure with simple port forwading
«
Reply #3 on:
March 29, 2024, 03:55:36 pm »
System > Settings > Administration > HTTP Redirect
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
brightcold
Newbie
Posts: 3
Karma: 0
Re: Frustrating failure with simple port forwading
«
Reply #4 on:
March 29, 2024, 04:02:28 pm »
Looks like it was already off, then. Problem fixed. Thank you!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Frustrating failure with simple port forwading