【Linux專題】http(s)代理

安裝軟件
yum?install?tinyproxy?-y
#?查看配置文件
rpm?-ql?tinyprox
修改配置文件
vim /etc/tinyproxy/tinyproxy.conf
#?Port:?Specify?the?port?which?tinyproxy?will?listen?on.??Please?note
#?that?should?you?choose?to?run?on?a?port?lower?than?1024?you?will?need
#?to?start?tinyproxy?using?root.
Port?8888
#?Allow:?Customization?of?authorization?controls.?If?there?are?any
#?access?control?keywords?then?the?default?action?is?to?DENY.?Otherwise,
#?the?default?action?is?ALLOW.
#?The?order?of?the?controls?are?important.?All?incoming?connections?are
#?tested?against?the?controls?based?on?order.
#允許:自定義授權(quán)控件。如果有的話
#訪問控制關(guān)鍵字,那么默認(rèn)動作是拒絕。否則,
#默認(rèn)操作是允許。
#控件的順序很重要。所有傳入連接都根據(jù)順序?qū)丶M(jìn)行測試。
#?Allow?127.0.0.
添加防火墻策略
firewall-cmd?--add-port=8888/tcp
firewall-cmd?--add-port=8888/tcp?--permanent
firewall-cmd?--list-all
啟動服務(wù)
systemctl?enable?tinyproxy.service
systemctl?status?tinyproxy.service
systemctl?start?tinyproxy.service
systemctl?restart?tinyproxy.servic
查看端口
netstat?-tnp
查看日志
tail?-f?/var/log/tinyproxy/tinyproxy.lo