Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Ive squid as http proxy and ive multi nic cards , by default it use eth1 ip in outgoing , i want it to use eth1:1 ip for outgoing any clue ?

share|improve this question

3 Answers 3

Correct option is tcp_outgoing_address.

tcp_outgoing_address 123.123.123.123

Of course, replace 123.123.123.123 with your ip address assigned to eth1:1

share|improve this answer

Squid allows you to give it an explicit IP and port combination to bind to. If that IP is bound to eth1:1, that's what it'll use for inbound connections.

http_port 192.168.1.32:3128

To specify which address it'll use for outbound connections, the tcp_outgoing_address directive is a club used to force all traffic to come FROM a specific port.

tcp_outgoing_address 192.168.1.32
share|improve this answer

man squid.conf

http_port ip_adderss:port

share|improve this answer
    
http_port options sets where squid will listen for incoming requests, not which ip address it will use for outgoing connections –  thor Apr 6 '11 at 12:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.