diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-12-10 18:08:13 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2001-12-10 18:08:13 +0000 |
commit | ef7fe41359ba259a7857905a4b3d2435be3cdb72 (patch) | |
tree | c36df67bac485a59cc45f94551938ff5ccfe6a04 /sys/net/pfvar.h | |
parent | e86732160464c1736621edc0f8d6a4f07e85cd0f (diff) |
Add stateful filtering for other (non-TCP/UDP/ICMP) protocol, based on
source/destination addresses/ports only.
Add RDR for ICMP. Add NAT/RDR/BINAT for other protocols.
Destination and redirection port(s) are now optional for RDR rules.
Not specifying destination port(s) means 'redirect all ports', not
specifying redirection port(s) means 'redirect to the original port'.
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index ce65e0d3637..6d58c30dde1 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.56 2001/11/26 16:50:26 jasoni Exp $ */ +/* $OpenBSD: pfvar.h,v 1.57 2001/12/10 18:08:11 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -47,8 +47,9 @@ enum { PF_CHANGE_ADD_HEAD=1, PF_CHANGE_ADD_TAIL=2, enum { PFTM_TCP_FIRST_PACKET=0, PFTM_TCP_OPENING=1, PFTM_TCP_ESTABLISHED=2, PFTM_TCP_CLOSING=3, PFTM_TCP_FIN_WAIT=4, PFTM_TCP_CLOSED=5, PFTM_UDP_FIRST_PACKET=6, PFTM_UDP_SINGLE=7, PFTM_UDP_MULTIPLE=8, - PFTM_ICMP_FIRST_PACKET=9, PFTM_ICMP_ERROR_REPLY=10, PFTM_FRAG=11, - PFTM_INTERVAL=12, PFTM_MAX=13 }; + PFTM_ICMP_FIRST_PACKET=9, PFTM_ICMP_ERROR_REPLY=10, + PFTM_OTHER_FIRST_PACKET=11, PFTM_OTHER_SINGLE=12, + PFTM_OTHER_MULTIPLE=13, PFTM_FRAG=14, PFTM_INTERVAL=15, PFTM_MAX=16 }; enum { PF_FASTROUTE=1, PF_ROUTETO=2, PF_DUPTO=3 }; struct pf_addr { |