Networking Forums

Networking Forums > Computer Networking > Linux Networking > How do i Re-direct specific http request to another gateway

Reply
Thread Tools Display Modes

How do i Re-direct specific http request to another gateway

 
 
DK
Guest
Posts: n/a

 
      01-24-2006, 04:30 AM
Hi All,

I have two internet connections.
One is with static ip and second with dynamic ip.

1st Machine linux with Internet connection and static ip is configured
for mailing,vpn.
VPN provides the access to corporate intranet site.

2nd Machine linux with internet connection and dynamic ip is configured
using squid,but it cannot access corporate intranet site.

Is there any configuration available with squid or iptables,
so that i can re-direct http request for corporate intranet site from
2nd machince to 1st gateway machine .

thanks in advance
DK

 
Reply With Quote
 
 
 
 
Eric Teuber
Guest
Posts: n/a

 
      01-25-2006, 09:50 PM
DK wrote:
> I have two internet connections.
> One is with static ip and second with dynamic ip.
>
> 1st Machine linux with Internet connection and static ip is configured
> for mailing,vpn.
> VPN provides the access to corporate intranet site.
>
> 2nd Machine linux with internet connection and dynamic ip is configured
> using squid,but it cannot access corporate intranet site.
>
> Is there any configuration available with squid or iptables,
> so that i can re-direct http request for corporate intranet site from
> 2nd machince to 1st gateway machine .


If it is a question, i would say yes. Make sure your routing is well
defined. You should be able to ping the 1st system from the 2nd one.

Also make sure, the squid traffic from 2nd one is correctly routed
through 1st one to the desired destination(s) and respectively sources.

These two steps would be the prerequisite to get it work.


If you use squid you don't need iptables to forward traffic, it is a
service and will manage the web traffic.

If you use iptables, you could setup rules to masquerade or postforward
the outgoing web traffic, which then (in case of successful a
connection) will be routed to the requestor (client).

Squid is not filtering, just serving web traffic, iptables is not
serving but filtering it. If you need both, use both.

Eric
 
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
shell script to log http request newbiegalore Linux Networking 0 04-06-2008 11:05 PM
Using iptables to log http request to a file? xiong.xu.cn@gmail.com Linux Networking 5 08-20-2006 08:45 PM
Looking for a specific HTTP Header fritz-bayer@web.de Linux Networking 5 01-07-2005 02:26 PM
HTTP 1.1 Request Headers sniffing router Albretch Linux Networking 2 12-14-2004 08:45 PM
HTTP request generator Bill So Linux Networking 2 07-30-2004 12:21 PM



1 2 3 4 5 6 7 8 9 10 11