Re: Programmatically forwarding packets to outgoing interface

2013-09-22 Thread Ihsan Junaidi Ibrahim
Thanks. Is there a specific C API I can use to call this? On Sep 23, 2013, at 12:10 PM, Julian Elischer wrote: > On 9/23/13 11:55 AM, Ihsan Junaidi Ibrahim wrote: >> Hi folks, >> >> I'm trying to learn building a VPN-type application on FreeBSD and I'm >> currently stuck at trying to route pac

Re: Programmatically forwarding packets to outgoing interface

2013-09-22 Thread Julian Elischer
On 9/23/13 11:55 AM, Ihsan Junaidi Ibrahim wrote: 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 pack

Programmatically forwarding packets to outgoing interface

2013-09-22 Thread Ihsan Junaidi Ibrahim
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 bo