mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-17 17:39:43 +01:00
9 lines
502 B
Plaintext
9 lines
502 B
Plaintext
|
#!/bin/sh
|
||
|
# disables all incoming, outgoing and forwarded traffic except incoming/established SSH
|
||
|
nft add table ip filter
|
||
|
nft add chain ip filter INPUT '{ type filter hook input priority 0; policy drop; }'
|
||
|
nft add chain ip filter OUTPUT '{ type filter hook output priority 0; policy drop; }'
|
||
|
nft 'add rule ip filter INPUT ct state related,established counter accept'
|
||
|
nft 'add rule ip filter INPUT tcp dport 22 counter accept'
|
||
|
nft 'add rule ip filter OUTPUT ct state related,established counter accept'
|