+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 28
*nix Thread, Cascading proxy servers in Technical; Hi i have been using clarkconnect at home for about 4 years now and have found it to be a ...
  1. #1
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    682
    Thank Post
    42
    Thanked 17 Times in 16 Posts
    Rep Power
    22

    Cascading proxy servers

    Hi i have been using clarkconnect at home for about 4 years now and have found it to be a very useful piece of software.

    So I have decided to use it in school to act as a proxy server amonst other things it can be used for.

    But I have hit a stumbling block, our school has to use a SWGFL proxy for our internet access. I know that this means I have to configure ClarkConnect to go through this proxy to work. I believe that the answer lies in configuring /etc/resolv.conf although I'm not really sure.

    Is there anyone who uses Linux who could guide me through.

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: Cascading proxy servers

    The resolv.conf file is for name servers and DNS resolving only. All your proxy stuff is in squid.conf, and I believe the line in there you want is ParentProxy. However, it is best to check the manual for ClarkConnect, as I'm sure from past experience with it, that it re-generates the config files from templates so manual changes to your settings will probably get overwritten.

    You may also want to look into IPCop or Smoothwall with the Advanced Proxy and URL Filter addons to achieve the same result, also using a web interface.

  3. #3

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,820
    Thank Post
    110
    Thanked 590 Times in 511 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Cascading proxy servers

    Is clarkconnect squid? If so I can tell you how to do it with a vanilla squid install and you can adapt it for clarkconnect...

  4. #4
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    682
    Thank Post
    42
    Thanked 17 Times in 16 Posts
    Rep Power
    22

    Re: Cascading proxy servers

    I Have found this the only problem is I have to login and alter the squid.conf file....... starting to get out of my depth here

    OK I can login using putty? but then how do i edit the squid.conf file

    From the Squid manual:

    Using an upstream proxy that supports ICP is simple, using a line like this one:

    cache_peer proxy.yourisp.com parent 3128 3130
    prefer_direct off

    The cache_peer line specifies the host name, the cache type ("parent"), the proxy port (3128) and the ICP port (in this case, the default, which is 3130).

    If your parent cache does not support ICP then you could try the following combination instead:

    cache_peer proxy.yourisp.com parent 3128 7 no-query default
    prefer_direct off

  5. #5

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: Cascading proxy servers

    You can edit it using a text editor (vi or nano if one of those installed) if you login via putty. If you have root login via SSH, you can use a program called WinSCP using a windows explorer interface to edit the squid.conf file.

  6. #6
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    682
    Thank Post
    42
    Thanked 17 Times in 16 Posts
    Rep Power
    22

    Re: Cascading proxy servers

    Thanks webman for letting me know about WinSCP.

    I have just tried it at home on my ClarckConnect box here and WinSCP makes things alot easier.

    We can't award stars for good advice here, but you should have one for that

  7. #7

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327

    Re: Cascading proxy servers

    No problem. All part of the service; welcome to EduGeek

  8. #8
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,993
    Thank Post
    120
    Thanked 286 Times in 263 Posts
    Rep Power
    108

    Re: Cascading proxy servers

    Make sure you use a decent text editior if you are editing it on a windows box.
    try something like textpad else it may mess with some of the formatting of the text file.

  9. #9
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    682
    Thank Post
    42
    Thanked 17 Times in 16 Posts
    Rep Power
    22

    Re: Cascading proxy servers

    OK I have spent most of the morning trying to get this to work, but obviously I am doing something wrong

    cache_peer proxy.schoolname.lea.sch.uk parent 8080 3130
    prefer_direct off
    cache_peer xxx.xxx.xxx.xxx parent 8080 3130
    prefer_direct off
    cache_peer proxy.schoolname.lea.sch.uk parent 8080 7 no-query default prefer_direct off
    cache_peer xxx.xxx.xxx.xxx parent 8080 7 no-query default prefer_direct off
    These are what I have tried 8080 being the proxy port.

    Can anyone seeany errors

  10. #10


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Cascading proxy servers

    think you need never_direct
    prefer_direct sends direct to the internet without proxying?

  11. #11

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,820
    Thank Post
    110
    Thanked 590 Times in 511 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Cascading proxy servers

    Yep, you need never_direct. But you also need always_direct for your local intranet servers. So basically you end up with something like this

    Code:
    acl all 0.0.0.0/0
    acl local-servers .yourdomain.lea.sch.uk
    acl local-subnet 10.0.0.0/24
    
    never_direct all
    always_direct local-servers, local-subnet
    
    cache_peer proxy.schoolname.lea.sch.uk parent 8080 7 no-query default
    Disclaimer: the above is from memory so probably has stupid typos.

  12. #12
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    682
    Thank Post
    42
    Thanked 17 Times in 16 Posts
    Rep Power
    22

    Re: Cascading proxy servers

    Thanks guys I will go away and try that straight away.

  13. #13
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    682
    Thank Post
    42
    Thanked 17 Times in 16 Posts
    Rep Power
    22

    Re: Cascading proxy servers

    Hi I'm still having problems, is there a document i can read on this?


    acl all 0.0.0.0/0 Do I edit this line?
    acl local-servers .yourdomain.lea.sch.uk
    acl local-subnet 10.0.0.0/24 Do I edit this line?

    never_direct all
    always_direct local-servers, local-subnet

    cache_peer proxy.schoolname.lea.sch.uk parent 8080 7 no-query default

  14. #14

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,820
    Thank Post
    110
    Thanked 590 Times in 511 Posts
    Blog Entries
    1
    Rep Power
    226

    Re: Cascading proxy servers

    The ACL's were just to make the never_direct/always_direct rules clear. Clarkconnect has probably already setup equivelent acls for you that do the same job as my examples. Reuse the existing acls whereever possible and adapt my example.

    http://squid-docs.sourceforge.net/ For squid documentation.

  15. #15
    edie209's Avatar
    Join Date
    Mar 2006
    Location
    Kernow
    Posts
    682
    Thank Post
    42
    Thanked 17 Times in 16 Posts
    Rep Power
    22

    Re: Cascading proxy servers

    Geoff

    I think I am getting the idea now, I have just printed the conf file (48 pages) the different lines have to appear in the expected area of the conf file (am I correct?)

    I think I have done that for the acl lines and the never_direct, but I am unsure of where to place the cache_peer line.

    Originaly I had put all the lines at the end of the file.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. How many servers??
    By maniac in forum Hardware
    Replies: 4
    Last Post: 6th November 2007, 10:05 AM
  2. WSUS & Cachepilot Proxy Servers
    By BaccyNet in forum Windows
    Replies: 10
    Last Post: 3rd September 2007, 11:27 AM
  3. Proxy switch "proxy on" & " proxy off" software
    By GavRob in forum Network and Classroom Management
    Replies: 20
    Last Post: 30th July 2007, 10:05 PM
  4. Cascading proxy help...my head is fried..
    By Sirbendy in forum Wireless Networks
    Replies: 6
    Last Post: 11th March 2007, 08:26 PM
  5. CGI Proxy Servers
    By kerrymoralee9280 in forum Windows
    Replies: 2
    Last Post: 26th February 2007, 06:24 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •