bromite-buildtools/images/squid/start-proxy.sh

14 lines
522 B
Bash
Raw Normal View History

2021-07-31 15:36:38 +05:30
#!/bin/bash
2021-08-03 20:56:16 +05:30
echo Connect /tmp/forward-proxy/proxy.sock to 127.0.0.1:8118
2021-07-31 15:36:38 +05:30
test -e /tmp/forward-proxy/proxy.sock && sudo rm /tmp/forward-proxy/proxy.sock
socat UNIX-LISTEN:/tmp/forward-proxy/proxy.sock,reuseaddr,fork TCP:127.0.0.1:8118 &
sudo chmod 777 /tmp/forward-proxy/proxy.sock
2021-08-03 20:56:16 +05:30
echo Connect /tmp/proxy/bots.sock to $REMOTEEXEC_ADDR
test -e /tmp/proxy/bots.sock && sudo rm /tmp/proxy/bots.sock
socat UNIX-LISTEN:/tmp/proxy/bots.sock,reuseaddr,fork TCP4:$REMOTEEXEC_ADDR &
2021-07-31 15:36:38 +05:30
sudo chmod 777 /tmp/proxy/bots.sock
2021-08-06 11:35:28 +05:30
squid -N