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
|