Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2013 11:55:56 +0800
From:      Ihsan Junaidi Ibrahim <ihsan@grep.my>
To:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Programmatically forwarding packets to outgoing interface
Message-ID:  <4DC4F001-D430-4110-81DA-279F3D01AD33@grep.my>

next in thread | raw e-mail | index | archive | help
Hi folks,

I'm trying to learn building a VPN-type application on FreeBSD and I'm =
currently stuck at trying to route packets to outgoing interface.

I've managed to push/pop IP packets in a tun(4) interface but now that I =
can read the inner packet header, I need to route the payload out of the =
box. I'm not quite sure which API I need to use to achieve this.

The inner packets can be of either IPv4 or IPv6.

Thanks.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DC4F001-D430-4110-81DA-279F3D01AD33>