2010-05-01から1ヶ月間の記事一覧

iptables@Ubuntu10.04

ポリシーイメージ +------------+ +---------+ +-------------+ → | PREROUTING | → | FORWARD | → | POSTROUTING | → +------------+ +---------+ +-------------+ ↓ ↑ +------------+ +-------------+ | INPUT | | OUTPUT | +------------+ +-------------…

IPマスカレード@Ubuntu10.04

IPフォワーディングの設定 # sudo vi /etc/sysctl.conf net.ipv4.ip_forward=1 # sudo sysctl -p iptables # 関連するインターフェースのFORWARDを許可 iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT # 192…

Quagga@Ubuntu10.04

Quagga + Linuxでルーティング遊びができる しかもCiscoっぽい操作なので勉強に便利 Quagga インストール+設定 $ sudo apt-get install quagga $ sudo cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf $ sudo cp /usr/share/do…

DHCP@Ubuntu10.04

DHCP # sudo apt-get install dhcp3-server # sudo vi /etc/dhcp3/dhcpd.conf subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.2 192.168.1.10; option routers 192.168.1.1; option domain-name-servers 192.168.1.1; } # sudo /etc/init.d/dh…

css変えてみた

シンタックスハイライトをvimのdarkライクな感じに. .synComment { color: #0ff; } .synConstant { color: #f0f; } .synIdentifier { color: #0ff; } .synStatement { color: #ff0; } .synPreProc { color: blue; } .synType { color: #0f0; } .synSpecial …