#!/bin/sh random() { tr proxy.txt </dev/null install_3proxy echo "working folder = /home/proxy-installer" WORKDIR="/home/proxy-installer" WORKDATA="${WORKDIR}/data.txt" mkdir $WORKDIR && cd $_ IP4=$(curl -4 -s icanhazip.com) IP6=$(curl -6 -s icanhazip.com | cut -f1-4 -d':') echo "Internal ip = ${IP4}. Exteranl sub for ip6 = ${IP6}" echo "How many proxy do you want to create? Example 500" read COUNT FIRST_PORT=10000 LAST_PORT=$(($FIRST_PORT + $COUNT)) gen_data >$WORKDIR/data.txt gen_iptables >$WORKDIR/boot_iptables.sh gen_ifconfig >$WORKDIR/boot_ifconfig.sh chmod +x ${WORKDIR}/boot_*.sh /etc/rc.local gen_3proxy >/usr/local/etc/3proxy/3proxy.cfg cat >>/etc/rc.local <