OpenVPN packet structure
Hello.
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). 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.
Thanks.
Quoted 2 lines · Cosmin Marin
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.
Quoted 4 lines
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
Signature · 2 lines
http://cmeerw.org sip:cmeerw at cmeerw.org mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org