From: Jarry <mr.jarry@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] modifying iptables: how can I prevent locking me out?
Date: Mon, 31 Jan 2011 22:20:11 +0100 [thread overview]
Message-ID: <4D47278B.6010801@gmail.com> (raw)
In-Reply-To: <20110124215057.014e9e60@digimed.co.uk>
>> Maybe a cron job that no matter what reloads the old rules 1 hour later?
> Wouldn't at make more sense?
Thanks to all who replied. So first I saved my working rules with
# /sbin/iptables-save -c > /root/ipt.bak
Then I created my command file:
# echo '#!/bin/bash' > /root/ipt-restore
# echo '/sbin/iptables-restore -c < /root/ipt.bak' >> /root/ipt-restore
# chmod 0700 /root/ipt-restore
Now I'm going to set up my restore-job:
# at -f /root/ipt-restore now + 60 min
And after that I will play a little with iptables-rules, hoping that
at-job will save my a** if I screw something...
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
next prev parent reply other threads:[~2011-01-31 22:11 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
2011-01-31 21:20 ` Jarry [this message]
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=4D47278B.6010801@gmail.com \
--to=mr.jarry@gmail.com \
--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