Settings of multiple IP address in Proxy server squid

I’m operating proxy server and using squid but I might need multiple IP operation so I’d like to leave a note for that. Multiple IP operation in squid has no information even if it’s in English, so I wrote them just in case for those might be stuck.

First, edit below

vi /etc/squid/squid.conf

And add to port listen

http_port 200.200.200.200:3128 http_port 200.200.200.201:3128

describe acl

acl ip1 myip 200.200.200.200/32 acl ip2 myip 200.200.200.201/32

outgoing address settings

tcp_outgoing_address 200.200.200.200 ip1 tcp_outgoing_address 200.200.200.201 ip2

and, changing dns server settings

dns_nameservers xxx.xxx.xxx.xxx

/etc/init.d/squid restart

That’s all. It’s easy if you know that.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.