cd /etc
find /etc/hosts |xargs sed -i "s/127.0.0.1/27.150.17.95/g"

cat /etc/hosts



find /etc/ssh/sshd_config |xargs sed -i "s/Port 22/Port 10028/g"

systemctl restart sshd.service


cd

echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
echo "nameserver 4.2.2.1" >> /etc/resolv.conf
echo "nameserver 4.2.2.3" >> /etc/resolv.conf


cd /etc/selinux/
find /etc/selinux/config |xargs sed -i "s/enforcing/disabled/g"

cd

yum -y install dos2unix
yum -y install vim
yum -y install wget
yum -y install zip unzip
yum -y install make gcc

cd

cat  /etc/resolv.conf


wget -O /etc/sysconfig/network-scripts/ifcfg-eth0 http://down.lhip.cc/cc/27.150.17.95/ifcfg-eth0


wget http://down.lhip.cc/nike/c7/c7.zip
unzip c7.zip
cd /root/c7
bash install-mulitip-c7.sh

wget -O /root/c7/ip.txt http://down.lhip.cc/cc/27.150.17.95/ip.txt 



cd

wget http://down.lhip.cc/webmin-1.660-1.rpm
rpm -ivh webmin-1.660-1.rpm

cd

wget http://down.lhip.cc/nike/http/xxxxxxxx.tar.gz
tar -zxvf xxxxxxxx.tar.gz
cd zip
./run.sh


cd

wget http://down.lhip.cc/nike/s5/my-socks5-1.5.0.zip
unzip my-socks5-1.5.0.zip
cd /root/my-socks5-1.5.0
bash install.sh

sysctl -p

/usr/local/bin/my-socks5 -h


cd




echo "cd /root/s5" >> /etc/rc.d/rc.local
echo "./NPServer-linux64 &" >> /etc/rc.d/rc.local
echo "/etc/init.d/webmin restart" >> /etc/rc.d/rc.local
echo "service squid restart">> /etc/rc.d/rc.locals
echo "/sbin/sysctl -p" >> /etc/rc.d/rc.local
echo "sh /usr/local/bin/startvpn.sh" >> /etc/rc.d/rc.local



echo "cd /root/my-socks5-1.5.0" >> /etc/rc.d/rc.local
echo "bash install.sh" >> /etc/rc.d/rc.local
echo "sysctl -p" >> /etc/rc.d/rc.local
echo "ulimit -HSn 1024000" >> /etc/rc.d/rc.local


cat >>/etc/sysctl.conf<<eof
kernel.sysrq = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 2
vm.overcommit_memory = 1
net.ipv4.tcp_max_syn_backlog = 1638400
net.core.somaxconn = 1638400
net.core.netdev_max_backlog = 20000
net.ipv4.tcp_max_tw_buckets = 1800000
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.tcp_fin_timeout = 10
net.ipv4.tcp_keepalive_time = 90
net.ipv4.ip_local_port_range = 20000 65000
net.ipv4.tcp_window_scaling = 1
net.ipv4.icmp_echo_ignore_all = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.tcp_sack = 0
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_retries2 = 5
net.ipv4.tcp_max_orphans = 262144
net.ipv4.tcp_orphan_retries = 3
net.ipv4.tcp_reordering = 5
net.ipv4.tcp_retrans_collapse = 0
net.ipv4.tcp_wmem = 51200 131072 4194304
net.ipv4.tcp_rmem = 51200 131072 4194304
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
fs.file-max = 1024000
net.netfilter.nf_conntrack_max = 655350
net.netfilter.nf_conntrack_tcp_timeout_established = 90
net.netfilter.nf_conntrack_tcp_timeout_close_wait = 30
net.netfilter.nf_conntrack_tcp_timeout_fin_wait = 60
net.netfilter.nf_conntrack_tcp_timeout_time_wait = 60
net.ipv4.tcp_max_orphans = 262144
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.ip_local_port_range = 20000 65535
net.core.rmem_max=16777216
net.core.wmem_max=16777216
net.ipv4.tcp_rmem=4096 87380 16777216
net.ipv4.tcp_wmem=4096 65536 16777216
net.core.netdev_max_backlog = 30000
net.ipv4.tcp_no_metrics_save=1
net.core.somaxconn = 4096
net.ipv4.tcp_syncookies = 0
eof

/sbin/sysctl -p


ulimit -HSn 1024000
echo "* soft nofile 1024000" >> /etc/security/limits.conf
echo "* hard nofile 1024000" >> /etc/security/limits.conf
echo "root soft nofile 1024000" >> /etc/security/limits.conf
echo "root hard nofile 1024000" >> /etc/security/limits.conf

cd


curl -s http://down.lhip.cc/proxy1.sh | bash -s 26660555 5656 5858 4848 6868 


cd /root/ProxyServer/
find /root/ProxyServer/YouMiIp.json |xargs sed -i "s/26660555/super44EE7168ee/g"
find /root/ProxyServer/YouMiIp.json |xargs sed -i "s/5656/5757/g"

cat /root/ProxyServer/YouMiIp.json

cd

ps -ef | grep YouMiIpServer | awk '{ print $2 }' | xargs kill -9

ulimit -HSn 1024000

chmod 7777 /root/ProxyServer/YouMiIpServer 
chmod 7777 /root/ProxyServer/YouMiIpUser.json
cd /root/ProxyServer/ && nohup /root/ProxyServer/YouMiIpServer > /root/ProxyServer/YoumiIp.log 2>&1 &

ps -ef | grep YouMiIpServer | grep -v grep | awk '{print $2}'




service network restart

service network restart


cd /root/c7
bash install-mulitip-c7.sh

yum -y remove openvpn



reboot