Feature request: complex filters
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.
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"?
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
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