Skip to content

Instantly share code, notes, and snippets.

@Pavelovich
Last active June 17, 2018 22:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pavelovich/febe0177a53ce154e2b9 to your computer and use it in GitHub Desktop.
Save Pavelovich/febe0177a53ce154e2b9 to your computer and use it in GitHub Desktop.
echo "gibson" > /etc/hostname
hostname -F /etc/hostname
cat << EOF >> /etc/hosts
104.237.132.71 gibson.redsec.ru gibson
EOF
apt-get update
apt-get upgrade
apt-get install apache2
apt-get install php5 php-pear php5-mysql
apt-get install mysql-server
mysql_secure_installation
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -d 127.0.0.0/8 -j REJECT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -j ACCEPT
iptables -A INPUT -s 173.255.192.138 -j ACCEPT
iptables -A INPUT -j DROP
iptables -A FORWARD -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment