13 lines
525 B
Bash
13 lines
525 B
Bash
|
#!/bin/bash
|
||
|
# Allow incoming and outgoing ssh, dns and dhcp
|
||
|
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
|
||
|
iptables -I OUTPUT -p tcp --dport 22 -j ACCEPT
|
||
|
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
|
||
|
iptables -I INPUT -p udp --dport 53 -j ACCEPT
|
||
|
iptables -I INPUT -p tcp --dport 53 -j ACCEPT
|
||
|
iptables -I INPUT -p udp --dport 68 -j ACCEPT
|
||
|
iptables -I OUTPUT -p tcp --dport 22 -j ACCEPT
|
||
|
iptables -I OUTPUT -p udp --dport 53 -j ACCEPT
|
||
|
iptables -I OUTPUT -p tcp --dport 53 -j ACCEPT
|
||
|
iptables -I OUTPUT -p udp --dport 67 -j ACCEPT
|