Answer the question
In order to leave comments, you need to log in
How to enter all available ip addresses under centos 6 into 3proxy config?
there is a script that once worked out, but I got an incorrect copy, maybe the wrong characters were copied somewhere?
script for auto-configuring / auto-raising 3proxy with auto-registration of all available IP addresses on a server running centos 6, all commands are executed correctly up to a couple of lines, namely up to here:
interface=/sbin/ifconfig grep|eth0 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
echo "socks -p235 -i$interface -e$interface" >>/etc/3proxy.cfg
socks -p235 -i123.123.123.123 -e123.123.123.123
socks -p235 -i124.124.124.124 -e124.124.124.124
Answer the question
In order to leave comments, you need to log in
interface=$(/sbin/ifconfig eth0|grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
echo "socks -p235 -i$interface -e$interface" >>/etc /3proxy.cfg
and this is only for eth0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question