Andrea Campanella | 2a2df42 | 2017-08-30 16:59:17 +0200 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Andrea Campanella | edfdbca | 2017-02-01 17:33:47 -0800 | [diff] [blame] | 14 | # |
| 15 | # rules.input-after |
| 16 | # |
| 17 | # Rules that should be run after the ufw command line added rules. Custom |
| 18 | # rules should be added to one of these chains: |
| 19 | # ufw6-after-input |
| 20 | # ufw6-after-output |
| 21 | # ufw6-after-forward |
| 22 | # |
| 23 | |
| 24 | # Don't delete these required lines, otherwise there will be errors |
| 25 | *filter |
| 26 | :ufw6-after-input - [0:0] |
| 27 | :ufw6-after-output - [0:0] |
| 28 | :ufw6-after-forward - [0:0] |
| 29 | # End required lines |
| 30 | |
| 31 | # don't log noisy services by default |
| 32 | -A ufw6-after-input -p udp --dport 137 -j ufw6-skip-to-policy-input |
| 33 | -A ufw6-after-input -p udp --dport 138 -j ufw6-skip-to-policy-input |
| 34 | -A ufw6-after-input -p tcp --dport 139 -j ufw6-skip-to-policy-input |
| 35 | -A ufw6-after-input -p tcp --dport 445 -j ufw6-skip-to-policy-input |
| 36 | -A ufw6-after-input -p udp --dport 546 -j ufw6-skip-to-policy-input |
| 37 | -A ufw6-after-input -p udp --dport 547 -j ufw6-skip-to-policy-input |
| 38 | |
| 39 | # don't delete the 'COMMIT' line or these rules won't be processed |
| 40 | COMMIT |