Skip to content

Instantly share code, notes, and snippets.

@rruu
Created June 7, 2016 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rruu/033754f3919e61ffad2775858023681b to your computer and use it in GitHub Desktop.
Save rruu/033754f3919e61ffad2775858023681b to your computer and use it in GitHub Desktop.
[root@test3 ~]# sestatus
SELinux status: disabled
[root@test3 ~]# cat /etc/issue
CentOS release 6.7 (Final)
[root@test3 ~]# iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
[root@test3 ~]# cat /etc/haproxy/haproxy.cfg
global
daemon
maxconn 256
defaults
timeout connect 24h #0ms
timeout client 10s #0ms
timeout server 10s #0ms
frontend rotatingproxies
mode tcp
bind 46.101.192.178:9999
default_backend proxys
backend proxys
server proxy1 46.101.169.147:1235
server proxy2 46.101.158.234:1235
balance roundrobin
[root@test3 ~]# rpm -qa|grep hap
haproxy-1.5.4-3.el6.x86_64
-------------------------------------
[root@test2 src]# cat config
daemon
auth strong
auth none
#users user:CL:password
flush
#nserver 8.8.8.8
nserver 77.88.8.8
#nserver 127.0.0.1
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
#http proxy
proxy -p1234 -n -a -i46.101.169.147 -e46.101.169.147
#socks proxy
socks -p1235 -i46.101.169.147 -e46.101.169.147
-------------------------------------
[root@test1 src]# cat config
daemon
auth strong
auth none
#users user:CL:password
flush
#nserver 8.8.8.8
nserver 77.88.8.8
#nserver 127.0.0.1
nscache 65536
timeouts 1 5 30 60 180 1800 15 60
#http proxy
proxy -p1234 -n -a -i46.101.158.234 -e46.101.158.234
#socks proxy
socks -p1235 -i46.101.158.234 -e46.101.158.234
-------------------------------------
[user@localhost]$ curl --socks5 46.101.192.178:9999 getip.io
46.101.158.234
[user@localhost]$ curl --socks5 46.101.192.178:9999 getip.io
46.101.169.147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment