LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-14-2007, 05:19 AM   #1
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
Forcing users to use proxy


Hello.
I've got one machine in a local network. I've squid installed on this computer and dansguardian. I don't have access to router.
And my question:
Is there a way to force users to use proxy on this host? For example some redirection with iptables ?
I didn't manage to create a proper chain, is it possible ?
 
Old 01-14-2007, 06:06 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
I don't understand what you mean by you don't have access to the router. Is the host running squid and dansquardian situated physically between the lan and the router? If so, then other hosts have to use the proxy because there is no other way to access the internet.
 
Old 01-14-2007, 06:10 AM   #3
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190

Original Poster
Blog Entries: 2

Rep: Reputation: 31
I just a single computer connected to the net and I want to use dansguardian on it, the proxy installed on this machine is only for this machine not to serve other computers...
A lot of people use that computer, so when I have default configuration of squid, I need to set proxy in the web browser to work. I want it to work for default, without possibility to change. I figured out that I can somehow change the settings of iptables, but I don' know how..

OK found it:
Code:
iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT  --to 3128 (port my proxy works) -o lo (it needs the correct interface also)

Last edited by avallach; 02-10-2007 at 07:38 AM.
 
  


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
if proxy A stop working then how users are shifted automatically on the other proxy B shahg_shahg Linux - Networking 1 01-10-2007 08:42 AM
how I can find out how many users are connected/ using with my proxy . shahg_shahg Linux - Networking 3 12-10-2005 08:58 AM
Forcing users to use DG on server. Steve2001 Linux - Networking 1 08-27-2005 09:33 AM
SSH Forcing users to use RSA keys XaViaR Linux - Security 8 07-07-2005 01:42 AM
Sendmail question! Forcing FROM lines from local users? Bungo2000 Linux - Networking 5 12-15-2003 11:37 PM

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

All times are GMT -5. The time now is 12:50 PM.

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