[x] Welcome to LinuxSolved.com Linux help forums, here we are a community of Linux users helping each other. It is helpful to both ie. new linux users as well experienced one. We always have our experts to help you and ofcourse members help each other, so you can ask for help any time by Registering.: Click to Register

Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Linux Forums - Linux Help,Advice & support community:LinuxSolved.com  |  Forum  |  Network Troublshooting  |  Linux Proxy Server Support  |  Topic: ACL on Transparent proxy
The LinuxSolved.com GNU/Linux User Communit - Forum
Welcome to LinuxCommunity You have just arrived to a friendly linux community which is helping Linux Users from Years.. You can be its part if you have not already joined it. Registration is FREE and is gateway to unlimited help and support to all your linux related needs. If you are an GNU/Linux supporter then you have come to the right place.
Pages: [1]
  Print  
Author Topic: ACL on Transparent proxy  (Read 3053 times)
0 Members and 1 Guest are viewing this topic.
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« on: June 17, 2005, 03:14:07 AM »

Hi all

I have installed transparent proxy its working fine but i am not able to block certain sites which i have in ACLs, then i have changed settings in browser now ACL are applied.

BUT users are removing the Browser settings and able to access restricted sites.

Pls can any one tel me
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #1 on: June 18, 2005, 11:04:11 AM »

I think u  have done NAT as well as proxy but no Transparent proxy..

Which means request are directly getting served by NAT.

make sure you are redirecting all request on the squid machine for port 80 to squid's port .. mostly 3128 .

See the tutorial again for that !
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #2 on: June 20, 2005, 04:58:12 AM »

As said by in your tutorial i have created a file called rc.nat in rc.d directory and insert three command lines in the order below mention.

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE

iptables --append FORWARD --in-interface eth0 -j ACCEPT

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

echo 1 > /proc/sys/net/ipv4/ip_forward

still users are able to access restricted sites. pls see the rc.nat file wheteher it is correct and suggest any changes. my etho is public IP and eth1 is private ip

tks
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #3 on: June 21, 2005, 12:48:57 AM »

Ok. here I got the problem, you have done mistake in port forwarding..

The lines you have to modify are..
Quote from: "ilias"
iptables --append FORWARD --in-interface eth0 -j ACCEPT

To...
Code:
iptables --append FORWARD --in-interface eth1 -j ACCEPT


And ....

Quote from: "ilias"
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

To...
Code:
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128


NOTE that I have changed the eth0 to eth1 for you. And please also make sure that your squid is accepting the connection at port 3128 which means you have set in squid.conf as the following which means squid will serve the request at port 3128
Code:
http_port 3128
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #4 on: June 21, 2005, 01:39:58 AM »

tks a lot ricky, what about the first command line

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE

and my squid listens on both the port 3128 and 80

tks
ilias
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #5 on: June 22, 2005, 01:14:44 PM »

That first line is ok, and I think don't make squid to listen on port 80 also as many times it can cause conflicts with other application. You can use any other port like 6558 which I prefer as secondry !
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #6 on: June 23, 2005, 02:45:24 AM »

ok, tks ricky
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #7 on: June 27, 2005, 11:06:40 PM »

After successfully installing transparent proxy as said above everything is fine except a glitch, i am not able to browse ftp sites. Its ask for the user name and password . Its keeps searching the directory listings.

"Getting contents of the folder" is displayed in the status bar. pls can anyone help me

tks in advance
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #8 on: June 29, 2005, 02:22:28 AM »

basically that happens due to slow internet uplink !
What do you say ?
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #9 on: July 01, 2005, 05:37:17 AM »

I have installed transparent proxy especialy for accessing FTP sites, but even after that it showed tha above error. There is nothing wrong in proxy settings.

I Have changed the browser seetings for passine mode, it worked.

tks for one and all
Logged
ilias
Linux Learner
***
Offline Offline

Posts: 116


View Profile
« Reply #10 on: July 08, 2005, 05:00:45 AM »

i have configured the browser to listen on passide mode
Logged
Ricky
LST CareTaker
Specially Skilled
*****
Offline Offline

Gender: Male
Posts: 2205


View Profile
« Reply #11 on: July 09, 2005, 12:32:03 PM »

I am happy to hear that ..
Smiley
Logged
manojkumar.np
New Member

Offline Offline

Posts: 1


View Profile
« Reply #12 on: May 26, 2006, 03:12:54 AM »

Dear ..

Really i thanks to both..i have been struggled for this transparent configuration before this forum.Now i got a solution & working fine.Once again thx to both..

Manojkumar.N.P.
Logged
Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Configuring Squid Proxy server & Transparent Proxy Linux Tutorials & How To's « 1 2 ... 10 11 » Ricky 163 91370 Last post September 11, 2006, 03:09:34 PM
by Ricky
Firewall using NAT (after configuring transparent proxy) General Networking Support in Linux kenchix1 1 1280 Last post March 02, 2004, 12:02:23 AM
by Ricky
hi ilias can you hepl me about configure transparent proxy ? Linux Proxy Server Support « 1 2 » sothy 16 1869 Last post October 24, 2005, 09:43:29 PM
by sothy
Transparent Proxy in SUSE9.2 Linux Servers Support gauravbajaj 5 636 Last post September 29, 2005, 02:13:20 PM
by fdawy
Help Transparent Proxy Linux Proxy Server Support moslemovic 2 851 Last post August 24, 2006, 02:10:41 AM
by moslemovic
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 03:21:59 AM

Login with username, password and session length
Navigation
Recent Discussions
[November 20, 2008, 11:30:52 PM]

[November 19, 2008, 07:52:41 PM]

[November 19, 2008, 07:52:36 PM]

[November 17, 2008, 10:42:59 AM]

[November 16, 2008, 12:49:47 AM]

[November 16, 2008, 12:48:58 AM]

[November 15, 2008, 08:29:02 AM]

[November 15, 2008, 08:24:41 AM]

[November 14, 2008, 05:11:50 AM]

[November 13, 2008, 03:28:22 AM]
Members
Total Members: 6226
Latest: Abhi
Stats
Total Posts: 8269
Total Topics: 2253
Online Today: 10
Online Ever: 111
(June 28, 2007, 06:47:29 AM)
Users Online
Users: 1
Guests: 10
Total: 11
Privacy Policy| Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Theme & TinyPortal v0.9.8 © Bloc