Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Cant access opened port from local network
« previous
next »
Print
Pages: [
1
]
Author
Topic: Cant access opened port from local network (Read 2932 times)
myhrmans
Newbie
Posts: 4
Karma: 0
Cant access opened port from local network
«
on:
October 26, 2022, 10:25:48 pm »
I have successfully opened ports on my public IP address.
I can access them as soon as Im not on the local network/wifi.
How can I allow this aswell?
Logged
cookiemonster
Hero Member
Posts: 1823
Karma: 95
Re: Cant access opened port from local network
«
Reply #1 on:
October 26, 2022, 11:05:49 pm »
Can you provide more information? Like the rules you've created, the networks and interfaces you've created and on which you're trying to do this. OPN version could also be useful.
Logged
frejos
Newbie
Posts: 2
Karma: 0
Re: Cant access opened port from local network
«
Reply #2 on:
October 30, 2022, 07:07:49 am »
Hello, I'm new to opnsense and I have this exact same question/issue.
My situation is that I'm hosting a web page using (using a non standard port) and need to open that port to forward to the appropriate internal server that can handle that request. I have successfully achieved this configuration (adding NAT and FW Rules to WAN interface) and the port is now accessible to traffic originating from the external WAN interface.
However, I also would like to access this web page from my LAN interface using the external WAN address. I am unable to get this to work. At first I thought I might need to also apply a similar NAT rule to the LAN interface but that did not seem to work. I have also tried enabling NAT reflection in the NAT rule configuration with no success. Since I'm using the same ports on the external and internal I was able to override the DNS on the LAN to point to the internal server instead. However that wouldn't be suitable if the port also needed to be NAT'd.
NAT Rule:
Interface: WAN
TCP/IP Version: IPv4
Protocol: TCP
Destination: WAN address
Destination port range: 40250 to 40250
Redirect target IP: 192.168.0.25
Redirect target port: 40250
NAT reflection: Enable
Filter rule association: Create Rule
Rule Created:
Interface: WAN
TCP/IP Version: IPv4
Protocol: TCP
Source: *
Port: *
Destination: 192.168.0.25
Port: 40250
I also created a Rule:
Interface: WAN
TCP/IP Version: IPv4
Protocol: TCP
Source: *
Port: *
Destination: WAN address
Port: 40250
I'm using the latest version of opnsense community edition, 22.7.6.
Any pointers would be appreciated. Thanks,
Logged
frejos
Newbie
Posts: 2
Karma: 0
Re: Cant access opened port from local network
«
Reply #3 on:
October 31, 2022, 02:26:03 am »
I found that I needed to enable under Firewall >> Settings >> Advanced, both Reflection for port forwards and Automatic outbound NAT for Reflection. Next I removed my existing rules and recreated them it. That seems to have done the trick, and the port forwarding appears to be working as expected now.
Logged
sherbmeister
Newbie
Posts: 1
Karma: 0
Re: Cant access opened port from local network
«
Reply #4 on:
May 11, 2024, 06:26:26 pm »
I registered on this forum just to say THANK YOU!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
Cant access opened port from local network