LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-18-2011, 08:12 PM   #1
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Rep: Reputation: 2
ubuntu server and squid system


hello guys
i have ubuntu server 10.10 with squid cache 2.7
i match it with mikrotik system with pppoe server and every thing work fine
now i want to get another connection
so i will have 2 modems
but i want to make one for browsing
and another one for downloading (exe,flv,mp3...etc)
how i can make every destination of them to do that ?
i need to know please
okay thanks every body
 
Old 04-19-2011, 05:48 AM   #2
jadrevenge
Member
 
Registered: Mar 2011
Location: Manchester,UK
Distribution: OpenIndiana/Ubuntu
Posts: 36

Rep: Reputation: 2
1) I'm not sure that squid knows about interfaces ...

2) extensions of different types will have to be url's that end in those types ... you'll find it easier to allow whole sites to go over the other interface.

3) in our system 1 have 3 squid caches (3 physically different boxes), 1 internal proxy with no direct access to the outside world, and 2 external proxies with one external interface on each.

I then use the "cache_peer" and "cache_peer_access" on the internal one to tell it which external proxy to point to for specific sites.
 
Old 04-28-2011, 04:00 PM   #3
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
hello mate , the link u sent not contain what i want
i want to make isp for the downloading files and the other one for the browsing
and the upload from the both of them ...
how i can do ?
 
Old 04-29-2011, 05:41 PM   #4
jadrevenge
Member
 
Registered: Mar 2011
Location: Manchester,UK
Distribution: OpenIndiana/Ubuntu
Posts: 36

Rep: Reputation: 2
Quote:
Originally Posted by !! hack-back !! View Post
hello mate , the link u sent not contain what i want
i want to make isp for the downloading files and the other one for the browsing
and the upload from the both of them ...
how i can do ?
you can't easily.

browsing files and downloading files are the same thing ... only you know which is a download and which is a web page.

you don't know the file type until you start downloading, at which point the proxy server is kinda committed to getting the file in some way (although squid can do some checking based on this, I don't believe it can change the parent proxy when this happens)

Unless I'm mistaken it's not possible for you to ping download servers on a different interface to web servers using the ping command, and because of this it will be impossible for squid to do likewise.

the way we did it was to separate the interfaces (you could probably do this in zones or containers) and run squid on those separate interfaces. then have a further squid that uses those squids as parent caches.
 
Old 04-29-2011, 07:27 PM   #5
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
if i can know which is the download and which is the webpage so i can separate every one on another isp
so how i can do this ??
 
Old 05-03-2011, 03:22 AM   #6
jadrevenge
Member
 
Registered: Mar 2011
Location: Manchester,UK
Distribution: OpenIndiana/Ubuntu
Posts: 36

Rep: Reputation: 2
Quote:
Originally Posted by !! hack-back !! View Post
if i can know which is the download and which is the webpage so i can separate every one on another isp
so how i can do this ??
If you know which is a download and which is a webpage (which I don't ... I use site lists and send specific sites to one ISP)

I have 3 physically separate squid servers ... if you want to virtualize you will need to ask somewhere specific for your platform ... I use Solaris mainly.

2 squid servers are set up as normal squid proxies ...

1 squid server has "cache_peer"'s defined:

--
cache_peer isp1 parent 3128 3130 default allow-miss no-query
cache_peer isp2 parent 3128 3130 no-query

cache_peer_access isp2 allow download-sites
cache_peer_access isp2 allow download-sites2

cache_peer_access isp1 deny download-sites
cache_peer_access isp1 deny download-sites2

always_direct allow our_networks
never_direct allow all

--

isp1 is the default (non-download) isp, download-sites and download-sites2 are ACL's defined above ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Use SQUID Proxy Server in Ubuntu 9.10? linuxrockers Linux - Newbie 1 02-10-2010 12:08 PM
LXer: Squid Proxy Server On Ubuntu 9.04 Server With DansGuardian, ClamAV, And WPAD LXer Syndicated Linux News 0 07-03-2009 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration