OPNsense Forum

English Forums => General Discussion => Topic started by: manilx on June 25, 2022, 02:05:57 PM

Title: port forward allowed only from specific IP's or countries
Post by: manilx on June 25, 2022, 02:05:57 PM
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!
Title: Re: port forward allowed only from specific IP's or countries
Post by: tiermutter on June 25, 2022, 04:21:17 PM
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.
Title: Re: port forward allowed only from specific IP's or countries
Post by: manilx on June 25, 2022, 04:28:40 PM
Thx. The ´Advanced´was the issue. After selecting that I found the source, where I can put an alias.