Port forward with WAN private IP

Started by opiskala, May 14, 2020, 06:58:01 AM

Previous topic - Next topic
For test.

WAN - 192.168.0.3
LAN 192.168.1.0/24

NAT  - see Attachment NAT
WAN rule  - see Attachment WAN

And it is not working :(


Have you un-ticked  block private networks on the WAN interface settings?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member


Is the device you're testing this from in the WAN subnet? Then you might want to try disable reply-to in the advanced firewall settings.
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).


Check your port forward settings. Have a look at this link.


https://forum.opnsense.org/index.php?topic=8783.0
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

May 15, 2020, 04:06:05 PM #6 Last Edit: May 15, 2020, 04:29:50 PM by keropiko
Hello,
in addition to this, why nat reflection from internal lan to wan ip (public ip) behind double nat is now working correctly (very slow/not loading)?

mainly in different ports redirected (ex. port 5001 wan (behind double nat) to port 5000 internal )

is there something else to check?


your redirect target up is a wan address, it should be the ip of the lan device your are forwarding to.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Regarding wan nat reflection i have this setup:

Router with public ip x.x.x.x and lan ip 172.16.99.1 and dmz to ip 172.16.99.2 ------ opnsense wan ip 172.16.99.2 and lan ip 192.168.1.1

Port forward on opnsense destination wan ip address port 5001 nat to port 5000 internal ip 192.168.1.10.

From outside networks port forward working correctly. From the inside using wan public ip x.x.x.x (dynamic) nat reflection not working.

I have nat reflection enabled on firewall settings and at the nat rule.

Thanks

Quote from: keropiko on May 15, 2020, 09:12:58 PM
Regarding wan nat reflection i have this setup:

Router with public ip x.x.x.x and lan ip 172.16.99.1 and dmz to ip 172.16.99.2 ------ opnsense wan ip 172.16.99.2 and lan ip 192.168.1.1

Port forward on opnsense destination wan ip address port 5001 nat to port 5000 internal ip 192.168.1.10.

From outside networks port forward working correctly. From the inside using wan public ip x.x.x.x (dynamic) nat reflection not working.

I have nat reflection enabled on firewall settings and at the nat rule.

Thanks


Can you create a separate forum topic for this please, answering a question about NAT reflection in a topic about port forwarding is not going to help anyone searching for topics on NAT reflection is it?
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

I corrected.
Wan IP is 192.168.5.87

Lan 192.168.0.1/24

and target is 192.168.0.3

And still not working

It is workig.
I changed port to 8900 and works.

Thank you. :)