Proxy can be understood as a third party who mediates between two networks so that the first party and second party does not relate directly, but by the intermediary of Proxy. In this section, we will try to install and configure squid proxy with the simplest configuration.
1. Install Squid
Code:
sudo apt-get install squid
2. Copy default configuration before editing
Code:
sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.backup
3. Edit file squid.conf with assumption :
a) Connected to the Internet
b) Local network that is used is called LecturerLAN with network
192.168.7.0/24
c) Hostname (localhost ubuntu server) is ubuntuserver.com with ip
192.168.7.1/24
d) All configurations beyond the addition below, still using the default squid
Code:
sudo nano /etc/squid/squid.conf
Code:
acl LecturerLAN src 192.168.7.0/24 http_access allow LecturerLAN htpp_access deny all http_port 8080 cache_mem 64 MB memory_replacement_policy lru cache_replacement_policy lru cache_swap low 90 cache_swap high 95 visible_hostname ubuntuserver.com
Save it by pressing CTRL + X press Y and Enter
4. Restart Squid
Code:
sudo /etc/init.d/squid restart
5. Now edit configuration of the host machine
In Firefox (Linux machine)
Code:
Edit -> Preferences -> Advanced ->Network -> Settings Manual proxy configuration: HTTP Proxy : 192.168.7.1 Port : 8080


10:07 AM
edidwidayanto

0 Comment:
Post a Comment