LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2004, 12:54 PM   #1
swingheim
LQ Newbie
 
Registered: Sep 2003
Posts: 10

Rep: Reputation: 0
Squid, SquidGuard rewrite


Our office intranet is located at office.mycompany.com. Inside the office, however, the DNS for 'office.mycompany.com' resolves to our EXTERNAL IP address, and since I have loopback disabled (for security), it barfs when trying to access the intranet.

So, I figured, hey-- I can install squidGuard, and create a rewrite rule to redirect them to the internal IP of the web server.

My rule looks something like this:

rew office {
s@^http://office.mycompany.com@http://192.168.10.10@i
s@^http://www.lycos.com@http://www.google.com@
}

I threw in the lycos->google rule just for testing.

I restart Squid, and the lycos->google rule works just fine, but I still get an error with the office rule above it... I get the standard Squid error page:

Quote:
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://office.mycompany.com/

The following error was encountered:

* Access Denied."
Is this just a simple permission problem in the squid.conf?

Another idea I had was to modify my bind server configuration--but alas, I don't have the time to learn how to configure bind (I tried before, and ugh, it was very painful)

Last edited by swingheim; 10-26-2004 at 12:56 PM.
 
Old 10-26-2004, 01:01 PM   #2
swingheim
LQ Newbie
 
Registered: Sep 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Hmm... I think it has something to do with the fact that my firewall's name is "firewall.office.mycompany.com" ...

Because

rew office {
s@^http://www.lycos.com@http://192.168.10.10@
}

works just fine ...

The only thing that doesn't work is the name 'office.mycompany.com'...

Any ideas?
 
Old 12-14-2009, 03:50 AM   #3
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Rep: Reputation: 15
documentation

I want to do something almost exactly like what you have there.

Do you know of any documentation to do that? the squidguard site doesn't have any.
I'd like to understand it a bit before I simply copy, paste, and edit.
 
Old 12-14-2009, 04:16 AM   #4
isaaclw
Member
 
Registered: Dec 2009
Posts: 36

Rep: Reputation: 15
so.. it turned out to be just as easy as you wrote.

Code:
rew aptproxy {
    s@^http://security.ubuntu.com/ubuntu/@http://10.42.43.1:9999/ubuntu-security/@
    s@^http://ke.archive.ubuntu.com/ubuntu/@http://10.42.43.1:9999/ubuntu/@
    s@^http://archive.ubuntu.com/ubuntu/@http://10.42.43.1:9999/ubuntu/@
    s@^http://archive.cannonical.com/ubuntu/@http://10.42.43.1:9999/partner/@
}
(I'm using it with apt-proxy to make sure there's no leakage of bandwidth)
 
  


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
error: mail command failed for /var/log/squidguard/squidGuard.log.6 Niceman2005 Linux - Networking 1 01-22-2009 01:24 PM
Squidguard sanjibgupta Linux - Security 1 09-26-2005 01:47 AM
making squidguard start whenever squid starts Niceman2005 Linux - Software 2 11-24-2004 06:31 PM
squid conf: squid failed when I type insert redirect_program /usr/bin/squidguard Niceman2005 Linux - Software 1 11-24-2004 02:29 PM
Can squid/squidguard be used to do this? Jeff D Linux - Newbie 2 01-13-2003 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:17 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
Open Source Consulting | Domain Registration