blob: 49b58ceef738e88d6a50452b46e338a056701d26 [file] [log] [blame]
Jan Engelhardt5c5cd882008-01-20 13:21:38 +00001This module attempts to match various characteristics of the packet creator,
2for locally generated packets. This match is only valid in the OUTPUT and
3POSTROUTING chains. Forwarded packets do not have any socket associated with
4them. Packets from kernel threads do have a socket, but usually no owner.
5.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01006[\fB!\fP] \fB\-\-uid\-owner\fP \fIusername\fP
Jan Engelhardt5c5cd882008-01-20 13:21:38 +00007.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +01008[\fB!\fP] \fB\-\-uid\-owner\fP \fIuserid\fP[\fB\-\fP\fIuserid\fP]
Jan Engelhardt1a756e92008-02-11 00:57:18 +01009Matches if the packet socket's file structure (if it has one) is owned by the
10given user. You may also specify a numerical UID, or an UID range.
11.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010012[\fB!\fP] \fB\-\-gid\-owner\fP \fIgroupname\fP
Jan Engelhardt1a756e92008-02-11 00:57:18 +010013.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010014[\fB!\fP] \fB\-\-gid\-owner\fP \fIgroupid\fP[\fB\-\fP\fIgroupid\fP]
Jan Engelhardt1a756e92008-02-11 00:57:18 +010015Matches if the packet socket's file structure is owned by the given group.
16You may also specify a numerical GID, or a GID range.
Jan Engelhardt5c5cd882008-01-20 13:21:38 +000017.TP
Jan Engelhardtfea74bf2009-01-12 04:53:18 +010018[\fB!\fP] \fB\-\-socket\-exists\fP
Jan Engelhardt5c5cd882008-01-20 13:21:38 +000019Matches if the packet is associated with a socket.