Networking Forums

Networking Forums > Computer Networking > Linux Networking > Route local traffic via Iptables

Reply
Thread Tools Display Modes

Route local traffic via Iptables

 
 
Jacob
Guest
Posts: n/a

 
      08-07-2006, 02:41 PM
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

 
Reply With Quote
 
 
 
 
ed
Guest
Posts: n/a

 
      08-07-2006, 07:53 PM
On 7 Aug 2006 07:41:30 -0700
"Jacob" <(E-Mail Removed)> wrote:

> How do I route traffic from my server through Squid?


Set HTTP_PROXY environment, details of this in the wget man page.

> I have som C++ scripts that download files and I would like these to
> go via Squid.


C++ is not script, it is source 'code' which is compiled into binary
code. bash/perl/tcl etc are script.

--
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.
 
Reply With Quote
 
Jacob
Guest
Posts: n/a

 
      08-07-2006, 09:33 PM
> > How do I route traffic from my server through Squid?
>
> 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.

/Jacob

 
Reply With Quote
 
ed
Guest
Posts: n/a

 
      08-07-2006, 10:20 PM
On 7 Aug 2006 14:33:00 -0700
"Jacob" <(E-Mail Removed)> wrote:

> > > How do I route traffic from my server through Squid?

> >
> > 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.


You give a different default gateway to your squid box, and set the
HTTPPROXY environment as detailed in the wget man page.

--
Regards, Ed :: http://www.usenix.org.uk
proud unix person
The wrath of God is outmatched only by the pity of Mr. T.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add route pass traffic onlineviewer Linux Networking 1 10-16-2007 12:20 AM
Internet Traffic Route Rob Windows Networking 1 06-22-2007 08:44 PM
route command and non-local gateways StivH Linux Networking 14 01-17-2006 03:03 PM
Howto redirect traffic from local machine to internet back to local machine? Martin Kahlert Linux Networking 0 11-25-2005 07:40 AM
VPN client adds wrong route to local route table snowdog_2112 Windows Networking 7 11-01-2005 02:05 PM



1 2 3 4 5 6 7 8 9 10 11