我有1个主IP和2个附加FO IP的VPS服务器。我下载“乌贼”包来管理我的IP地址。我编辑了/etc/squid/squid.conf并添加了行(教程:https://tastyplacement.com/squid-proxy-multiple-outgoing-ip-addresses):
acl tasty3128 myportname 3128 src 51.75.50.116/24
http_access allow tasty3128
tcp_outgoing_address 51.75.50.116 tasty3128
acl tasty3129 myportname 3129 src 54.38.50.208/24
http_access allow tasty3129
tcp_outgoing_address 54.38.50.208 tasty3129
http_port 51.75.50.116:3128 name=3128
http_port 54.38.50.208:3129 name=3129
如何使用此“乌贼”配置?在哪里可以传递参数以使用tasty3128 IP?我正在寻找有关此的信息,每个人都在谈论配置,而不是执行。将来我想通过Python脚本(或其他由Python执行的脚本)管理IP。
答案 0 :(得分:1)
您的代码完全正确,但行顺序不正确;
在您的squid.conf中: