登陆linux vps.
pip install gevent dpkt
git clone https://github.com/yinghuocho/gsocks gsocks-by-yinghuocho
cd gsocks-by-yinghuocho
python socksproxy.py 127.0.0.1 22556
thus,on 127.0.0.1:22556, you established a socks proxy server.u can use systemd to run the command as a service:
nano /etc/systemd/system/gsocks-by-yinghuocho.service
cat /etc/systemd/system/gsocks-by-yinghuocho.service
[Unit]
After=network.target
[Service]
ExecStart=/usr/bin/python /root/gsocks-by-yinghuocho/socksproxy.py 127.0.0.1 22556
Restart=always
[Install]
WantedBy=multi-user.target
then,run:
systemctl start gsocks-by-yinghuocho
systemctl enable gsocks-by-yinghuocho
this socks proxy server is installed successfully.
project url: https://github.com/yinghuocho/gsocks
pip install gevent dpkt
git clone https://github.com/yinghuocho/gsocks gsocks-by-yinghuocho
cd gsocks-by-yinghuocho
python socksproxy.py 127.0.0.1 22556
thus,on 127.0.0.1:22556, you established a socks proxy server.u can use systemd to run the command as a service:
nano /etc/systemd/system/gsocks-by-yinghuocho.service
cat /etc/systemd/system/gsocks-by-yinghuocho.service
[Unit]
After=network.target
[Service]
ExecStart=/usr/bin/python /root/gsocks-by-yinghuocho/socksproxy.py 127.0.0.1 22556
Restart=always
[Install]
WantedBy=multi-user.target
then,run:
systemctl start gsocks-by-yinghuocho
systemctl enable gsocks-by-yinghuocho
this socks proxy server is installed successfully.
project url: https://github.com/yinghuocho/gsocks