Skip to content

Commit

Permalink
added ntp install and firewall exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
farinspace committed Nov 25, 2013
1 parent 3b03e2f commit f9a6702
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 2 additions & 7 deletions essentials.sh
Expand Up @@ -2,17 +2,12 @@

apt-get -yq update

apt-get -yq install zip

apt-get -yq install unzip

apt-get -yq install expect
apt-get -yq install zip unzip expect locate ntp

# adds support for add-apt-repository
apt-get -yq install python-software-properties

apt-get -yq install locate

apt-get -yq update

updatedb

3 changes: 3 additions & 0 deletions secure-fw.sh
Expand Up @@ -51,6 +51,9 @@ cat > $TESTRULES << EOF
# see notes: http://serverfault.com/questions/234674/setting-up-linux-iptables-for-ftp-pasv-mode-connections
-A INPUT -p tcp --dport $PORTRANGE -m state --state RELATED,ESTABLISHED,NEW -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -s $MYIP -j ACCEPT
# ntp
-A INPUT -p udp -m udp --dport 123 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 123 -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j DROP
Expand Down

0 comments on commit f9a6702

Please sign in to comment.