Last active
June 17, 2018 22:18
-
-
Save Pavelovich/febe0177a53ce154e2b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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