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 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641
|
0: disable
1: enable
Bug #247352
2: --dry-run allow http/tcp
WARN: Checks disabled
*filter
:ufw-user-input - [0:0]
:ufw-user-output - [0:0]
:ufw-user-forward - [0:0]
:ufw-before-logging-input - [0:0]
:ufw-before-logging-output - [0:0]
:ufw-before-logging-forward - [0:0]
:ufw-user-logging-input - [0:0]
:ufw-user-logging-output - [0:0]
:ufw-user-logging-forward - [0:0]
:ufw-after-logging-input - [0:0]
:ufw-after-logging-output - [0:0]
:ufw-after-logging-forward - [0:0]
:ufw-logging-deny - [0:0]
:ufw-logging-allow - [0:0]
:ufw-user-limit - [0:0]
:ufw-user-limit-accept - [0:0]
### RULES ###
### tuple ### allow tcp 80 0.0.0.0/0 any 0.0.0.0/0 in
-A ufw-user-input -p tcp --dport 80 -j ACCEPT
### END RULES ###
### LOGGING ###
-A ufw-after-logging-input -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
-A ufw-after-logging-forward -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
-I ufw-logging-deny -m conntrack --ctstate INVALID -j RETURN -m limit --limit 3/min --limit-burst 10
-A ufw-logging-deny -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
-A ufw-logging-allow -j LOG --log-prefix "[UFW ALLOW] " -m limit --limit 3/min --limit-burst 10
### END LOGGING ###
### RATE LIMITING ###
-A ufw-user-limit -m limit --limit 3/minute -j LOG --log-prefix "[UFW LIMIT BLOCK] "
-A ufw-user-limit -j REJECT
-A ufw-user-limit-accept -j ACCEPT
### END RATE LIMITING ###
COMMIT
Rules updated
iptables -L -n:
3: delete allow http/tcp
WARN: Checks disabled
Could not delete non-existent rule
Bug #251355
Setting IPV6 to no
4: disable
/lib/ufw/ufw-init flush-all:
5: enable
/lib/ufw/ufw-init force-reload:
ip6tables -L -n:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT TST -- ::/0 ::/0
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT TST -- ::/0 ::/0
Bug #260881
Setting IPV6 to no
6: disable
7: enable
8: allow Apache
WARN: Checks disabled
Rule added
9: delete deny Apache
WARN: Checks disabled
Could not delete non-existent rule
iptables -L -n:
ACCEPT TST -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 /* 'dapp_Apache' */
10: delete allow Apache
WARN: Checks disabled
Rule deleted
iptables -L -n:
Bug #263308
Setting IPV6 to yes
11: disable
12: enable
13: allow to any from any
WARN: Checks disabled
Rule added
Rule added (v6)
14: allow proto tcp to any from any
WARN: Checks disabled
Rule added
Rule added (v6)
15: allow to 192.168.1.1
WARN: Checks disabled
Rule added
16: allow proto udp from 192.168.1.1 to any
WARN: Checks disabled
Rule added
17: allow from 192.168.1.1 to 192.168.1.2
WARN: Checks disabled
Rule added
18: allow proto udp from 192.168.1.1 to 192.168.1.2
WARN: Checks disabled
Rule added
19: status
WARN: Checks disabled
Status: active
To Action From
-- ------ ----
Anywhere ALLOW Anywhere
Anywhere/tcp ALLOW Anywhere/tcp
192.168.1.1 ALLOW Anywhere
Anywhere ALLOW 192.168.1.1/udp
192.168.1.2 ALLOW 192.168.1.1
192.168.1.2/udp ALLOW 192.168.1.1/udp
Anywhere (v6) ALLOW Anywhere (v6)
Anywhere/tcp (v6) ALLOW Anywhere/tcp (v6)
20: delete allow to any from any
WARN: Checks disabled
Rule deleted
Rule deleted (v6)
21: delete allow proto tcp to any from any
WARN: Checks disabled
Rule deleted
Rule deleted (v6)
22: delete allow to 192.168.1.1
WARN: Checks disabled
Rule deleted
23: delete allow proto udp from 192.168.1.1 to any
WARN: Checks disabled
Rule deleted
24: delete allow from 192.168.1.1 to 192.168.1.2
WARN: Checks disabled
Rule deleted
25: delete allow proto udp from 192.168.1.1 to 192.168.1.2
WARN: Checks disabled
Rule deleted
26: status
WARN: Checks disabled
Status: active
Bug #273278
Setting IPV6 to yes
27: disable
28: enable
29: status verbose
WARN: Checks disabled
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
30: default allow
WARN: Checks disabled
Default incoming policy changed to 'allow'
(be sure to update your rules accordingly)
31: status verbose
WARN: Checks disabled
Status: active
Logging: on (low)
Default: allow (incoming), allow (outgoing), disabled (routed)
New profiles: skip
32: default deny
WARN: Checks disabled
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
33: status verbose
WARN: Checks disabled
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
Bug #251136
Setting IPV6 to yes
34: disable
35: enable
36: status
WARN: Checks disabled
Status: active
37: delete allow 13
WARN: Checks disabled
Could not delete non-existent rule
Could not delete non-existent rule (v6)
38: delete allow Apache
WARN: Checks disabled
Could not delete non-existent rule
Could not delete non-existent rule (v6)
39: delete allow to 127.0.0.1 port 13
WARN: Checks disabled
Could not delete non-existent rule
40: delete allow to 127.0.0.1 app Apache
WARN: Checks disabled
Could not delete non-existent rule
41: delete allow to ::1 port 13
WARN: Checks disabled
Could not delete non-existent rule (v6)
42: delete allow to ::1 app Apache
WARN: Checks disabled
Could not delete non-existent rule (v6)
43: status
WARN: Checks disabled
Status: active
Bug #344971
Setting IPV6 to yes
44: disable
45: enable
46: allow 3
WARN: Checks disabled
Rule added
Rule added (v6)
47: allow 4
WARN: Checks disabled
Rule added
Rule added (v6)
48: insert 1 allow 1
WARN: Checks disabled
Rule inserted
Rule inserted (v6)
49: insert 2 allow 2
WARN: Checks disabled
Rule inserted
Rule inserted (v6)
50: status numbered
WARN: Checks disabled
Status: active
To Action From
-- ------ ----
[ 1] 1 ALLOW IN Anywhere
[ 2] 2 ALLOW IN Anywhere
[ 3] 3 ALLOW IN Anywhere
[ 4] 4 ALLOW IN Anywhere
[ 5] 1 (v6) ALLOW IN Anywhere (v6)
[ 6] 2 (v6) ALLOW IN Anywhere (v6)
[ 7] 3 (v6) ALLOW IN Anywhere (v6)
[ 8] 4 (v6) ALLOW IN Anywhere (v6)
51: delete allow 4
WARN: Checks disabled
Rule deleted
Rule deleted (v6)
52: delete allow 3
WARN: Checks disabled
Rule deleted
Rule deleted (v6)
53: delete allow 2
WARN: Checks disabled
Rule deleted
Rule deleted (v6)
54: delete allow 1
WARN: Checks disabled
Rule deleted
Rule deleted (v6)
55: status
WARN: Checks disabled
Status: active
Bug #407810
56: app info bug407810
WARN: Checks disabled
Profile: bug407810
Title: LanManager-like file and printer server for Unix
Description: The bug407810 software suite is a collection of programs that
implements the SMB/CIFS protocol for unix systems, allowing you to serve
files and printers to Windows, NT, OS/2 and DOS clients. This protocol is
sometimes also referred to as the LanManager or NetBIOS protocol.
Ports:
137,138/udp
139,445/tcp
57: allow bug407810
-A ufw-user-input -p udp -m multiport --dports 137,138 -j ACCEPT -m comment --comment 'dapp_bug407810'
-A ufw-user-input -p tcp -m multiport --dports 139,445 -j ACCEPT -m comment --comment 'dapp_bug407810'
58: delete allow bug407810
Bug #459925
Setting IPV6 to yes
59: disable
60: enable
61: tests/testarea/lib/ufw/ufw-init stop
62: tests/testarea/lib/ufw/ufw-init start
63: disable
64: logging off
65: enable
66: tests/testarea/lib/ufw/ufw-init stop
67: tests/testarea/lib/ufw/ufw-init start
68: disable
69: logging on
70: enable
71: tests/testarea/lib/ufw/ufw-init stop
72: tests/testarea/lib/ufw/ufw-init start
73: disable
74: logging low
75: enable
76: tests/testarea/lib/ufw/ufw-init stop
77: tests/testarea/lib/ufw/ufw-init start
78: disable
79: logging medium
80: enable
81: tests/testarea/lib/ufw/ufw-init stop
82: tests/testarea/lib/ufw/ufw-init start
83: disable
84: logging high
85: enable
86: tests/testarea/lib/ufw/ufw-init stop
87: tests/testarea/lib/ufw/ufw-init start
88: disable
89: logging full
90: enable
91: tests/testarea/lib/ufw/ufw-init stop
92: tests/testarea/lib/ufw/ufw-init start
Setting IPV6 to no
93: disable
94: enable
95: tests/testarea/lib/ufw/ufw-init stop
96: tests/testarea/lib/ufw/ufw-init start
97: disable
98: logging off
99: enable
100: tests/testarea/lib/ufw/ufw-init stop
101: tests/testarea/lib/ufw/ufw-init start
102: disable
103: logging on
104: enable
105: tests/testarea/lib/ufw/ufw-init stop
106: tests/testarea/lib/ufw/ufw-init start
107: disable
108: logging low
109: enable
110: tests/testarea/lib/ufw/ufw-init stop
111: tests/testarea/lib/ufw/ufw-init start
112: disable
113: logging medium
114: enable
115: tests/testarea/lib/ufw/ufw-init stop
116: tests/testarea/lib/ufw/ufw-init start
117: disable
118: logging high
119: enable
120: tests/testarea/lib/ufw/ufw-init stop
121: tests/testarea/lib/ufw/ufw-init start
122: disable
123: logging full
124: enable
125: tests/testarea/lib/ufw/ufw-init stop
126: tests/testarea/lib/ufw/ufw-init start
Bug #512131
127: logging low
128: logging on
129: logging medium
130: logging high
131: logging full
132: logging off
133: logging off
Bug #513387
134: disable
135: enable
136: iptables -L INPUT -n | egrep -q 'ufw-after-logging-input'
137: iptables -L OUTPUT -n | egrep -q 'ufw-after-logging-output'
138: iptables -L FORWARD -n | egrep -q 'ufw-after-logging-forward'
139: disable
|