evilsocket / evilsocket/opensnitch

[Feature Request] Apply rule if pattern does not match

Open
#416 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14.1k
Forks
665
PR merge metrics
No merged PRs in 30d

Description

I want to create a rule to block all but localhost connections. [Rules editor](https://github.com/evilsocket/opensnitch/wiki/Rules-editor) tells me to use negated character classes:
```
[x] Action: deny
[x] To this destination IP: [^:127.0.0.1:]
```

AFAIK, there are no custom character classes in regex, and the above pattern is equivalent to `[^0127.:]`, i.e. it's gonna match `172.21.0.17` and similar addresses besides `127.0.0.1`.

Since negative lookarounds are not supported, can you please add an ability to invert a match (like `grep -v`)?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.