NetBSD/usr.sbin/ipf/rules/example.13

18 lines
468 B
Plaintext
Raw Normal View History

1997-09-21 20:47:50 +04:00
#
1998-11-22 17:21:44 +03:00
# Log all short TCP packets to qe3, with 10.3.3.3 as the intended
1997-09-21 20:47:50 +04:00
# destination for the packet.
#
1998-11-22 17:21:44 +03:00
block in on qe0 to qe3:10.3.3.3 proto tcp all with short
1997-09-21 20:47:50 +04:00
#
# Log all connection attempts for TCP
#
1998-11-22 17:21:44 +03:00
pass in on le0 dup-to le1:10.3.3.3 proto tcp all flags S/SA
1997-09-21 20:47:50 +04:00
#
# Route all UDP packets through transparently.
#
1998-11-22 17:21:44 +03:00
pass in on ppp0 fastroute proto udp all
1997-09-21 20:47:50 +04:00
#
1998-11-22 17:21:44 +03:00
# Route all ICMP packets to network 10 out through le1, to 10.3.3.1
1997-09-21 20:47:50 +04:00
#
1998-11-22 17:21:44 +03:00
pass in on le0 to le1:10.3.3.1 proto icmp all