making packets

How to customize and extend your OpenVPN installation.
Post Reply
OpenVpn Newbie
Posts: 1
Joined: Wed Dec 01, 2010 6:54 pm

making packets

Post by Felix » Wed Dec 01, 2010 7:07 pm

I am using the libnet library to generate custom packets over a vpn network, but because i have libnet working at the lower levels of the OSI model the packets are bypassing whatever method openvpn uses to force all traffic through to the vpn server.

I tried adding 'push "redirect-gateway def1" ' to the server.conf file but it didnt work.

I would like to try to modify openvpn so that I can give it my custom made packets to send over the vpn, and I was wondering if anyone could tell me where in the source code openvpn either constructs or captures the original packet before it encapsulates it?


User avatar
Forum Team
Posts: 729
Joined: Fri Aug 29, 2008 5:42 pm

Re: making packets

Post by krzee » Mon Jan 10, 2011 9:55 pm

are your packets IP packets? your routing table is what decides to send things over openvpn or not

Post Reply