Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Port forwarding doesn't work from external network [SOLVED]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Port forwarding doesn't work from external network [SOLVED] (Read 1637 times)
wusikijeronii
Newbie
Posts: 7
Karma: 0
Port forwarding doesn't work from external network [SOLVED]
«
on:
November 05, 2021, 12:34:06 pm »
Hello. I am an OPNsense beginner.
I installed OPNsense instance to the laptop (one physical port) and added NAT forwarding for a port. It works if I try to reach a destination from my local network. Bur when I try to reach the destination from an external network I get a timeout error.
I also tried to add allow firewall rule for the destination subnet. It didn't help. And I also tried to launch a TCP dump from an external client. I send requests but I don't get replies. In the firewall log, no errors are shown.
«
Last Edit: November 05, 2021, 10:55:48 pm by wusikijeronii
»
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Port forwarding doesn't work from external network
«
Reply #1 on:
November 05, 2021, 12:37:01 pm »
Out of interest, why would you run something like OPNsense on a laptop?
Logged
wusikijeronii
Newbie
Posts: 7
Karma: 0
Re: Port forwarding doesn't work from external network
«
Reply #2 on:
November 05, 2021, 12:40:06 pm »
I broke the display from the laptop and bought a new one. But this one - i7, 16 GB RAM, SSD looks like a good hardware for a firewall.
«
Last Edit: November 05, 2021, 12:46:42 pm by wusikijeronii
»
Logged
wusikijeronii
Newbie
Posts: 7
Karma: 0
Re: Port forwarding doesn't work from external network
«
Reply #3 on:
November 05, 2021, 02:01:28 pm »
I fixed it by adding a LAN interface to the Captive Portal. I think it is because I don't have a WAN port (only LAN). Am I right?
UPD: No. I tried to use the HTTP port. When I changed the port it doesn't work again
UPD: Removed all rules and recreated these again. Works!
«
Last Edit: November 05, 2021, 03:33:02 pm by wusikijeronii
»
Logged
wusikijeronii
Newbie
Posts: 7
Karma: 0
Re: Port forwarding doesn't work from external network
«
Reply #4 on:
November 05, 2021, 10:32:44 pm »
Removed masquerade from the router and it doesn't work again.
Requested packet forwards from router to OPNsense. OPN forward packet to need port to destination. Destination host returns packet (out packet) to OPNsense. OPNsense does nothing. I don't understand why.
From the OPNsense ssh session, I also get a timeout error.
Router (Mikrotik) tcp dump:
https://drive.google.com/file/d/1_Z0rAlLSwVEEg1YFQbfIgOCqtRNdUJwy
OPNsense tcpdump:
https://drive.google.com/file/d/1aBRO_Vch8Ryx_BmdIlO1ZY8NMh5aWd2M/view?usp=sharing
UPD: Found a solution. I added a rule to out NAT (don't know the exact name 'cos I use non-English language in OPNsense web. I mean reverse NAT)
«
Last Edit: November 05, 2021, 10:56:35 pm by wusikijeronii
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Port forwarding doesn't work from external network [SOLVED]