LinuxQuestions.org
Review your favorite Linux distribution.
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 12-26-2006, 08:05 PM   #1
guy_ripper
Member
 
Registered: Oct 2006
Posts: 80

Rep: Reputation: 15
implementing proxy server


Hi Everyone,

I have told by my supervisor to setup a proxy server in one of the blades. I installed squid and implemented two network interface for external and internal nics. I have configured some certain configurations on squid.conf to make it work then fireup the squid with no trouble. However, got a problem on how to route internal pc's/workstation onto the proxy server (this is my problem?) Dont know how????

I have PIX firewall installed behind external network. Are there websites like how-to on how to implement proxy server? Thanks....
 
Old 12-27-2006, 03:37 PM   #2
Brydon
Member
 
Registered: Dec 2006
Location: Lancaster, Ontario
Distribution: Fedora 6-7, CentOS 5, Red Hat 9, Ubuntu
Posts: 36

Rep: Reputation: 15
You need to set the proxy server settings for the applications that will connect to the web. In Firefox network settings, set the IP of the squid internal NIC and set the port to 3128, ie: 192.168.1.1:3128

This will make Firefox use the proxy server for all its Internet connections.

Have fun.
 
Old 12-27-2006, 04:57 PM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by guy_ripper
Hi Everyone,

I have told by my supervisor to setup a proxy server in one of the blades. I installed squid and implemented two network interface for external and internal nics. I have configured some certain configurations on squid.conf to make it work then fireup the squid with no trouble. However, got a problem on how to route internal pc's/workstation onto the proxy server (this is my problem?) Dont know how????

I have PIX firewall installed behind external network. Are there websites like how-to on how to implement proxy server? Thanks....
Quote:
Originally Posted by Brydon
You need to set the proxy server settings for the applications that will connect to the web. In Firefox network settings, set the IP of the squid internal NIC and set the port to 3128, ie: 192.168.1.1:3128

This will make Firefox use the proxy server for all its Internet connections.

Have fun.
i'm not exactly sure that's what he's asking for... doing it like that wouldn't involve any "routing" or anything like that... my guess is he wants to configure squid in transparent mode, and then redirect the LAN's HTTP traffic to squid automatically... this way nobody needs to configure anything in order to go through the proxy server... so, if that's indeed what he's asking about, this simple google search should provide lots of info: http://www.google.com/linux?&q=squid+transparent

the iptables rules one would use for something like this (assuming the proxy is running on the router) go like:
Code:
$IPT -t nat -A PREROUTING -p TCP -i $LAN_IFACE --dport 80 -d ! $LAN_IP \
-j REDIRECT --to-ports 3128
of course you'd then need to handle the packets in your INPUT chain...

just my

Last edited by win32sux; 12-28-2006 at 10:54 AM.
 
Old 12-28-2006, 10:09 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,456

Rep: Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538
Quote:
Originally Posted by guy_ripper
Hi Everyone,

I have told by my supervisor to setup a proxy server in one of the blades. I installed squid and implemented two network interface for external and internal nics. I have configured some certain configurations on squid.conf to make it work then fireup the squid with no trouble. However, got a problem on how to route internal pc's/workstation onto the proxy server (this is my problem?) Dont know how????

I have PIX firewall installed behind external network. Are there websites like how-to on how to implement proxy server? Thanks....
We have one set up here, in a similar configuration. On my box, the default route goes to the external interface, and routes to my internal networks are specified by subnet, pointing to the internal interface.

Something like:

route add -net 10.10.100.0 netmask 255.255.255.0 gw 11.11.11.11 eth0

Would route all traffic to/from the 10.10.100 network, out the address 11.11.11.11, which is bound to the eth0 interface. All other traffic, presumably for the internet, would route to the external default gateway, which would resolve the hostnames via your external DNS (if you're using that).
 
  


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
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
howto join IRC server using proxy server in irssi? kaplis Linux - Software 2 08-01-2006 04:00 PM
configure redhat enterprise server 4 as Router and Proxy server amdattani Linux - Networking 0 06-15-2006 05:50 AM
Which is best for implementing SMTP server in unix.. fork or pthread ? vskgopu Programming 1 05-06-2006 07:06 AM


All times are GMT -5. The time now is 12:53 AM.

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