home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
chilidog.highland.cc.ks.us
/
chilidog.highland.cc.ks.us.zip
/
chilidog.highland.cc.ks.us
/
backup
/
bradford.20100913.bsc-siteConfiguration.tar.gz
/
bradford.20100913.bsc-siteConfiguration.tar
/
bsc
/
siteConfiguration
/
firewall.configWizard
< prev
next >
Wrap
Text File
|
2008-03-31
|
634b
|
33 lines
#!/bin/sh
# Start with a clean slate
iptables --flush
# For 4.0 -- Don't apply these rules
exit 0;
#eth1:
# Allow DNS
iptables -A INPUT --in-interface eth1 -p UDP --dport 53 -j ACCEPT
# SSH
iptables -A INPUT --in-interface eth1 -p TCP --dport 22 -j ACCEPT
# Allow DHCP
iptables -A INPUT --in-interface eth1 -p UDP --dport 67 -j ACCEPT
# Allow HTTP
iptables -A INPUT --in-interface eth1 -p TCP --dport 8080 -j ACCEPT
# Allow HTTPS
iptables -A INPUT --in-interface eth1 -p TCP --dport 8443 -j ACCEPT
# Drop Any other packets
iptables -A INPUT --in-interface eth1 -j DROP
#eth0:
iptables -A INPUT --in-interface eth0 -j DROP