Hi,

On Mon, Oct 20, 2025 at 04:15:22PM -0400, Jon Chiappetta via Openvpn-devel 
wrote:
> I was wondering if any part of the OpenVPN source code parses the IPv4
> packet header for source/destination address already in place?

With tun/tap and ipv4/ipv6, this is a bit of nastiness...

You might want to have a look at drop_if_recursive_routing() in master,
as that one has to find destination address & port and will log source
address & port.

Not sure we have something more convenient.  Grepping for openvpn_iphdr
might turn up something, though :-) (like somewhere in the NAT code).

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to