Sunday, September 21, 2008

How to share internet using proxy Server

Step1: open the squid.conf file in any text editor ,preferably vim as shown below.

[root@localhost ~]#vim /etc/squid/squid.conf

Step2:Search for the following set of lines to the script:
#Recommended minimum configuration:
acl all src
acl manager proto cache_object
acl localhost src
acl to_localhost dst

Step3: Now, add the following end of these lines to share the internet using acl,(acl aclname src

acl internet src

# And finally deny all other access to this proxy
http_access allow localhost

step4: Now, add the following end of these lines to allow the acl name (httpd_access allow aclname)

http_access allow internet
http_access deny all

Notes: -
internet -> acl name
src -> to specify source address -> network address (or use ip address)

[root@localhost ~]#service squid restart //restart the service
[root@localhost ~]# chkconfig squid on // permanently ON the service

To configure firefox (Mozilla) using proxy server:-

Step1: open the firefox(Mozilla)
Step2:Edit->Preferences->General->Connection Settings

Step3: Ok.

Note:- ->proxy server ip address
3128 -> default port no.

Step4: Restart the Service….

1 comment:

Ajex Shaji said...

how to run c, cpp program using rhce5 linux