-
Notifications
You must be signed in to change notification settings - Fork 11
/
genproxy48-http-with-password.sh
44 lines (39 loc) · 1.48 KB
/
genproxy48-http-with-password.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
### main settings ###
ipv4=$(hostname --ip-address)
portproxy=20000 # Proxy start port
user=login ### Proxy Login
pass=passw ### Proxy Password
config="/etc/3proxy/3proxy.cfg"
### clean cfg ###
echo -ne > /etc/3proxy/3proxy.cfg
echo -ne > /app/proxy/ipv6-socks5-proxy/proxylist_key_collector.txt
echo -ne > /app/proxy/ipv6-socks5-proxy/xevil.txt
### cfg start ###
echo "daemon" >> $config
echo "maxconn 300" >> $config
echo "nserver [2606:4700:4700::1111]" >> $config
echo "nserver [2606:4700:4700::1001]" >> $config
echo "nserver [2001:4860:4860::8888]" >> $config
echo "nserver [2001:4860:4860::8844]" >> $config
echo "nserver [2a02:6b8::feed:0ff]" >> $config
echo "nserver [2a02:6b8:0:1::feed:0ff]" >> $config
echo "nscache 65536" >> $config
echo "nscache6 65536" >> $config
echo "timeouts 1 5 30 60 180 1800 15 60" >> $config
#echo "setgid 65535" >> $config
#echo "setuid 65535" >> $config
#echo "monitor /etc/3proxy/3proxy.cfg" >> $config
echo "stacksize 6000" >> $config
echo "flush" >> $config
echo "auth strong" >> $config
echo "users $user:CL:$pass" >> $config
echo "allow $user" >> $config
for i in `cat ip.list`; do
echo "proxy -6 -s0 -n -a -olSO_REUSEADDR,SO_REUSEPORT -ocTCP_TIMESTAMPS,TCP_NODELAY -osTCP_NODELAY,SO_KEEPALIVE -p$portproxy -i$ipv4 -e$i" >> $config
((inc+=1))
((portproxy+=1))
### other software proxylist creation ###
echo "$ipv4:$portproxy@$user:$pass;v6;http" >> proxylist_key_collector.txt
echo "http://$user:$pass@$ipv4:$portproxy" >> xevil.txt
done