mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-17 17:39:43 +01:00
10 lines
359 B
Plaintext
10 lines
359 B
Plaintext
|
#!/bin/sh
|
||
|
# disables all incoming, outgoing and forwarded traffic except incoming/established SSH
|
||
|
iptables -F
|
||
|
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||
|
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
|
||
|
iptables -P INPUT DROP
|
||
|
iptables -P FORWARD DROP
|
||
|
iptables -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||
|
iptables -P OUTPUT DROP
|