I hereby claim:
- I am heyman on github.
- I am heyman (https://keybase.io/heyman) on keybase.
- I have a public key ASBayfWFGjb5lwUu5Y1eSdD8lp8qOa57aH8Ei0NfyhmOtQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Solves the problem with open ports with docker and ufw | |
| # As Docker uses the nat table, the filter table FORWARD chain is used and does not touch ufw-input chains as expected. | |
| # Even for ufw-forward chains it would not work, as DOCKER chains are inserted in front. | |
| # This is a simple fix that worked for me. | |
| INTERFACE_NAME=eth0 | |
| __clear(){ | |
| sed -i '/^# dockerfix start/,/^# dockerfix end/d' $1 |
| """ | |
| Usage examples: | |
| # As context manager: | |
| with manual_report("stats_entry_name"): | |
| # do stuff | |
| # As a decorator for tasks: | |
| @task | |
| @manual_report |