Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
port forward allowed only from specific IP's or countries
« previous
next »
Print
Pages: [
1
]
Author
Topic: port forward allowed only from specific IP's or countries (Read 1281 times)
manilx
Jr. Member
Posts: 88
Karma: 4
port forward allowed only from specific IP's or countries
«
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!
«
Last Edit: June 25, 2022, 02:22:00 pm by manilx
»
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: port forward allowed only from specific IP's or countries
«
Reply #1 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.
Logged
i am not an expert... just trying to help...
manilx
Jr. Member
Posts: 88
Karma: 4
Re: port forward allowed only from specific IP's or countries
«
Reply #2 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.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
port forward allowed only from specific IP's or countries