Re: Need begineers guide to open VPN

From: Randy Ramsdell (me_at_somewhere.else)
Date: 06/20/04


Date: Sat, 19 Jun 2004 19:59:38 -0400


Anthony Ewell wrote:
> Hi All,
>
> I am so confused. :-[
>
> Can someone point me to a beginner's guide to understanding how
> "Open VPN" (http://openvpn.sourceforge.net/) works?
>
> I have been all over their web site and the only things I can
> find just adds to the confusion. It is like they think I already
> know what is going on and are just presenting refreshers.
>
> This is the kind of stuff that is confusing me. I have
> an iptables firewall: eth0 is the internal network; eth1 is
> the connection to the Internet. I need to set up a tunnel
> to a similar computer several hundred miles away.
>
> How do applications know when to use the tunnel and
> when not to? For instance, how does the vpn know
> when a user on the internal network just wants to
> browse the Internet? How does the vpn know when
> a local user wants into the remote system through
> the tunnel? I am presuming it has to do with what
> port is being accessed. How do applications
> know when to use this port and when not to?
> What in the world are these "br0" interfaces? :'(
>
> I really, really need is a beginner's guide!
> AND NO REFRESHER COURSES!
>
> Many thanks,
> --Tony
> aewell@gbis.com
>

I haven't set this up, but reviewed some of the docs on the site because
I was interested in knowing also. The way the network knows about the
tunnel is through the the route command.

http://openvpn.sourceforge.net/man.html#lbAR

br0 is a bridge device. It bridges each side of the tunnel together so
the are able to talk even if they are on different network. Just think
of the word "bridge" --- a device set up to BRDGE both network segments.
The following example if for non-routable i.p. addresses.
So far I haven't run across how openVPN could be used to route
registered IP numbers. My question that I will try to fugure out is how
the local net knows when to route to internet or VPN tunnel as
registered IP would normally go to your gateway. One possiblility would
be to use Iptables to route throught he VPN device when source address
in the VPN endpoint you are trying to access.

the bridge stuff: http://openvpn.sourceforge.net/bridge.html

I you have iptables you could put in something that looks for source ip

VPN stuff is sort-of confusing, but the docs they have will show do show
how to set them up, although they do assume you are not a new to setting
somewhat complicated networks up.



Relevant Pages

  • Re: VPN and Fedora server/Win client?
    ... > I'm not even sure if what we want to do, VPN can allow. ... VPN is a method to extend a private network by actually transporting ... the tunnel, two at each end, one for the private network ...
    (comp.os.linux.misc)
  • Re: VPN and Fedora server/Win client?
    ... > I'm not even sure if what we want to do, VPN can allow. ... VPN is a method to extend a private network by actually transporting ... the tunnel, two at each end, one for the private network ...
    (comp.os.linux.security)
  • Re: What traffic is pumped through the VPN?
    ... pumped through the tunnel because, in spite of my home machine being ... physically far from our LAN, the VPN by design made my computer ... while I was on the VPN anything that was blocked by my ... came from my network card went through my org's network just as if I ...
    (comp.dcom.vpn)
  • Re: Bridging and Routing (4 Nics on one machine)
    ... but the bridge is not really necesary ... You will use another IP subnet for your VPN network, ... When you create an VPN you need to attach them to a logical network (IP ...
    (Fedora)
  • RE: Printer access lost
    ... That is why you do not have access to your local network while you have the tunnel. ... to use the remote network default gateway in your VPN connection properties. ...
    (microsoft.public.windowsxp.network_web)