微慑信息网

tinyproxy1.11.0 代理服务器搭建(粗稿)

apt update

apt upgrade

apt-get install build-essential

apt-get install autoconf

wget https://github.com/tinyproxy/tinyproxy/releases/download/1.11.0/tinyproxy-1.11.0.tar.bz2

tar -jxvf tinyproxy-1.11.0.tar.bz2

cd tinyproxy-1.11.0/

./configure

make&&make install

ln -s /usr/local/etc/tinyproxy /etc/

ls -la /etc/ | grep tinyproxy

cat /etc/tinyproxy/tinyproxy.conf | grep -v “^#\|^$”

 

tinyproxy -d -c /etc/tinyproxy/tinyproxy.conf

nano /lib/systemd/system/tinyproxy.service

(保存ctrl+O;推出ctrl+X)

systemctl enable tinyproxy.service

systemctl start tinyproxy.service

systemctl status tinyproxy.service

netstat -napt | grep LISTEN | grep tinyproxy

准备pid和日志目录

mkdir /var/run/tinyproxy/
mkdir /var/log/tinyproxy/
chown -R nobody:nogroup /var/run/tinyproxy/
chown -R nobody:nogroup /var/log/tinyproxy/

将pid和日志参数添加到tinyproxy配置中

vi /etc/tinyproxy/tinyproxy.conf

添加:

LogFile "/var/log/tinyproxy/tinyproxy.log"
PidFile "/var/run/tinyproxy/tinyproxy.pid"

 

设置授权:

问题:

修改etc目录下的Tinyproxy配置文件,找到Allow 127.0.0.1,在之后添加允许的IP即可。

本文标题:tinyproxy1.11.0 代理服务器搭建(粗稿)
本文链接:
(转载请附上本文链接)
https://vulsee.com/archives/vulsee_2022/0524_16344.html
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » tinyproxy1.11.0 代理服务器搭建(粗稿)
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们