LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2013, 03:00 AM   #1
ishtiaqaj
LQ Newbie
 
Registered: Jun 2013
Posts: 4

Rep: Reputation: Disabled
squid is not working as transparent


dear all.

i have installed squid 3.1.10 on centos 6.4. by giving proxy address and port in client broser squid works fine but not work as transparent.

centos 6.4
squid 3.1.10

eth0 (internet)
ip : 192.168.1.12/24
Defaul gat: :192.168.1.1
DNS : 8.8.8.8 also try 192.168.1.1

internet is working on the proxy server but squid not listening(tail -f /var/log/squid/access.log)
eth1(LAN)

ip : 192.168.2.1/24
gateway :0.0.0.0
DNS : 8.8.8.8 also try 192.168.1.1 and also wthout dns.

/etc/squid.conf

http_port 3128 transparent
visible_hostname myproxyserver also try myproxyserver.fcc.com

iptables

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.2.1:3128
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -I INPUT -s 192.168.2.0/24 -p tcp --dport 3128 -j ACCEPT

please guide.
 
Old 06-17-2013, 12:20 PM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Can you please share output of

iptables -t nat -L -n -v

Ideally packets should hit PREROUTING chain of nat table.

DNS query could be a issue here, So i recommned to create a cache only dns server is your LAN.


Thanks
 
Old 06-18-2013, 03:40 AM   #3
ishtiaqaj
LQ Newbie
 
Registered: Jun 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
new problem with squid

i have run the squid as transparent but now i am unable to stop media formats download like mp4, exe, before its working but with transparent not working. i try url_regex"" and urpath_regex "" but not work. have you any suggestion.
 
Old 06-18-2013, 02:44 PM   #4
ishtiaqaj
LQ Newbie
 
Registered: Jun 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
squid unable to block internet download manager from download

dear all,

now squid is working as transparet but unable to block internet download manager to stop donloading the file. need help
 
Old 06-19-2013, 11:52 PM   #5
tonmoy
LQ Newbie
 
Registered: Apr 2013
Location: Dhaka, Bangladesh
Distribution: CentOS, Red Hat
Posts: 28

Rep: Reputation: 2
Quote:
dear all,

now squid is working as transparet but unable to block internet download manager to stop donloading the file. need help
Dear ishtiaqaj:

Since, IDM and some other Download Manager software use 80 port, I don't know any other way without using a firewall/filter appliance that does Transport Layer level Deep Packet Inspection by which filtering is possible reading inside of the data packet being sent.

For the time being, you can restrict IDM downloaders with blocking domains in squid if they download frequently from any specific/common sites until any Guru can show us any precise way.

Thanks a lot.

Last edited by tonmoy; 06-19-2013 at 11:53 PM. Reason: Clarify
 
  


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
Transparent proxy not working in squid 2.6 farhad_aslam Linux - Server 3 10-13-2011 05:12 AM
Ubuntu 8.04: Transparent proxy using squid working but block domain not working bleketux Linux - Networking 10 03-16-2009 06:41 AM
squid 2.6 -- working on port 3128, but not 'transparent' gr8scot Linux - Software 8 06-03-2008 03:44 AM
transparent squid proxy not working Niceman2005 Linux - Networking 5 01-17-2008 05:10 PM
Ubuntu, Squid Transparent Proxy server is not working pocs Linux - Networking 6 10-31-2007 10:42 AM


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