View Single Post
Old 16th June 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366

Originally Posted by Carpetsmoker View Post
No, it will work if the ssh connection is lost ... Try it.
Well, before posting I tested it to the level of doing "echo hello && sleep 60 && echo hello", then closing the ssh sesion with a ~., and logging back in. the sleep process was not to be found.

However, I suspect that the ssh session will hang around after the packets start blackholing for long enough for the sleep && pfctl to work, whereas even ~. probably closed the session neatly. I'd consider it a little on the flaky side, however, but if it works, and it certainly is easy, then so be it.

Personally, I'd always do this sort of thing inside a screen session anyway, so it's a moot point for me.
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote