zlacker

[parent] [thread] 13 comments
1. Nifty3+(OP)[view] [source] 2023-07-31 17:22:40
I used to do remote work in firewalls quite often, and after locking myself out once or twice, I came up with a new habit: before making any changes I would schedule a reboot for 5min out which would revert any changes. That way if I locked myself out I could just wait for the reboot and get back in.
replies(6): >>dang+9b >>prox+Jb >>knorke+Jh >>hsbaua+Rv >>stouse+UW >>pauldd+3b1
2. dang+9b[view] [source] 2023-07-31 18:12:28
>>Nifty3+(OP)
And then if it worked for those 5 min before the reboot, you'd redeploy the change 'for real', without a reboot?
replies(2): >>2snake+Ce >>Nifty3+kx
3. prox+Jb[view] [source] 2023-07-31 18:14:59
>>Nifty3+(OP)
This is clever, I like it.
replies(1): >>knorke+4i
◧◩
4. 2snake+Ce[view] [source] [discussion] 2023-07-31 18:27:53
>>dang+9b
Yeah, there are different kinds of memory in firewalls. Like a running-config and a startup-config. If you just change the running-config and don't commit to the startup-config, when the reboot takes place it'll pull the config from the (non-modified) startup-config instead, reverting changes.
replies(1): >>Nifty3+ux
5. knorke+Jh[view] [source] 2023-07-31 18:40:26
>>Nifty3+(OP)
Standard practice on Cisco routers, where I've worked, is to do "reload 5" before doing dangerous things.

On juniper, it's "commit confirmed".

replies(1): >>comboy+hN
◧◩
6. knorke+4i[view] [source] [discussion] 2023-07-31 18:41:42
>>prox+Jb
"commit confirmed" from Juniper routers is much better
replies(1): >>snuxol+iN
7. hsbaua+Rv[view] [source] 2023-07-31 19:52:58
>>Nifty3+(OP)
‘sleep 300 && init 6’ was my go-to, but since then systemd has made firing init 6 unreliable (it won’t trigger a reboot locally if root has an open ssh session, at least on Ubuntu).
◧◩
8. Nifty3+kx[view] [source] [discussion] 2023-07-31 19:59:16
>>dang+9b
My typical workflow was:

- Schedule the reboot

- do my changes

- Make sure everything was working properly

- Go get lunch

- Notice a bunch of pages and alarms about a firewall going offline

- Rush back to my office

- Login to the firewall

- Schedule the reboot

- Re apply the changes

- Test it again

- CANCEL THE FING REBOOT THIS TIME

- Eat my now cold lunch

replies(1): >>booi+XT1
◧◩◪
9. Nifty3+ux[view] [source] [discussion] 2023-07-31 20:00:13
>>2snake+Ce
copy run start!
◧◩
10. comboy+hN[view] [source] [discussion] 2023-07-31 21:16:45
>>knorke+Jh
or safe mode on mikrotik
◧◩◪
11. snuxol+iN[view] [source] [discussion] 2023-07-31 21:16:56
>>knorke+4i
Mikrotik safe mode gets a 3/5 in comparison - it reverts changes you made if you lose connection to the router, so it does it’s job as an anti-lockout mechanism; but I much prefer the atomic nature of a confit commit on junos still.
12. stouse+UW[view] [source] 2023-07-31 22:08:13
>>Nifty3+(OP)
I did a similar thing in the early days of my career, but I actually caused an outage as a result.

In this instance, I was adding itables rules to a host. I wrote a script that add all the rules to enable expected network traffic, then set the default policy to DROP. Before running this script, I scheduled another script to be run which would delete all the rules I'd added. I did not remember to set the default policy to ALLOW.

The script runs, everything looks good. Five minutes later, pagers start going off.

Thankfully we were able to remotely power-cycle the host and didn't have to drive down to the datacenter in order to fix the issue.

13. pauldd+3b1[view] [source] 2023-07-31 23:42:11
>>Nifty3+(OP)
Kinda like changing display settings in Windows.

Changes will revert in 15 seconds....

◧◩◪
14. booi+XT1[view] [source] [discussion] 2023-08-01 07:04:42
>>Nifty3+kx
This used to be my workflow as well. I did make a few improvements though

  - begin change control at 4:55pm on Friday before Christmas
  - schedule reboot
  - paste changes
  - make sure everything is working properly
  - leave security key on desk 
  - go to christmas party
  - firewall goes offline, pages go off
  - remotely log into firewall with phone
  - rush back to office to get security key
  - accidentally type init 1 hanging server
  - discount datacenter remote hands not picking up the  phone
  - rush to datacenter to power cycle server
  - :(
[go to top]