如何使用鱿鱼更改IP?

问题描述 投票:0回答:1

我有一个VPS服务器,具有1个主IP和2个附加FO IP。我下载“乌贼”包来管理我的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。

python networking server squid
1个回答
0
投票

您的代码完全正确,但行顺序不正确;

在您的squid.conf中:

  • 首先配置:http_port 51.75.50.116:3128 name = 3128
  • 然后配置:acl tasty3128 myportname 3128 src 51.75.50.116/24等等。
© www.soinside.com 2019 - 2024. All rights reserved.