/etc/prelude-lml/ruleset/ipfw.rules is in prelude-lml-rules 4.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | #FULLNAME: IPFirewall
#VERSION: 1.0
#DESCRIPTION: ipfirewall (ipfw) is a FreeBSD IP packet filter and traffic accounting facility.
#####
#
# Copyright (C) 2016-2017 CS-SI <support.prelude@c-s.fr>
# Author : Krzysztof Zaraska <kzaraska@student.uci.agh.edu.pl>
# All Rights Reserved
#
# This file is part of the Prelude-LML program.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
#####
#DESCRIPTION:(TCP|UDP) incoming packet denied
#CATEGORY:Packet Filtering
#LOG:Feb 3 16:02:18 lhotse /kernel: ipfw: 65000 Deny UDP 200.65.7.49:1033 12.34.56.78:137 in via tun0
#LOG:Feb 3 16:02:58 lhotse /kernel: ipfw: 2700 Deny TCP 213.76.70.104:1103 12.34.56.78:135 in via tun0
regex=(\d+) Deny (TCP|UDP) ([\d\.]+):(\d+) ([\d\.]+):([\d]+) in via (\w+); \
classification.text=Incoming $2 packet dropped; \
id=800; \
revision=1; \
assessment.impact.completion=failed; \
assessment.impact.type=other; \
assessment.impact.severity=medium; \
assessment.impact.description=Denied incoming packet (rule #$1) $2 $3:$4 -> $5:$6 on interface $7; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$3; \
source(0).service.port=$4; \
source(0).service.iana_protocol_name=$2; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.port=$6; \
target(0).service.iana_protocol_name=$2; \
source(0).interface=$7; \
last
#DESCRIPTION:(TCP|UDP) outgoing packet denied
#CATEGORY:Packet Filtering
#LOG:Aug 4 10:57:26 r40e kernel: ipfw: 299 Deny TCP 1.2.3.4:49312 5.6.7.8:80 out via bge0
regex=(\d+) Deny (TCP|UDP) ([\d\.]+):(\d+) ([\d\.]+):([\d]+) out via (\w+); \
classification.text=Outgoing $2 packet dropped; \
id=801; \
revision=1; \
assessment.impact.completion=failed; \
assessment.impact.type=other; \
assessment.impact.severity=medium; \
assessment.impact.description=Denied outgoing packet (rule #$1) $2 $3:$4 -> $5:$6 on interface $7; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$3; \
source(0).service.port=$4; \
source(0).service.iana_protocol_name=$2; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.port=$6; \
target(0).service.iana_protocol_name=$2; \
target(0).interface=$7; \
last
#DESCRIPTION:ICMP incoming packet denied
#CATEGORY:Packet Filtering
#LOG:Jan 6 22:31:29 lhotse /kernel: ipfw: 140 Deny ICMP:11.0 1.2.3.4 5.6.7.8 in via vx3
regex=(\d+) Deny ICMP:(\d+).(\d+) ([\d\.]+) ([\d\.]+) in via (\w+); \
classification.text=Incoming ICMP packet dropped; \
id=802; \
revision=1; \
assessment.impact.completion=failed; \
assessment.impact.type=other; \
assessment.impact.severity=medium; \
assessment.impact.description=Denied incoming packet (rule #$1) ICMP type $2.$3 $4 -> $5 on interface $6; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$4; \
source(0).service.iana_protocol_name=ICMP; \
source(0).service.iana_protocol_number=1; \
source(0).interface=$6; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.iana_protocol_name=ICMP; \
target(0).service.iana_protocol_number=1; \
last
#DESCRIPTION:ICMP outgoing packet denied
#CATEGORY:Packet Filtering
#LOG:Feb 3 16:33:00 lhotse /kernel: ipfw: 65000 Deny ICMP:0.0 12.34.56.78 206.99.235.10 out via tun0
regex=(\d+) Deny ICMP:(\d+).(\d+) ([\d\.]+) ([\d\.]+) out via (\w+); \
classification.text=Outgoing ICMP packet dropped; \
id=803; \
revision=1; \
assessment.impact.completion=failed; \
assessment.impact.type=other; \
assessment.impact.severity=medium; \
assessment.impact.description=Denied outgoing packet (rule #$1) ICMP type $2.$3 $4 -> $5 on interface $6; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$4; \
source(0).service.iana_protocol_name=ICMP; \
source(0).service.iana_protocol_number=1; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.iana_protocol_name=ICMP; \
target(0).service.iana_protocol_number=1; \
target(0).interface=$6; \
last
#DESCRIPTION:(TCP|UDP) incoming packet accepted
#CATEGORY:Packet Filtering
#LOG:Dec 13 18:08:58 kaskadimpex /kernel: ipfw: 20205 Accept TCP 1.2.3.4:1408 5.6.7.8:139 in via fxp1
regex=(\d+) Accept (TCP|UDP) ([\d\.]+):(\d+) ([\d\.]+):([\d]+) in via (\w+); \
classification.text=Incoming $2 packet accepted; \
id=804; \
revision=1; \
assessment.impact.completion=succeeded; \
assessment.impact.type=other; \
assessment.impact.severity=medium; \
assessment.impact.description=Accepted incoming packet (rule #$1) $2 $3:$4 -> $5:$6 on interface $7; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$3; \
source(0).service.port=$4; \
source(0).service.iana_protocol_name=$2; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.port=$6; \
target(0).service.iana_protocol_name=$2; \
source(0).interface=$7; \
last
#DESCRIPTION:(TCP|UDP) outgoing packet accepted
#CATEGORY:Packet Filtering
#LOG:Dec 13 18:08:58 kaskadimpex /kernel: ipfw: 20206 Accept TCP 1.2.3.4:139 5.6.7.8:1408 out via fxp1
regex=(\d+) Accept (TCP|UDP) ([\d\.]+):(\d+) ([\d\.]+):([\d]+) out via (\w+); \
classification.text=Outgoing $2 packet accepted; \
id=805; \
revision=1; \
assessment.impact.completion=succeeded; \
assessment.impact.type=other; \
assessment.impact.severity=medium; \
assessment.impact.description=Accepted outgoing packet (rule #$1) $2 $3:$4 -> $5:$6 on interface $7; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$3; \
source(0).service.port=$4; \
source(0).service.iana_protocol_name=$2; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.port=$6; \
target(0).service.iana_protocol_name=$2; \
target(0).interface=$7; \
last
#DESCRIPTION:ICMP incoming packet accepted
#CATEGORY:Packet Filtering
#LOG:May 5 16:57:38 myhost /kernel: ipfw: 40100 Accept ICMP:8.0 1.2.3.4 5.6.7.8 in via ed1
regex=(\d+) Accept ICMP:(\d+).(\d+) ([\d\.]+) ([\d\.]+) in via (\w+); \
classification.text=Incoming ICMP Packet accepted; \
id=806; \
revision=1; \
assessment.impact.completion=succeeded; \
assessment.impact.type=other; \
assessment.impact.severity=medium; \
assessment.impact.description=Accepted incoming packet (rule #$1) ICMP type $2.$3 $4 -> $5 on interface $6; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$4; \
source(0).service.iana_protocol_name=ICMP; \
source(0).service.iana_protocol_number=1; \
source(0).interface=$6; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.iana_protocol_name=ICMP; \
target(0).service.iana_protocol_number=1; \
last
#DESCRIPTION:ICMP outgoing packet accepted
#CATEGORY:Packet Filtering
#LOG:May 5 16:57:38 myhost /kernel: ipfw: 40100 Accept ICMP:8.0 1.2.3.4 5.6.7.8 out via ed1
regex=(\d+) Accept ICMP:(\d+).(\d+) ([\d\.]+) ([\d\.]+) out via (\w+); \
classification.text=Packet accepted by firewall; \
id=807; \
revision=1; \
assessment.impact.completion=succeeded; \
assessment.impact.type=other; \
assessment.impact.severity=low; \
assessment.impact.description=Accepted outgoing packet (rule #$1) ICMP type $2.$3 $4 -> $5 on interface $6; \
source(0).node.address(0).category=ipv4-addr; \
source(0).node.address(0).address=$4; \
source(0).service.iana_protocol_name=ICMP; \
source(0).service.iana_protocol_number=1; \
target(0).node.address(0).category=ipv4-addr; \
target(0).node.address(0).address=$5; \
target(0).service.iana_protocol_name=ICMP; \
target(0).service.iana_protocol_number=1; \
target(0).interface=$6; \
last
|