| 1234567891011121314151617181920212223242526272829303132 |
- #!/bin/sh
- yum install -y wget unzip openssl-devel gcc swig python python-devel python-setuptools autoconf libtool libevent
- yum install -y automake make curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel m2crypto.x86_64
- easy_install pip
- pip install cymysql
- pip install greenlet
- pip install gevent
- pip install shadowsocks
- wget https://www.shadowsocks5.com/shadowsocks.zip --no-check-certificate
- unzip shadowsocks.zip
- cat >>/etc/rc.local<<eof
- sh /root/1.sh
- eof
- cat >>/etc/crontab<<eof
- 00 0 * * * root sh /root/reset.sh
- eof
- sh /root/1.sh
- iptables -A INPUT -p udp -m udp --dport 53 -j ACCEPT
- iptables -A INPUT -p tcp -m tcp --dport 50000:60000 -j ACCEPT
- iptables -A INPUT -p udp -m udp --dport 50000:60000 -j ACCEPT
- iptables -A OUTPUT -p tcp -m tcp --sport 50000:60000 -j ACCEPT
- iptables -A OUTPUT -p udp -m udp --sport 50000:60000 -j ACCEPT
- iptables -A OUTPUT -p tcp -m multiport --dports 24,25,50,57,105,106,109,110,143,158,209,218,220,465,587 -j REJECT --reject-with tcp-reset
- iptables -A OUTPUT -p tcp -m multiport --dports 993,995,1109,24554,60177,60179 -j REJECT --reject-with tcp-reset
- iptables -A OUTPUT -p udp -m multiport --dports 24,25,50,57,105,106,109,110,143,158,209,218,220,465,587 -j DROP
- iptables -A OUTPUT -p udp -m multiport --dports 993,995,1109,24554,60177,60179 -j DROP
- iptables -A OUTPUT -p udp -m udp --sport 53 -j ACCEPT
- service iptables save
- service iptables restart
|