Archive for the ‘Linux’ category

A tool for applying iptables safely: apply_firewall.

八月 26th, 2010

Do you have ever did something stupid with iptables command which like blocking you self from accessing the SSH?  Yes, I did.  Most of administrator knows that is dangerous to change iptable rules remotely, with a little typo, you might have to restart the machine to access the SSH again.  For applying iptables sfaely, I wrote a simple tool which can be used to apply firewall rules safely.  It backups the original iptables configuration before applying it, and if you don’t type "yes" within specific time period, it will rollback to original iptables automatically.  Here is an example:

It is written in Python, you can install it by

easy_install apply_firewall

Or you can download it here:

http://pypi.python.org/pypi/apply_firewall/

I hope this could be helpful for linux administrators :D

製作Linux USB live開機隨身碟

十月 28th, 2008

天殺的OS作業: 製作Linux USB

live開機隨身碟這個作業,是要將Linux的Kernel塞到USB裡面Live開機,因為實在太麻煩了,我不得不記錄步驟,否則連我自己都會忘記

» Read more: 製作Linux USB live開機隨身碟