Hi! I’m clsung

Hi! I’m clsung

clsung’s blog site, or you can call me AlanSung

Hi! I’m clsung RSS Feed
 
 
 
 

[OldPost] IP alias 使用 ipfw

原文於 April 02, 2003 發表。

Scenario 是這樣的:
我有三個 ip 在一台機器上使用,有些共同的 service 不想要受外面世界的干擾,於是使用了 ipfw ,指令一開始是:

$fwcmd add deny log all from any to ${ip}
$fwcmd add deny log all from any to ${ip1}
$fwcmd add deny log all from any to ${ip2}

但是覺得這樣很蠢,想要用 me 來取代,又怕沒用。不過怕有什麼用呢?試了就知道。

$fwcmd add deny log all from any to me

令人高興。成功囉!

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn

Leave a Reply

噗浪:

分類

Flickr

    clsung. Get yours at bighugelabs.com/flickr

Blogroll

    馬的警總回來了
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan