Linux Archive

  • How to use VI editor in Linux as column mode?   There is a column mode function (which is like ultraedit) but a bit more tricky. Here is a demo […]

    Linux vi editor Column Mode

    How to use VI editor in Linux as column mode?   There is a column mode function (which is like ultraedit) but a bit more tricky. Here is a demo […]

    Continue Reading...

  • 1. Download PAM module from YUM repository yum install gcc pam-devel openssl-devel libpng-devel Of course make sure that you have installed SSHd and GCC library before this installation. 2. Download […]

    How to use Google Authentication in SSH?

    1. Download PAM module from YUM repository yum install gcc pam-devel openssl-devel libpng-devel Of course make sure that you have installed SSHd and GCC library before this installation. 2. Download […]

    Continue Reading...

  • 如果大家有玩VoIP Server,當中一定有了解過呢隻Asterisk,佢係響Linux上面行,功能強大。 但有開VoIP Server既朋友,可能個5060 Port 位會成日被有心人利用,以下呢一段Perl Script放入響Cron Job行可以避免,佢利用左iptables同asterisk log file,定時檢查有咩IP撞入黎,然後add條rule響iptables,咁樣就block左成個IP… 原文參考:http://www.teamforrest.com/blog/171/asterisk-no-matching-peer-found-block/ 事前準備:add a new chain rule “asterisk” in iptables iptables -N asterisk iptables -A INPUT -j asterisk iptables -A FORWARD […]

    Asterisk VoIP Server Block Script

    如果大家有玩VoIP Server,當中一定有了解過呢隻Asterisk,佢係響Linux上面行,功能強大。 但有開VoIP Server既朋友,可能個5060 Port 位會成日被有心人利用,以下呢一段Perl Script放入響Cron Job行可以避免,佢利用左iptables同asterisk log file,定時檢查有咩IP撞入黎,然後add條rule響iptables,咁樣就block左成個IP… 原文參考:http://www.teamforrest.com/blog/171/asterisk-no-matching-peer-found-block/ 事前準備:add a new chain rule “asterisk” in iptables iptables -N asterisk iptables -A INPUT -j asterisk iptables -A FORWARD […]

    Continue Reading...