Toggling firewall is (too) slow
Bug #1621294 reported by
ALinuxUser
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ufw |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have a laptop that runs reasonably fast. Yet, toggling the firewall on and off takes about four seconds - which is long enough to make the user wonder whether s/he has made the wrong gesture.
Mint 18 Cinnamon. Gufu 16.04.1. Intel dual-core T7500 @ 2.20GHz, 8GB RAM, on an SSD. Fast Ethernet (75MBits) and reasonable (between 75 and 20Mbits) wifi.
Changed in gui-ufw: | |
status: | New → Invalid |
affects: | gui-ufw → ufw (Ubuntu) |
Changed in ufw (Ubuntu): | |
status: | Invalid → New |
affects: | ufw (Ubuntu) → ufw |
To post a comment you must log in.
ufw is a python3 program and as such, there is some overhead with loading the python3 interpreter. However, on a constrained device I see:
$ time sudo ufw --force enable
Firewall is active and enabled on system startup
real 0m0.301s
user 0m0.100s
sys 0m0.028s
I'm not sure why it is so slow on your system. Please provide detailed configuration and steps to reproduce along with strace output to justify this is a bug in ufw and I can take a look at what is happening.
Thanks!