Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] modifying iptables: how can I prevent locking me out?
Date: Mon, 24 Jan 2011 22:28:08
Message-Id: 4D3DFC7F.7090302@wonkology.org
In Reply to: Re: [gentoo-user] modifying iptables: how can I prevent locking me out? by Neil Bothwick
1 Neil Bothwick writes:
2
3 > On Mon, 24 Jan 2011 10:59:16 -0800, Mark Knecht wrote:
4 >
5 >> Maybe a cron job that no matter what reloads the old rules 1 hour later?
6 >
7 > Wouldn't at make more sense? You don't want the thing to keep reloading
8 > your old config, at will do it once, and you can remove the task from the
9 > at queue once you successfully log back in.
10 >
11 > echo "command to reload old rules" | at now + 1 hour
12
13 I usually do a
14 sleep 10m && restore the state
15 in a screen session. If things are okay and I can login, I re-attach the
16 screen and cancel the sleep with Ctrl-C. If I cannot login, I have to
17 wait 10 minutes.
18
19 Wonko