Date: Wed, 17 Apr 1996 20:03:49 +0100 From: "Gary Palmer" <gpalmer@FreeBSD.ORG> To: dirk@methan.chemie.fu-berlin.de (Dirk Froemberg) Cc: hackers@FreeBSD.ORG, xadmin@methan.chemie.fu-berlin.de, alf@bolzen.in-berlin.de Subject: Re: ip-in-ip tunnel Message-ID: <2478.829767829@palmer.demon.co.uk> In-Reply-To: Your message of "Wed, 17 Apr 1996 13:12:46 %2B0200." <m0u9VAE-0009paC@methan.chemie.fu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Dirk Froemberg wrote in message ID <m0u9VAE-0009paC@methan.chemie.fu-berlin.de>: > Hello! > > We need to set up a ip-in-ip (protocol number 4) tunnel with FreeBSD > (i. e. tunnel entry should be on a FreeBSD machine). > > Unfortunaly there seems to be no easy way of doing so. Heh. A always, depends on your definition of ``easy'' :-) I suggest looking at the sources for the IIJPPP program (/usr/src/usr.sbin/ppp) which uses the `tun' device. This will allow you to have packets delivered to a user-level program from the kernel. The kerenl just treats the `tun' interface like a normal network I/F, and you can do what you like with the packets once they are delivered to your program. You can feed packets back into the kernel too, of course, which is how user-mode ppp works... (and how this e-mail is being sent :-) ) It should be ``relatively'' easy to modify /usr/sbin/ppp to deliver packets over a TCP/IP link rather than a serial port. Gary
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2478.829767829>