LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 09-12-2007, 05:56 AM   #1
mbin
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Rep: Reputation: 0
Question bypassing 'iptables' & 'squid'


I'm using 'Linux Red Hat 9' as proxy server.

Everything is fine, except few sites which won’t go through proxy. How can I bypass by editing 'iptables' or 'squid'.

Rgds
 
Old 09-12-2007, 06:41 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
If you are running squid as a transparent proxy, add entries to your PREROUTING table that use "-j RETURN" before the the entry that does the REDIRECT or DNAT. For example

Code:
iptables -t nat -A PREROUTING -d www.linuxquestions.org -j RETURN
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
would send LQ requests directly to the Internet, but redirect everything else to the proxy listening on 8080.

Alternatively, with either transparent or non-transparent proxy, I think you could use privoxy as your first proxy. You can then run privoxy "disabled" (which means it won't make any modification to requests or web pages) but configure it so that it passes most requests on to quid, but passes select URLs directly to the Internet.
 
Old 09-12-2007, 07:31 AM   #3
mbin
LQ Newbie
 
Registered: Sep 2007
Posts: 4

Original Poster
Rep: Reputation: 0
where should i make changes in iptables or squid. https (secure sites & streamer)are not working.

Last edited by mbin; 09-12-2007 at 07:43 AM.
 
Old 09-12-2007, 07:54 AM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
What exactly do you mean by "are not working"? Do you get an Access Denied Squid error page? Is it happening with all HTTPS sites? What does the log file show? This doesn't sound like something you'd wanna fix with iptables, at least it doesn't sound that way yet. We need more information to understand what your situation is. Please be as verbose as possible.

Last edited by win32sux; 09-12-2007 at 07:58 AM.
 
Old 09-12-2007, 08:20 AM   #5
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Also, please post your squid.conf (minus comments and spaces):
Code:
cat /etc/squid/squid.conf | grep -v ^# | grep -v ^$
 
  


Reply

Tags
help, pls


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
squid acl bypassing shakeeb_linux Linux - Newbie 3 04-01-2007 11:03 AM
howto start X bypassing the login screen? & related Q's sharathg786 Fedora 1 03-17-2007 06:59 AM
IM blocking with combination of IPtables & Squid shamza Linux - Security 1 09-29-2005 01:00 AM
long lastin troubles with iptables & squid karpo66 Linux - Networking 0 01-23-2005 09:34 AM
Iptables & squid issues sedulous Linux - Networking 1 10-05-2003 02:28 AM


All times are GMT -5. The time now is 05:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration