[squid-users] want ignore if the ips added to the interface and force running it
Amos Jeffries
squid3 at treenet.co.nz
Thu Jan 11 07:01:13 UTC 2018
On 11/01/18 19:36, --Ahmad-- wrote:
> Hello Guys .
>
> sometimes i add like 100 ips on server interfaces then i run squid including the 100 ips in the config
> config like :
>
> http_port 1.1.1.1:8080
> acl ip1 myip 1.1.1.1
> tcp_outgoing_address 1.1.1.1 ip1
>
> and its ok ……
>
>
>
>
> now say the ip 1.1.1.1 wasn’t added to the interface config , when i run squid service , i will see error in squid say “cant combined address “ and squid will crash .
>
> so …. what i need to do it is :
>
> i want to force squid to be run even if the ip address not added to the network card .
>
> is there any directive or edit c++ files ?
Use wildcard port(s) and a localip ACL. Like so:
http_port 8080
acl ip1 localip 1.1.1.1
tcp_outgoing_address 1.1.1.1 ip1
Amos
More information about the squid-users
mailing list