systemrescue-recipe/iso_add/autorun/set-firewall-rules.sh

11 lines
432 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# Allow incoming and outgoing ssh, dns and dhcp
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