Re: Routing between two gateways
- From: Tauno Voipio <tauno.voipio@xxxxxxxxxxxxx>
- Date: Sun, 15 Jan 2006 20:57:37 GMT
Tony wrote:
Hi guys,
I'm not able to solve a little problem with Linux Routing. I've a LAN (192.168.4.0/24) and two internet connections (83.211.x.x and 81.175.x.x) I use a Linux PC like a gateway for my LAN, and I route packet to default gateway 83.211.x.x. My Linux PC's address is 192.168.4.2. I'd like to set routing table to transparently route packets to the other gateway (81.175.x.x) only for some PC of my LAN, the rest will pass through default gw.
LAN's PC will have always Linux PC as default gw, this one will do the dirty work :-)
The RFC 1918 addresses (like 192.168.x.y) are not routable in the public Internet.
If you have two separate sites with routable Internet addresses, and a private network connected to each, the method to connect the private network segments together using the public Net as the carrier, is called VPN, Virtual Private Network.
A VPN works by taking a packet from the internal network, putting it inside an IP packet with the public addresses and using the public addresses to transfer the wrapped packet to the receiving end. The receiving end of the VPN connection then unwraps the packet and forwards it to the final destination via the local network.
To protect the privacy and integrity of the internal network packets, they are usually encrypted before packaging into the carrier packet and, of course, decrypted after unpackaging at the receiving gateway.
There are many different ways to set up a VPN, and the method of wrapping the network packets (usually called tunneling) varies from one VPN to another.
My favourite to building VPN's is OpenVPN. It's available for Linux and many versions of Windows (and many other systems).
HTH
--
Tauno Voipio tauno voipio (at) iki fi .
- References:
- Routing between two gateways
- From: Tony
- Routing between two gateways
- Prev by Date: wireless PCI or CardBus card for Fedora Core 4
- Next by Date: Re: Routing between two gateways
- Previous by thread: Routing between two gateways
- Next by thread: Re: Routing between two gateways
- Index(es):
Relevant Pages
|