Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
654 views
in Technique[技术] by (71.8m points)

squid - Can I configure the squid4 proxy not to outbound a particular IP address?

Can I configure the squid4 proxy not to outbound a particular IP address?

attatch 1 IP address to eth0, and attatch 4 IP address to eth1.

I don't want the eth0 IP address to be outbound!

so I set up squid.conf below.

acl balance random 1/4
balance_on_multiple_ip on

# there are eth1's IP address below.
tcp_outgoing_address 10.0.0.33 balance
tcp_outgoing_address 10.0.0.100 balance
tcp_outgoing_address 10.0.0.101 balance
tcp_outgoing_address 10.0.0.102 balance

but It works outbound the random 5 IP address(include eth0).

How can I set it so that eth0 does not outbound?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...