LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 10: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 10:16 AM.
 
Old 05-04-2007, 03: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


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


All times are GMT -5. The time now is 09:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration