# v.sh #!/bin/sh random() { tr /dev/null 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 WORKDIR="/home/vps" WORKDATA="${WORKDIR}/v_ipv6.txt" mkdir $WORKDIR && cd $_ FIRST_PORT=10000 LAST_PORT=$(($FIRST_PORT + $COUNT)) gen_data > $WORKDATA gen_ifconfig >$WORKDIR/boot_ifconfig.sh chmod +x ${WORKDIR}/boot_*.sh bash ${WORKDIR}/boot_ifconfig.sh ulimit -n 10048 gen_sys >> /etc/sysconfig/network-scripts/ifcfg-eth0