[Mimedefang] Accessing the source/destination port #'s at filter_relay

David F. Skoll dfs at roaringpenguin.com
Fri Apr 30 07:42:33 EDT 2010


Philip A. Prindeville wrote:

> I'm trying to do some things with logging and calling into iptables/tc
> early on during the lifetime of a connection, i.e. at filter_relay() time.

filter_relay gets the source IP address.  Presumably, you know the destination
port. :)  We don't pass the source port through to the Perl code at all;
we only pass the IP address.

If anyone *wants* the source port made accessible to the Perl code, patches
will be considered.

Regards,

David.



More information about the MIMEDefang mailing list