Categories
Network

Linux Server connexion through Squid

In this post, we will describe how to connect linux server to internet through proxy without authentication.

1.Firstly, we need to add this couple of line to use proxy for http, https and ftp:

[blockquote align=”none” author=””]Export http_proxy=http://10.10.10.1 :8080

Export https_proxy=http//10.10.10.1 :8080

Export ftp_proxy=http://10.10.10.1 :8080

[/blockquote]

Where 10.10.10.1 is proxy IP and 8080 is listening port.

2.Open the squid.conf file to add the authorization of the server

[blockquote align=”none” author=””]Vi /etc/squid3/squid.conf

################# Object Definition######################

Acl network_server 192.168.1.1

#################Authorization List######################

http_access allow network_server

[/blockquote]

3.After modifying the file squid.conf, we need to save modification and reload squid process

[blockquote align=”none” author=””]/etc/init.d/squid3 reload[/blockquote]

4-Once reloaded, we cill check if squid process are working correctly

[blockquote align=”none” author=””]Proxy# ps aux | grep squid 

[/blockquote] 

 

 

 

Leave a Reply

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