LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-22-2007, 09:12 AM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30
Squid reverse proxy with 2 nics


Hi All,

I am attempting to setup a Squid reverse proxy on Centos 4.4 that uses 2 nics. One in and the other out. I have the first nic [IN] set to 192.168.1.2 and the second nic to 192.168.3.1 [OUT].

I am trying get the incoming traffic on port 80 directed at 192.168.1.2 to be redirected to nic #2 with the address 192.168.3.1.

I editted my /etc/sysctl.conf file to read:

net.ipv4.ip_forward = 1

What else am I missing? Do I need to setup a route rule?

Thanks.

Last edited by jonfa; 03-22-2007 at 09:16 AM.
 
Old 05-04-2007, 02:26 AM   #2
atifzamir
LQ Newbie
 
Registered: May 2007
Posts: 1

Rep: Reputation: 0
edit ur squid.conf with the following entries
http_port 80 (listening port for your web server)
httpd_accel_host example.com (URL of your website)
httpd_accel_port 80

edit /etc/hosts in your squid box
and add your website name and private ip of your webserver
privateipofwebserver example.com
then restart network and squid services
 
  


Reply



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 as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 05:00 PM
Squid reverse proxy with SSL jonfa Linux - Networking 1 02-05-2007 07:07 PM
Reverse Proxy in squid winxandlinx Linux - Networking 3 12-04-2006 05:30 AM
Squid Reverse Proxy Cache Question Gentoo20 Linux - Networking 0 02-04-2005 01:19 PM
2 nics and a squid proxy mssucks Linux - Networking 4 03-06-2002 04:29 AM

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

All times are GMT -5. The time now is 08:42 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
Open Source Consulting | Domain Registration