From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] modifying iptables: how can I prevent locking me out?
Date: Mon, 24 Jan 2011 23:26:07 +0100 [thread overview]
Message-ID: <4D3DFC7F.7090302@wonkology.org> (raw)
In-Reply-To: <20110124215057.014e9e60@digimed.co.uk>
Neil Bothwick writes:
> On Mon, 24 Jan 2011 10:59:16 -0800, Mark Knecht wrote:
>
>> Maybe a cron job that no matter what reloads the old rules 1 hour later?
>
> Wouldn't at make more sense? You don't want the thing to keep reloading
> your old config, at will do it once, and you can remove the task from the
> at queue once you successfully log back in.
>
> echo "command to reload old rules" | at now + 1 hour
I usually do a
sleep 10m && restore the state
in a screen session. If things are okay and I can login, I re-attach the
screen and cancel the sleep with Ctrl-C. If I cannot login, I have to
wait 10 minutes.
Wonko
next prev parent reply other threads:[~2011-01-24 22:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-24 18:47 [gentoo-user] modifying iptables: how can I prevent locking me out? Jarry
2011-01-24 18:59 ` Mark Knecht
2011-01-24 19:06 ` kashani
2011-01-24 19:16 ` Mark Knecht
2011-01-24 21:08 ` Manuel Klemenz
2011-01-24 21:50 ` Neil Bothwick
2011-01-24 22:14 ` Mark Knecht
2011-01-24 22:16 ` Mark Knecht
2011-01-25 10:25 ` Neil Bothwick
2011-01-25 22:57 ` Mick
2011-01-24 22:28 ` Alan McKinnon
2011-01-25 10:19 ` Neil Bothwick
2011-01-24 22:26 ` Alex Schuster [this message]
2011-01-31 21:20 ` Jarry
2011-01-24 21:40 ` J. Roeleveld
2011-01-24 22:31 ` Alan McKinnon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D3DFC7F.7090302@wonkology.org \
--to=wonko@wonkology.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox