When you are configuring iptables or SSH over SSH and the data center is thousands of kilometers away (and getting someone there to plug in a KVM is hard), what are some standard practices to prevent locking yourself out?
As I'm learning about iptables I've made a couple of mistakes and locked myself out.  What method(s) do you use to test rules without locking yourself out?  I'm using ubuntu server 12.04 LTS    All the answers below were helpful.  In the end I used a combination of options.  It also helps to have IPMI access to your remote server just in case!  But ideally test the rules locally on a replicated environment and test that first.  Vagrant helps in this regard to get test setups working quickly.
LINQ to Entities does not recognize the method 'System.String Format(System.String, System.Object, System.Object)' Equation of a rectangle I need to graph a rectangle on the Cartesian coordinate system. Is there an equation for a rectangle? I can't find it anywhere. Can you use a Pensieve-memory to explore a place? Background image resize in Ubuntu 18.04.1 LTS Recently updated to 18.04.1 and now I cannot resize my background image from fill screen to center image.  How can I resize the image now that 18 doesnt have the quick resize feature? Convert month name to month number in SQL Server Java: Sorting user-input array upon return Why do Unix man pages use double backticks in place of double quotes? I've noticed that man pages and other documents formatted by Unix utilities often use double backticks `` followed by double single quotes '' to wrap quoted phrases instead of the double quote character ". Single quotes are similarly replaced. Why is this?  Here are a couple examples, from the man page for grep:   To find all occurrences of the pattern `.Pp' at the beginning of a line:         $ grep '^\.Pp' myfile   The apostrophes ensure the entire expression is evaluated by grep instead  of by the user's shell.  The caret `^' matches the null string at the  beginning of a line, and the `\' escapes the `.', which would otherwise match  any character.   The grep utility is compliant with the IEEE Std 1003.1-2008 (``POSIX.1'')  specification. Is there a way to change the process group of a running process? Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure. Why does HTML require that multiple spaces show up as a single space in the browser? Detecting superfluous #includes in C/C++? Convergence of $1-\frac12-\frac13+\frac14+\frac15+\frac16-....$ How to generate/view PDF using Lightning Components? I need to view/generate PDF in Lightning component. How can I achieve that?  Do I have to user VF page with "renderAs" attribute inside Lightning Component? Or is there any other way to achieve this? Do we have negative prime numbers?   $..., -7, -5, -3, -2, ...$ How do I set my DNS when resolv.conf is being overwritten? Most of the info I see online says to edit /etc/resolv.conf, but any changes I make there just get overridden.  $ cat /etc/resolv.conf  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND --  #     YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1   It seems that 127.0.1.1 is a local instance of dnsmasq. The dnsmasq docs say to edit /etc/resolv.conf. I tried putting custom nameservers in /etc/resolv.conf.d/base, but the changes didn't show up in /etc/resolv.conf after running sudo resolvconf -u.  FYI, I don't want to change DNS on a per-connection basis, I want to set default DNS settings to use for all connections when not otherwise specified.  UPDATE:  I answered this question myself:   I think it's the best solution since:   It works. It requires the least amount of changes and It still works in conjunction with dnsmasq's DNS cache, rather than bypassing it. $$\frac{1}{n+1}&lt; \log(1+ 1/n)$$  Any ideas? I tried estimating the difference between $1/n$ and the logarithm and comparing with $1/n-1/(n+1)$ but I miserably failed. Real valued analytic function defined on a connected set is constant Disable or prevent multitouch in Activity The equivalence of open-set definition of continuous mappings to the $\epsilon-\delta$ definition Flag abusive users I think the community does a great job policing questions/answers, etc. and the community has some good tools available to do this.  Between flagging questions with some reasons behind it and editing posts, closing them, and deleting them, the only thing that seems to be missing to me is the ability to flag a user.  Reasons to flag a user as abusive:   Duplicate User Abusive Behavior Offensive user name or profile User profile consists of spam Others? I know this subject was discussed for many times, but I still don't get it..  I've read in a book that we can use "I've got" instead of "I have" for possesion and it gave some examples,      I've got an English book.   I've got a red car.   So I understand that it can be used only for possession of physical objects, but I saw it used in sentences like "I've got something to say", is it correct? I hope it's not a stupid question..Thank you very much!