Skip to content

Commit a5b7d22

Browse files
committed
updated README.md
1 parent a30a61e commit a5b7d22

File tree

1 file changed

+35
-26
lines changed

1 file changed

+35
-26
lines changed

README.md

+35-26
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Docker Rotating Proxy Config Generator
22

33
- Fully Optimized for Web Scraping Usage.
4-
- HTTP/HTTPS Support
4+
- HTTP/HTTPS Support (see wiki)
55
- socks5 with Authorization Proxy to HTTP(S) proxy convert compatible by [Gost](https://github.com/ginuerzh/gost)
6-
- You can use a VPN as an HTTP proxy.
6+
- You can use a VPN as an HTTP proxy.(powered by [gluetun](https://github.com/qdm12/gluetun) )
77
- Making it IP address based authentication makes it easier to use in your program.(selenium,puppeteer etc)
88

99

@@ -109,31 +109,37 @@ zproxy.lum-superproxy.io:22225:httpsquid:yourLuminatiUsername:Password
109109

110110
## Generated docker-compose.yml example
111111
```
112-
version: '3.3'
112+
version: '3.4'
113113
services:
114114
squid:
115115
ports:
116116
- '3128:3128'
117-
image: 'b4tman/squid:5.3.0'
117+
image: 'b4tman/squid:5.8'
118118
volumes:
119119
- './config:/etc/squid/conf.d:ro'
120120
container_name: dockersquid_rotate
121121
environment:
122122
- SQUID_CONFIG_FILE=/etc/squid/conf.d/squid.conf
123123
extra_hosts:
124124
- 'host.docker.internal:host-gateway'
125+
healthcheck:
126+
test: [CMD-SHELL, 'export https_proxy=127.0.0.1:3128 && export http_proxy=127.0.0.1:3128 && wget -q -Y on -O - https://checkip.amazonaws.com || exit 1']
127+
retries: 5
128+
timeout: 10s
129+
start_period: 10s
130+
interval: 300s
125131
proxy1:
126132
ports:
127133
- '30000:30000'
128134
image: 'ginuerzh/gost:latest'
129135
container_name: dockergost_1
130-
command: '-L=:30000 -F=socks5://vpn:unlimited@159.89.206.161:2434'
131-
vpn3:
136+
command: '-L=:30000 -F=socks5://vpn:unlimited@82.196.7.200:2434'
137+
vpn2:
132138
ports:
133-
- '127.0.0.1:30001:8888/tcp'
134-
- '127.0.0.1:50000:8388'
139+
- '30001:8888/tcp'
140+
- '50000:8388'
135141
image: qmcgaw/gluetun
136-
container_name: dockervpn_3
142+
container_name: dockervpn_2
137143
devices:
138144
- '/dev/net/tun:/dev/net/tun'
139145
cap_add:
@@ -148,14 +154,14 @@ services:
148154
- HTTPPROXY_USER=
149155
- HTTPPROXY_PASSWORD=
150156
- HTTPPROXY_STEALTH=on
151-
- OPENVPN_USER=xxxx
152-
- OPENVPN_PASSWORD=yyyy
153-
vpn4:
157+
- OPENVPN_USER=xxxxx
158+
- OPENVPN_PASSWORD=yyyyy
159+
vpn3:
154160
ports:
155161
- '30002:8888/tcp'
156162
- '50001:8388'
157163
image: qmcgaw/gluetun
158-
container_name: dockervpn_4
164+
container_name: dockervpn_3
159165
devices:
160166
- '/dev/net/tun:/dev/net/tun'
161167
cap_add:
@@ -170,24 +176,26 @@ services:
170176
- HTTPPROXY_USER=
171177
- HTTPPROXY_PASSWORD=
172178
- HTTPPROXY_STEALTH=on
173-
- OPENVPN_USER=xxxx
174-
- OPENVPN_PASSWORD=yyyy
179+
- OPENVPN_USER=xxxxx
180+
- OPENVPN_PASSWORD=yyyyy
175181
```
176182

177183
## Now try it out
178184
```
179185
port 3128 is rotation port.
186+
Recommended for one-time requests that do not require browser rendering, such as curl
187+
180188
sh-4.2# curl https://httpbin.org/ip --proxy https://127.0.0.1:3128
181189
{
182-
"origin": "209.197.26.75"
190+
"origin": "82.196.7.200"
183191
}
184192
sh-4.2# curl https://httpbin.org/ip --proxy https://127.0.0.1:3128
185193
{
186-
"origin": "185.155.98.168"
194+
"origin": "89.187.161.56"
187195
}
188196
sh-4.2# curl https://httpbin.org/ip --proxy https://127.0.0.1:3128
189197
{
190-
"origin": "173.245.217.48"
198+
"origin": "84.17.37.159"
191199
}
192200
sh-4.2# curl https://httpbin.org/ip --proxy https://127.0.0.1:3128
193201
{
@@ -196,23 +204,24 @@ sh-4.2# curl https://httpbin.org/ip --proxy https://127.0.0.1:3128
196204
sh-4.2#
197205
198206
and.. try static ip gateway
207+
Recommended in selenium, puppeteer and playwright
199208
200-
# curl httpbin.org/ip --proxy http://127.0.0.1:49152
209+
# curl httpbin.org/ip --proxy http://127.0.0.1:30000
201210
{
202-
"origin": "139.99.54.109"
211+
"origin": "82.196.7.200"
203212
}
204-
# curl httpbin.org/ip --proxy http://127.0.0.1:49152
213+
# curl httpbin.org/ip --proxy http://127.0.0.1:30000
205214
{
206-
"origin": "139.99.54.109"
215+
"origin": "82.196.7.200"
207216
}
208217
209-
# curl httpbin.org/ip --proxy http://127.0.0.1:49153
218+
# curl httpbin.org/ip --proxy http://127.0.0.1:30001
210219
{
211-
"origin": "159.89.206.161"
220+
"origin": "84.17.37.159"
212221
}
213-
# curl httpbin.org/ip --proxy http://127.0.0.1:49153
222+
# curl httpbin.org/ip --proxy http://127.0.0.1:30001
214223
{
215-
"origin": "159.89.206.161"
224+
"origin": "84.17.37.159"
216225
}
217226
```
218227

0 commit comments

Comments
 (0)