Notes |
|
(0002211)
|
user2
|
2015-11-22 19:13
|
|
The "sudo /usr/bin/systemctl restart firewall: 256" is coming back with error code 256. Why is the restart failing? |
|
|
|
If it's running that command as clearsync
# su -s /bin/bash -c "/usr/bin/systemctl restart firewall" clearsync
Failed to issue method call: Access denied
Maybe it should be running /usr/sbin/firewall-start, as per sudoers file.
??? |
|
|
|
If this isn't isolated to firewall, then maybe sudoers is missing /usr/bin/systemctl for clearsync user.
But how did this get passed testing??? Something has changed. |
|
|
|
|
|
(0002251)
|
user2
|
2015-11-22 19:42
(edited on: 2015-11-22 19:44) |
|
That's it! The issue doesn't crop up until after clearsync restarted, so dog food/running boxes don't exhibit the problem right away (edit: rephrased). Pushing through a quick fix.
|
|
|
|
One final bit of debug...if I do add /usr/bin/systemctl to clearsync user in sudoers, the firewall goes into panic mode:
Nov 22 20:40:19 gateway firewall: Using gateway mode
Nov 22 20:40:19 gateway firewall: Loading kernel modules
Nov 22 20:40:19 gateway firewall: Loading kernel modules for NAT
Nov 22 20:40:19 gateway firewall: Setting default policy to DROP
Nov 22 20:40:19 gateway firewall: Defining custom chains
Nov 22 20:40:19 gateway firewall: Running blocked external rules
Nov 22 20:40:19 gateway firewall: Running custom rules
Nov 22 20:40:19 gateway firewall: Running common rules
Nov 22 20:40:19 gateway firewall: Running incoming denied rules
Nov 22 20:40:19 gateway firewall: Running user-defined incoming rules
Nov 22 20:40:19 gateway firewall: Allowing incoming udp port 500 for IPsec server
Nov 22 20:40:19 gateway firewall: Running firewall panic mode...
But if run as root, it does not panic...it's not as simple as adding to suders. |
|