mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00

Added option to let the users define iptables rules. The system rules are added in the file /etc/opensnitchd/system-fw.json with this format: ``` { "SystemRules": [ { "Rule": { "Description": "Allow pptp VPN", "Table": "mangle", "Chain": "OUTPUT", "Parameters": "-p gre", "Target": "ACCEPT", "TargetParameters": "" } } ] } ``` On the mangle table, OUTPUT chain, these rules are added before the NFQUEUE interception rule, so any rule you add there bypasses the interception. Useful to allow traffic you don't want to intercept. This feature solves in some way the issue some users have connecting to VPNs when the Default Action configured in the daemon is Deny. For example: - OpenVPN when keepalive is configured and ICMP is used. - PPTP because the GRE routing protocol is blocked. - probably others like IPSEC. (regarding WireGuard, as far as I can tell it works just fine, see #61). closes #47
14 lines
318 B
JSON
14 lines
318 B
JSON
{
|
|
"SystemRules": [
|
|
{
|
|
"Rule": {
|
|
"Description": "Allow icmp",
|
|
"Table": "mangle",
|
|
"Chain": "OUTPUT",
|
|
"Parameters": "-p icmp",
|
|
"Target": "ACCEPT",
|
|
"TargetParameters": ""
|
|
}
|
|
}
|
|
]
|
|
}
|