Proxy Server Setup

The following is the instructions I used to set Squid up:

I installed squid using this page: https://help.ubuntu.com/7.04/server/C/squid.html

1. At a terminal prompt, enter the following command to install the Squid server:

sudo apt-get install squid squid-common

sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.original

sudo chmod a-w /etc/squid/squid.conf.original
2.  modified the /etc/squid/squid.conf file.  here’s the diff between the original:

mozilla@ubuntu:/etc/squid$ sudo diff squid.conf squid.conf.original
676,677c676,677
< http_access allow localnet
< ## http_access allow localhost

> #http_access allow localnet
> http_access allow localhost
1114,1115c1114
< http_port 8888
< ## http_port 3128

> http_port 3128
1960d1958
< cache_dir ufs /usr/local/squid/cachetmp 100 16 256
2106c2104
< logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt

> #logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
3409,3410c3407,3408
< ## none
< visible_hostname borg

> # none
>
3. after making the changes, you’ll have to restart squid.
4. on mobile device in fennec, go to

about: config

and then change the following settings:

network.proxy.http <ip address of the proxy server>
network.proxy.http_port 8888
network.proxy.type 1

Note:

1. Thanks to Geo for helping me troubleshoot some of it.

Advertisements

About shizen008

Breaking things and getting in trouble for it since '74. Disclaimer: I am not responsible if I make your head explode reading this blog! The writings here are my own expression and not of any companies. I currently work on being a QA for B2G aka Firefox OS
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s