geoip-shell icon indicating copy to clipboard operation
geoip-shell copied to clipboard

Feature request: complex filters

Open uzzle1987 opened this issue 10 months ago • 3 comments

Hi,

First of all, thank you very much for geoip-shell. It has helped me a lot so far.

Is it currently possible to represent more complex combinations? For example, this fictional example:

22 tcp allow only from DE 80, 443 tcp allow only from DE, CH, AT 8080, tcp allow only from US

I suspect that this is not currently possible and that a major rewrite would be necessary to achieve this. It would probably also be too complex to configure if you only need a simple filter.

uzzle1987 avatar Jan 30 '26 09:01 uzzle1987

Hi, currently protocols are only configurable globally for each geoblocking direction (inbound or outbound). I suppose it would be possible to implement granular config but this would indeed require fairly large code changes. One particular way I can think of would be to support multiple config files. Something like one global config file and then any number of extra files which define filters. The main challenge I can anticipate is implementing support for interactive configuration of these separate filters.

So I don't think this will be implemented soon but it doesn't hurt to keep this request in mind. Do you mind changing the title to something like "Feature request: complex filters"?

friendly-bits avatar Feb 05 '26 18:02 friendly-bits

Hi,

thank you for your reply. I have changed the title. Low priority and nice-to-have feature for me at the moment.

I completely understand if it doesn't happen soon. I also understand if it doesn't happen at all. It was just an idea that popped into my head :D

uzzle1987 avatar Feb 06 '26 12:02 uzzle1987

Hello, I was just looking for this feature :-)

Instead of rule per inbound / outbound, I would too appreciate rule per port(s), for example: inbound: 22 allow only from DE 80, 443 block from CN, RU, allow from the rest

outbound for all ports: allow only to DE, US

pschiffe avatar Jun 10 '26 20:06 pschiffe