2010-08-24から1日間の記事一覧

ルーターへのアクセスを全てカットする

適当 #!/bin/sh myhost=`cat /etc/sysconfig/network-scripts/ifcfg-eth0 | grep IPADDR | awk -F = {'print $2'}` router='192.168.1.1' echo $myhost # clear iptables -F iptables -X # set iptables -A OUTPUT -p all -s $myhost -d $router -j DROP ipt…

plagger環境構築までの道3 cpanmで依存関係自動解決

先にまとめ yum install openssl-devel expat-devel db4-devel libxml2-devel cpanm で足りないモジュールをガンガン入れる。 // cpanm $ mkdir ~/bin $ wget http://xrl.us/cpanm $ chmod +x cpanm $ cd - // local::lib $ wget http://search.cpan.org/CPA…