Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Can't get port forwarding to work
« previous
next »
Print
Pages: [
1
]
Author
Topic: Can't get port forwarding to work (Read 606 times)
uiterlix
Newbie
Posts: 2
Karma: 0
Can't get port forwarding to work
«
on:
May 28, 2024, 12:14:12 am »
Hi,
I'm trying to setup a fairly standard HTTP port forwarding from the WAN to one of the machines in my local network.
What I did:
- In firewall settings/advanced:
- enable Reflection for port forwards
- enable Reflection for port forwards
- In firewall settings/nat/port forward
- create a port forwarind rule with
- protocol: TCP
- destination: WAN address
- destination port range from HTTP to HTTP
- redirect target IP: tried both and Alias as wel as directly inputting the IP of the target node
- redirect target port: 9000 (in this case portainer)
- log: enabled
- nat reflection: use system default
- filter rule association: rule
Unfortunately the port forward does not seem to work. However when I check the log I do see a blue "rdr" log entry for the connection attempt.
I'm a bit lost on what's wrong here and would be really grateful if someone can point me in the right direction.
Logged
CrunkCow
Newbie
Posts: 1
Karma: 0
Re: Can't get port forwarding to work
«
Reply #1 on:
May 28, 2024, 07:16:32 am »
I set up a port forward a long time ago for a game server so I went back and checked what I did. I saw that I also made a general firewall rule for WAN to allow that port for that internal destination. Not sure if it's by design for the rule to be necessary, but that's what I did and it works.
Edit: I removed my firewall rule and mine still works, so now the only difference between mine and yours is that my "filter rule association" is set to "none" and my redirect target IP is set to the internal target node. So I guess I can't really help, sorry. Are you confident that there's no firewall going on in the target node itself?
«
Last Edit: May 28, 2024, 07:57:01 am by CrunkCow
»
Logged
uiterlix
Newbie
Posts: 2
Karma: 0
Re: Can't get port forwarding to work
«
Reply #2 on:
May 28, 2024, 11:57:37 am »
Ok, apparently it was already too late in the evening when I tried.
The host I was forwarding to had a different default gateway so NAT requests didn’t work for that host.
Fixed that and now it works like a charm.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
Can't get port forwarding to work