port forward allowed only from specific IP's or countries

Started by manilx, June 25, 2022, 02:05:57 PM

Previous topic - Next topic
Hi

I´m new to OPNsense coming from Untangle. Things which seemed so easy are super criptic now.... But I don't want to open a can of worms here.

I have it running and have added a few port forward rules, which work. In Untangle i could create a firewall rule to allow access to certain ports only from certain IP's (ranges, countries etc). I'm unable to find how to do this.
I guess I need a firewall rule (independent from the port forward) to allow port X if from IP... or to block port X if *not* from IP.


How can I do this.

Help much appreciated at this point!

Just create a alias for GeoIP, add the allowed countries and set the alias as source for the forward rule.
Dont forget to set geoip setting for download, e.g. maxmind with free registration.
i am not an expert... just trying to help...

Thx. The ´Advanced´was the issue. After selecting that I found the source, where I can put an alias.