LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-11-2010, 11:46 AM   #1
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 15
squid and apache2 problems


Hello

I have a server running both apache2 (default port) and squid (3128 port)

I set an squid ACL so my LAN 192.168.1.0 gets filtered.

ok all works fine except for external web petitions. When i try to access my web server from the outside, using my public ip, i get a SQUID DENIED.

i guess that is because in squid ACL's there is something like:
http_access all deny at the end of the file.

How can i allow external petitions to my web?
 
Old 11-11-2010, 12:45 PM   #2
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
update:

i think its because of iptables rules, look:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128


looks like i could aim for a --source 192.168.1.* --dport 80.... rule...

could it work?

*********yes it did
-s 192.168.1.0/24 did the trick.

just for expanding my knowledge, is there any way to create an ACL so every non 192.168.1.0/24 user gets "logged" but not applied the same deny/allow rules than my 192.168.1.0/24 network?

Last edited by fdelval; 11-11-2010 at 12:57 PM.
 
Old 11-15-2010, 03:16 AM   #3
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
still no alternatives?
 
Old 11-15-2010, 04:23 AM   #4
ganesh24pal@gmail.com
Member
 
Registered: Jun 2010
Location: Mumbai, India
Distribution: CentOS , Fedora, Open Suse
Posts: 193
Blog Entries: 5

Rep: Reputation: 3
This is issue may be with ur firewall, please check.
 
Old 11-15-2010, 05:35 AM   #5
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ganesh24pal@gmail.com View Post
This is issue may be with ur firewall, please check.
no, the error mesage is brought by squid
the firewall sure fixes it bypassing the squid filter.

both work ok, and i found a way to make apache and squid work in same PC.
All i want to know is if there are other ways of allowing external users to check my webpage, maintaining my LAN restrictions
 
  


Reply



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
2 problems with Apache2 Tomek58 Linux - Server 1 12-26-2008 08:28 PM
Squid and Apache2 Chrizzieej Linux - Networking 1 01-20-2007 01:10 PM
Apache2 and SSL problems Malibyte Linux - Software 1 07-09-2005 04:14 PM
PHP and Apache2 problems khansen Linux - Networking 3 05-26-2005 08:55 PM
apache2 permission problems mikewyatt Debian 1 10-24-2004 04:55 AM

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

All times are GMT -5. The time now is 04:44 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