How do I route traffic from my server through Squid?
I have som C++ scripts that download files and I would like these to go
via Squid.
/Jacob
/Jacob
C++ is not script, it is source 'code' which is compiled into binaryQuote:> I have som C++ scripts that download files and I would like these to
> go via Squid.
--
Regards, Ed :: http://s5h.net/u?l
just another java hacker
Mr. T's hair is in a mohawk because he pitied it, and it got scared
and huddled together.
My problem is that the C++ binary is home made and doesn't use wget.Quote:> > How do I route traffic from my server through Squid?
> Set HTTP_PROXY environment, details of this in the wget man page.
/Jacob
> > Set HTTP_PROXY environment, details of this in the wget man page.
> My problem is that the C++ binary is home made and doesn't use wget.
> So I think I have to use iptables.
--
Regards, Ed :: http://www.usenix.org.uk
proud unix person
The wrath of God is outmatched only by the pity of Mr. T.
1. disable local routing between eth0 and eth1 - iptables
I've a Linux PC with 2 NICs eth0 and eth1 configured with IP 10.0.0.1
and 20.0.0.1 respectively.
|-------------------|
eth0 (10.0.0.1) ------------| |
| L2 SWITCH |
| |
eth1 (20.0.0.1) ------------| |
|-------------------|
I want to disable local routing between eth0 and eth1 so that whenever
I ping 20.0.0.1 from PC console, ICMP packets should come out of
interface eth0 and should reach eth1 through connected switch.
Similarly, whenever I ping 10.0.0.1 from PC console, ICMP packets
should come out of interface eth1 and should reach eth0 through
connected switch.
How can I do it using iptables, if at all possible?
Thanks in advance.
2. Saving xman pages to a file?
3. routing out two ppp lines via source eth - iptables
5. Howto redirect traffic from local machine to internet back to local machine?
6. Mirror site to ftp.cistron.nl
7. Routing from a local ethernet to a remote network via a PPP link-HOW ???
8. S3TRIO64UV+
9. Still IRQ routing problems with VIA (was: VIA KT133 chipset P CI crazyness...)
10. tcp/ip routing question - setting the default route beyond the local router?
11. Port Forwarding iptables internal traffic
12. Traffic mirroring with iptables
13. iptables, shaping of passive ftp traffic