BreadCrumbs: Asterisk Firewall

Asterisk Firewall

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search

Revision as of 22:00, 10 May 2007

Iptables

-A RH-Firewall-1-INPUT -s 10.1.0.0/255.255.0.0 -j ACCEPT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp -m icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp -d 224.0.0.251 --dport 5353 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 2223 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 5060:5082 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 5060:5082 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 8000:20000 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 8000:20000 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 1:1024 -j DROP
-A RH-Firewall-1-INPUT -p udp -m udp --dport 1:1024 -j DROP
Personal tools