OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: stanthewizzard on April 24, 2023, 06:33:22 am

Title: Crowdsec is blocking IP from a country where I’m staying for 3 days
Post by: stanthewizzard on April 24, 2023, 06:33:22 am
Hello

I’m on hollidays in greece (it’s important) and unable to connect to my vpn at home.
Disabling crowdsec make everything reacheable.
How can I grant access to the greek ip to re-enable crowdsec ?

Thanks
Title: Re: Crowdsec is blocking IP from a country where I’m staying for 3 days
Post by: dumptrucktaco on April 24, 2023, 05:11:57 pm
Crowdsec offers the ability to whitelist IPs via their parser, but it has to be completed via the command-line.

https://docs.crowdsec.net/docs/whitelist/create/

Title: Re: Crowdsec is blocking IP from a country where I’m staying for 3 days
Post by: stanthewizzard on April 24, 2023, 05:56:41 pm
Ok thanks
But I need to whiteliste also mobile isp no judt a single ip. Very strange.
Title: Re: Crowdsec is blocking IP from a country where I’m staying for 3 days
Post by: dumptrucktaco on April 24, 2023, 09:30:02 pm
Not sure about changing it for mobile.  Another option could be to use Zerotier or Tailscale. This would allow you to connect over one of those networks and "bypass" crowdsec that way.
Title: Re: Crowdsec is blocking IP from a country where I’m staying for 3 days
Post by: CJ on April 27, 2023, 01:51:03 pm
Hello

I’m on hollidays in greece (it’s important) and unable to connect to my vpn at home.
Disabling crowdsec make everything reacheable.
How can I grant access to the greek ip to re-enable crowdsec ?

Thanks

Are you using crowdsec just for the vpn or for other services as well?

Not sure about changing it for mobile.  Another option could be to use Zerotier or Tailscale. This would allow you to connect over one of those networks and "bypass" crowdsec that way.

Wouldn't those still connect back to and from the same IPs?  It's been a while since I looked at them so I don't recall how they would work to allow bypassing an IP ban.
Title: Re: Crowdsec is blocking IP from a country where I’m staying for 3 days
Post by: stanthewizzard on April 28, 2023, 10:07:10 pm
Other services as well (and none of it are working)

The mobile or wifi IP (greek one) are blocked.

Solution
connect with cloudflare vpn (change of routes)
then connect to opensense and temporarly disable crowdsec