« qemu windows guest with audio over network using pulseaudioInstalling maemo sdk and scratchbox on Debian Sid amd64 »

    IP over IP tunnel setup on Debian Lenny

    2009-03-17

    Permalink 09:27:05, by phaoost Email , 124 words   English (EU)
    Categories: notes

    IP over IP tunnel setup on Debian Lenny

    Quick setup IP-over-IP (protocol 4) tunnel on Debian 5.0

    192.168.x.x - router LAN IP
    192.168.x.y - local LAN IP
    172.16.x.x - router tunnel IP
    172.16.x.y - local tunnel IP

    On router add to /etc/network/interfaces:

    # ipip tunnel
    iface ipip0 inet static
    address 172.16.x.x
    netmask 255.255.255.255
    pointopoint 172.16.x.y
    mtu 1480
    pre-up /sbin/ip tunnel add ipip0 mode ipip remote 192.168.x.y local 192.168.x.x dev eth0
    post-down /sbin/ip tunnel del ipip0

    On local system add same lines to /etc/network/interfaces switching local and remote IPs. Then use ifup/ifdown to add/remove ipip0 interface

    Following rule may need to exist in iptables mangle table on both systems:

    -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

    Trackback address for this post

    This is a captcha-picture. It is used to prevent mass-access by robots.
    Please enter the characters from the image above. (case insensitive)

    No feedback yet

    Leave a comment


    Your email address will not be revealed on this site.

    Your URL will be displayed.
    (Line breaks become <br />)
    (Name, email & website)
    (Allow users to contact you through a message form (your email will not be revealed.)
    This is a captcha-picture. It is used to prevent mass-access by robots.
    Please enter the characters from the image above. (case insensitive)

    You can just use your OpenID to provide your name, e-mail and url.

    September 2010
    Mon Tue Wed Thu Fri Sat Sun
     << <   > >>
        1 2 3 4 5
    6 7 8 9 10 11 12
    13 14 15 16 17 18 19
    20 21 22 23 24 25 26
    27 28 29 30      

    Search

    Categories

    XML Feeds

    blog engine