OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: LorneMalvo on January 12, 2021, 08:55:14 PM

Title: Port Forwarding
Post by: LorneMalvo on January 12, 2021, 08:55:14 PM
Hello,
I'm trying to open a range of ports and I can't get it to work.
I've been following this tutorial without success: https://forum.opnsense.org/index.php?topic=8783.0

I'm testing opened ports through an external website. I hope this is fine.

See attached images for more info.
https://i.imgur.com/Tr9qBgZ.png
https://i.imgur.com/KH4gZZI.png

Any help?

Thanks.
Title: Re: Port Forwarding
Post by: Greelan on January 12, 2021, 10:19:40 PM
Check that you have a corresponding firewall rule on the WAN interface to actually allow the inbound http traffic

This is usually created automatically for you when setting up the port forward, since "Add associated filter rule" is selected by default under Filter rule association. A rule will not have been created if you selected "None" when setting up the port forward (and traffic will be blocked), or if you selected "Pass" (which allows the traffic without a separate firewall rule)

Your screenshots don't show your Filter rule association setting
Title: Re: Port Forwarding
Post by: LorneMalvo on January 15, 2021, 05:03:07 PM
Hello,
Thanks for your answer.
This is the Wan rule: https://i.imgur.com/ucRDzX1.png
And here we can see correctly created: https://i.imgur.com/Kbkfsw7.png

Do I have something wrong?

Title: Re: Port Forwarding
Post by: muchacha_grande on January 15, 2021, 06:47:43 PM
Hi, may be your OPNSense box is already behind a routed ISP modem, so you may also need to open ports there.
Title: Re: Port Forwarding
Post by: Greelan on January 15, 2021, 09:51:04 PM
Or your ISP blocks port 80 inbound - many do. Ask them, and if they do, ask them to unblock it
Title: Re: Port Forwarding
Post by: LorneMalvo on January 22, 2021, 04:23:12 PM
My ISP was using CG Nat a few months ago. I asked them and they gave me a public IP Address, and since then I've opened ports without any trouble using OpenWRT.

They changed some config because now i can't open ports neither in OpenWRT or OpnSense. I'll talk with my ISP because it's so rare.

Thank you all of you for your help.