Tunneling & iproute2

Translation of the original in Catalan. Read it in: CatalàCastellano

On Friday Jose Maria and I were doing iptunneling tests with the kernel 2.4 and iproute2.

Basically we connected two computers with kernel 2.4 compiled with the ip_gre options loaded as a module. Afterwards simply with the following lines we set the thing up.Lines for the first "firewall+router":

ip tunnel add netb mode gre remote 192.168.2.2 local 192.168.2.1 ttl 255

ip link set netb up

ip addr add 192.168.1.254 dev netb

ip route add 192.168.3.0/24 dev netb

Thanks to this we can set up a VPN server, the VPN server at the other end has to have the same configuration but changing the gateway addresses the other way round logically and changing tb the network addresses.That way we can join the two networks. Let's see, if today itself we can do the tests over the internet and that way I can make the quick reference guide.

After these tests we hope to be able to do the same tests but with IPSec.

3 comments

Comments from the old blog, as they were written. Comments are closed.

  1. Oriol Rius

    JA FUNCIONA!!! aquesta tarda/nit el José Maria i jo em fet les primeres
    proves de encapsulament IP amb el GRE per internet usant el iproute2 hi ha
    funcionat de primera. És genial la transparència q té. A
    veure si demà mateix tinc un forat per elavorar una guia
    ràpida.

    Tb hem decidit unir les notres xarxes via aquesta VPNs, ell sera la part
    192.168.2.0/24 i jo la 192.168.1.0/24 i unirem els nostres sistemes.
    Això implicarà molta feina reconfigurant tots els nostres
    sistemes però ens dona una gran experiencia en aquest tipus de temes, a
    aplicar en empreses a nivell professional q ja ens ho requereixen.

    Ja només ens falta fer proves amb IPSec i coneixerem el tema de les VPN
    a fons...

  2. Oriol Rius

    He estat llegint sobre el tema del IPSec per implementar les VPNs amb dos linux
    via internet més el masquarade, pel q fa als kernels 2.0.X i els 2.2.1X
    tots tenen "parches" però els 2.4.X el tema encara està molt verd
    i no hi ha res massa estable aquest informació està a:
    http://www.freeswan.org/ pel q fa al Linux 2.4 Advanced Routing HOWTO (
    http://www.ds9a.nl/2.4Routing/HOWTO//cvs/2.4routing/output/2.4routing.html )
    encara no hi ha res escrit i t'envien a la url anteriorment comentada.

    Un punt de referència per on tp he pogut deixar de passar és la
    mailing-list IETF ipsec list archive a la URL
    http://www.sandelman.ottawa.on.ca/ipsec/ bàsicament parlent de com
    implementar el tema amb linux hi ha força nivell i no ta gens
    malament.

    Una cosa a mirar obligatoriament és l'RFC del IPSec a
    ftp://ftp.isi.edu/in-notes/rfc2784.txt

    Tb hi ha drafts q parlen sobre IPSec over GRE, però de moment
    només són drafts: http://search.ietf.org/internet-drafts/
    draft-gupta-ipsec-remote-access-03.txt

    Si encara queden ganes de llegir:

    http://www.alliedtelesyn.co.nz/solutions/solutions.html

  3. Oriol Rius

    http://linuxmagic.com/vpn/info.html

    En l'anterior URL hi ha un gràfic i una descripció del q pretenc
    montar, queda molt clar quins són els punts on pretenc buscar la
    seguretat i on aquesta idea deixa de preocupar-se de la mateixa.