Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-22-2007, 09:12 AM   #1
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 and the second nic to [OUT].

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

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?


Last edited by jonfa; 03-22-2007 at 09:16 AM.
Old 05-04-2007, 02:26 AM   #2
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 (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
then restart network and squid services


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 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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration