On Tue, 30 Jun 2009 20:08:34 +0300, Cosmin Marin wrote: > I was wondering if the payload of an OpenVPN packet has the same structure > as a normal IP packet(ethernet header/ip header/tcp or udp header).
Depending on whether you are using tun or tap mode you either get the raw IP packet or the raw ethernet frame in the OpenVPN packet. > I know that OpenVPN adds fields like the packet header and data payload > header after encryption and another IP header and TCP/UDP header, but > i have been trying to get the old ip source and destionation addresses after > i have decrypted the packet and i am out of luck. The easiest thing might be to start with "cipher none" to disable encryption and have a look at the packets. Christof -- http://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org