squid proxy: one NIC for inbound & one NIC for outbound?


 
Thread Tools Search this Thread
Special Forums IP Networking squid proxy: one NIC for inbound & one NIC for outbound?
# 1  
Old 04-12-2012
squid proxy: one NIC for inbound & one NIC for outbound?

I am new in squid proxy.

My question is how to (and if it's necessary) to set one NIC for inbound traffic (http requests) and one NIC for outbound traffic (http answers)?

Thank you in advance!
# 2  
Old 04-12-2012
You can't tell squid which network card to use. You tell it what IP addresses to listen on.

Configure your squid proxy to listen on one IP address, and configure the interface you want squid to listen on to that IP address.

If your server connects to the internet through the other interface, routing tables will do the rest.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 04-12-2012
NIC = IP.. It's the same thing. I understand this.

My major concerns are how to configure squid to receive http requests from one IP, and send http answers to another IP? Is this a good practice to manage squid traffics?
# 4  
Old 04-12-2012
Quote:
Originally Posted by aixlover
NIC = IP.. It's the same thing. I understand this.
Not quite, since you can have more than one IP on a network card or vice versa(bridging arrangements).
Quote:
My major concerns are how to configure squid to receive http requests from one IP, and send http answers to another IP?
how to configure squid to listen on an IP is easy. See the http_port setting.

squid doesn't control and can't control how outgoing connections are routed, though. That's what the routing table is for. Whatever IP address you use as your gateway, is what any outgoing internet traffic -- squid or otherwise -- is going to try to use to connect through.

Yes, you often see squid used in two-nic arrangements.
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 04-12-2012
Thanks a lot for your explain Smilie.

Now I need to spend some time to study it and will ask more questions if any later on.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

Add two different subnet public IPs to single NIC or two different NIC on same box

Hello Admins, My ask is how can I add two different subnet IPs to same box with two different gateways? The issue is I can connect to the box when I am on ethernet LAN, but I am not able to connect to the same IP when I am on wifi. The server is RHEL 7 VM on vmware. How can I get connected... (4 Replies)
Discussion started by: snchaudhari2
4 Replies

2. Shell Programming and Scripting

How to track Inbound Outbound connections to PID?

I have a Application Server process that hosts my application web & EJB and JMS and Database connectios etc. Using the PID what is the best way to find out the Inbound connection sockets i.e those parties that connect to my server process on different ports numbers and Outbound connection... (2 Replies)
Discussion started by: mohtashims
2 Replies

3. Solaris

Haed code nxge0 nic interface with full duplex & 1000mbps

Hi All I would need to do hard code of nxge0 nic to full duplex & 1000mbps. So that whenever solaris server come up after reboot. it will show full duplex & 1000mbps setting only. Please also let me know how to do it online through command. regards (0 Replies)
Discussion started by: amity
0 Replies

4. UNIX for Dummies Questions & Answers

File Inbound/Outbound shell script(ksh)

URGENT ---------- Post updated at 04:26 AM ---------- Previous update was at 04:23 AM ---------- (I could not post I didn't know why so I need to put the contents via reply, sorry) Hi all :D, I am a newbie of Unix shell script and I was assigned the work from user that I need to... (3 Replies)
Discussion started by: gogkub
3 Replies

5. Ubuntu

How do you setup 2 nic cards for squid Ubuntu server?

I have a made my squid proxy, I now have add another nic card to an old CPU using Ubuntu server 12.04. I have seen another post similar however I am new and did not understand some of it. Something about redirecting IP address and IP table? I don't know how to do this.:confused: (9 Replies)
Discussion started by: trilju2005
9 Replies

6. Ubuntu

Help asap squid with 2 nic cards setup

I found an old post that talks about 2 nice cards and it is driven by the IP address .... but I didn't understand it because the 2 people skipped information for me the newbie.. Can someone help me... I have the proxy server setup and I believe I have enabled the 2nd nic card, I just need one... (1 Reply)
Discussion started by: trilju2005
1 Replies

7. Red Hat

I want to tune NIC's rps, rfs and xps value. which NIC device should I modify.

Dear All I want tune my NIC's rps, rfs and xps value. In my system I have two NIC (eth0, eth1) and I have a bond0 ( eth0, eth1). Here is the question? Which device should I modify ? eth0 and eth1? or just modify bond0 or modify all device (eth0, eth1, bond0) Any advice is welcome.... (0 Replies)
Discussion started by: nnnnnnine
0 Replies

8. Solaris

x86 Solaris 10 nic driver added but not attached. NIC is not detected.

I couldn't install my nic in solaris 10. I compiled and added the driver but failed to attach the driver and ifconfig output shows only loopback dev. Please see the following output and tell me whether my nic has been detected and why the driver failed to attach? My nic is detected in linux... (0 Replies)
Discussion started by: vectrum
0 Replies

9. Solaris

Cant configure video & nic (solaris 8 on x86)

can someone please through light on how to configure video and nic. Dimension 3000 Series, Intel Pentium 4 Processor at 2.8GHz 256MB DDR SDRAM at 400MHz EA 0.00 0.00 17 in (17 in viewable) E173FP Flat Panel Display EA Integrated Intel Extreme Graphics 2 EA Intel Pro 100M Integrated... (4 Replies)
Discussion started by: Jimmpy
4 Replies
Login or Register to Ask a Question