| 94 | |
| 95 | == chain tree == |
| 96 | === lucid === |
| 97 | * 以下のchainは /lib/ufw/user.rules に記述される |
| 98 | {{{ |
| 99 | ufw-user-* |
| 100 | ufw-before-logging-* |
| 101 | ufw-user-logging-* |
| 102 | ufw-after-logging-* |
| 103 | ufw-logging-deny |
| 104 | }}} |
| 105 | |
| 106 | * filter target tree |
| 107 | {{{ |
| 108 | INPUT |
| 109 | | |
| 110 | |----> ufw-before-logging-input |
| 111 | | | |
| 112 | |<------/ |
| 113 | | |
| 114 | | |
| 115 | |----> ufw-before-input |
| 116 | | | |
| 117 | | |----> ACCEPT |
| 118 | | | |
| 119 | | |----> ufw-logging-deny ----> LOG |
| 120 | | | | | |
| 121 | | | DROP <------------------/ |
| 122 | | | |
| 123 | | |----> ACCEPT |
| 124 | | | |
| 125 | | |----> ufw-not-local |
| 126 | | | | |
| 127 | | |<------| |
| 128 | | | | |
| 129 | | | |----> ufw-logging-deny ----> LOG |
| 130 | | | | | |
| 131 | | | DROP <--------------------------/ |
| 132 | | | |
| 133 | | |----> ACCEPT |
| 134 | | | |
| 135 | | |----> ufw-user-input |
| 136 | | | | |
| 137 | | |<------/ |
| 138 | | | |
| 139 | |<------/ |
| 140 | | |
| 141 | | |
| 142 | |----> ufw-after-input |
| 143 | | | |
| 144 | | |----> ufw-skip-to-policy-input ----> DROP |
| 145 | | | |
| 146 | |<------/ |
| 147 | | |
| 148 | | |
| 149 | |----> ufw-after-logging-input |
| 150 | | | |
| 151 | | LOG |
| 152 | | | |
| 153 | |<------/ |
| 154 | | |
| 155 | | |
| 156 | |----> ufw-reject-input |
| 157 | | | |
| 158 | |<------/ |
| 159 | | |
| 160 | | |
| 161 | |----> ufw-track-input |
| 162 | | | |
| 163 | |<------/ |
| 164 | | |
| 165 | DROP |
| 166 | }}} |
| 167 | {{{ |
| 168 | FORWARD |
| 169 | | |
| 170 | |----> ufw-before-logging-forward |
| 171 | | | |
| 172 | |<------/ |
| 173 | | |
| 174 | | |
| 175 | |----> ufw-before-forward |
| 176 | | | |
| 177 | | |----> ufw-user-forward |
| 178 | | | | |
| 179 | | |<------/ |
| 180 | | | |
| 181 | |<------/ |
| 182 | | |
| 183 | | |
| 184 | |----> ufw-after-forward |
| 185 | | | |
| 186 | |<------/ |
| 187 | | |
| 188 | | |
| 189 | |----> ufw-after-logging-forward ----> LOG |
| 190 | | | |
| 191 | |<--------------------------------------/ |
| 192 | | |
| 193 | | |
| 194 | |----> ufw-reject-forward |
| 195 | | | |
| 196 | |<------/ |
| 197 | | |
| 198 | DROP |
| 199 | }}} |
| 200 | {{{ |
| 201 | OUTPUT |
| 202 | | |
| 203 | | |
| 204 | |----> ufw-before-logging-output |
| 205 | | | |
| 206 | | | |
| 207 | | | |
| 208 | |<------/ |
| 209 | | |
| 210 | | |
| 211 | |----> ufw-before-output |
| 212 | | | |
| 213 | | |----> ACCEPT |
| 214 | | | |
| 215 | | |----> ufw-user-output |
| 216 | | | | |
| 217 | | |<------/ |
| 218 | | | |
| 219 | |<------/ |
| 220 | | |
| 221 | | |
| 222 | |----> ufw-after-output |
| 223 | | | |
| 224 | | | |
| 225 | | | |
| 226 | |<------/ |
| 227 | | |
| 228 | | |
| 229 | |----> ufw-after-logging-output |
| 230 | | | |
| 231 | | | |
| 232 | | | |
| 233 | |<------/ |
| 234 | | |
| 235 | | |
| 236 | |----> ufw-reject-output |
| 237 | | | |
| 238 | | | |
| 239 | | | |
| 240 | |<------/ |
| 241 | | |
| 242 | | |
| 243 | |----> ufw-track-output |
| 244 | | | |
| 245 | | |----> ACCEPT |
| 246 | | | |
| 247 | |<------/ |
| 248 | | |
| 249 | ACCEPT |
| 250 | }}} |