|
̾¾Îip6fw —
IPv6
¥Õ¥¡¥¤¥¢¥Õ¥©¡¼¥ëÍÑÀ©¸æ¥æ¡¼¥Æ¥£¥ê¥Æ¥£
½ñ¼°ip6fw [-nq ]
[-p preproc
[-D
macro[=value]]
[-U macro]]
pathname ip6fw
[-n ] [-f |
-q ] flush ip6fw
[-nq ] zero [number ...]
ip6fw [-n ] delete
number ... ip6fw
[-aftN ] list [number ...]
ip6fw [-ftN ] show
[number ...] ip6fw
[-nq ] add [number]
action [log] proto from
src to dst [via
name | ipv6no]
[options]
²òÀâ´Êñ¤ËÀßÄꤹ¤ë¤¿¤á¤Ë¡¢¥ë¡¼¥ë¤ò¥Õ¥¡¥¤¥ë¤Ë³ÊǼ¤·¤Æ¡¢ºÇ½é¤Î½ñ¼°¤Ë¼¨¤¹¤è¤¦¤Ëip6fw
¤Ë½èÍý¤µ¤»¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£
ÀäÂÐ pathname
¤ò»ÈÍѤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¥Õ¥¡¥¤¥ë¤Ï¡¢1
¹Ô¤º¤ÄÆɤ߹þ¤Þ¤ì¡¢
ip6fw
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ø¤Î°ú¿ô¤ËŬÍѤµ¤ì¤Þ¤¹¡£
¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¡¢¥×¥ê¥×¥í¥»¥Ã¥µ¤ò
¥ë¡¼¥ë¤Ï¡¢ 1 ¤«¤é 65534 ¤Þ¤Ç¤Î “¹ÔÈÖ¹æ” ¤Ç½øÎ󤬤Ĥ±¤é¤ì¤Æ¤ª¤ê¡¢ ¥ë¡¼¥ë¤ò·è¤á¤¿¤êºï½ü¤·¤¿¤ê¤¹¤ë¤Î¤Ë»ÈÍѤµ¤ì¤Þ¤¹¡£ ¥ë¡¼¥ë¤Ï¾º½ç¤Ç»î¤µ¤ì¡¢¥Ñ¥±¥Ã¥È¤ËºÇ½é¤Ë¥Þ¥Ã¥Á¤·¤¿¥ë¡¼¥ë¤¬ ŬÍѤµ¤ì¤Þ¤¹¡£ Ê£¿ô¤Î¥ë¡¼¥ë¤¬Æ±¤¸¹ÔÈÖ¹æ¤ò¶¦Í¤Ç¤¤Þ¤¹¡£ ¤³¤Î¾ì¹ç¡¢Äɲä·¤¿½çÈ֤ǥ롼¥ë¤¬Å¬ÍѤµ¤ì¤Þ¤¹¡£ ÈÖ¹æ¤ò¤Ä¤±¤º¤Ë¥ë¡¼¥ë¤ò¤·¤¿¾ì¹ç¡¢¤½¤ÎľÁ°¤Î¥ë¡¼¥ë¤è¤ê¤â 100 Â礤¤Èֹ椬¤Ä¤±¤é¤ì¤Þ¤¹¡£ ÄêµÁ¤µ¤ì¤¿¥ë¡¼¥ëÈÖ¹æ¤ÎºÇÂçÃͤ¬ 65434 ¤è¤ê¤âÂ礤¤¾ì¹ç¡¢ ¿·¤·¤¯ÄêµÁ¤µ¤ì¤ë¥ë¡¼¥ë¤Ï¡¢¥ë¡¼¥ë¤ÎºÇ¸å¤ËÄɲ䵤ì¤Þ¤¹¡£ delete Áàºî¤Ç¤Ï¡¢¤½¤ì¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢ number ¤ò¹ÔÈÖ¹æ¤Ë¤â¤ÄºÇ½é¤Î¥ë¡¼¥ë¤¬ºï½ü¤µ¤ì¤Þ¤¹¡£ list ¥³¥Þ¥ó¥É¤Ï¡¢¸½ºß¤Î¥ë¡¼¥ë¥»¥Ã¥È¤ò½ÐÎϤ·¤Þ¤¹¡£ show ¥³¥Þ¥ó¥É¤Ï `ip6fw -a list' ¤ÈÅù²Á¤Ç¤¹¡£ zero Áàºî¤Ï¡¢¥ë¡¼¥ëÈÖ¹æ number ¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿¥«¥¦¥ó¥¿¤ò 0 ¤Ë¤·¤Þ¤¹¡£ flush Áàºî¤Ï¡¢¤¹¤Ù¤Æ¤Î¥ë¡¼¥ë¤òºï½ü¤·¤Þ¤¹¡£ ‘#’ ¤Ç»Ï¤Þ¤ë¥³¥Þ¥ó¥É¤ª¤è¤Ó¶õÇò¤À¤±¤Î¥³¥Þ¥ó¥É¤Ï¤ß¤Ê ̵»ë¤µ¤ì¤Þ¤¹¡£ ¼¡¤Î¥ë¡¼¥ë¤Ïɬ¤ºÂ¸ºß¤·¤Þ¤¹: 65535 deny all from any to any ¤³¤Î¥ë¡¼¥ë¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥Ý¥ê¥·¤Ç¤¹¡£¤¹¤Ê¤ï¤Á¡¢ ²¿¤âµö¤µ¤Ê¤¤¤È¤¤¤¦¤³¤È¤Ç¤¹¡£¥ë¡¼¥ë¤òÀßÄꤹ¤ëºÝ¤Ë ¤¢¤Ê¤¿¤¬¤¹¤Ù¤»Å»ö¤Ï¡¢¤³¤Î¥Ý¥ê¥·¤òɬÍפ˹ç¤ï¤»¤Æ Êѹ¹¤¹¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹¡£ ¼¡¤Î¥ª¥×¥·¥ç¥ó¤¬»ÈÍѤǤ¤Þ¤¹:
¥¢¥¯¥·¥ç¥ó ¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£
¥«¡¼¥Í¥ë¤ò
syslogd(8) ¥í¥°¤ª¤è¤Ó¥Ç¥Õ¥©¥ë¥È¤Î¥í¥°¤ÎÀ©¸Â¤ò¡¢ sysctl(8) ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò²ð¤·¤ÆưŪ¤ËÄ´À°¤Ç¤¤Þ¤¹¡£ proto ¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£
src ¤ª¤è¤Ó dst ¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£
<address/prefixlen> ¤Ï¼¡¤Î¤è¤¦¤Ë»ØÄê¤Ç¤¤Þ¤¹:
“not” ½¤¾þ»Ò¤ò¥¢¥É¥ì¥¹¤ÎÁ°¤Ë¤Ä¤±¤ë¤³¤È¤Ç¡¢¥Þ¥Ã¥Á¤Î°ÕÌ£¤òȿž¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ ¤³¤ì¤Ë¤è¤Ã¤Æ¡¢Â¾¤Î¤¹¤Ù¤Æ¤Î¥¢¥É¥ì¥¹¤¬Âå¤ï¤ê¤Ë¥Þ¥Ã¥Á¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢¥Ý¡¼¥ÈÈÖ¹æ¤ÎÁªÂò¤Ë¤Ï±Æ¶Á¤¢¤ê¤Þ¤»¤ó¡£ TCP ¤ª¤è¤Ó UDP ¥×¥í¥È¥³¥ë¤Ç¤Ï¡¢¥ª¥×¥·¥ç¥ó¤Ç ports ¤¬¼¡¤Î¤è¤¦¤Ë»ØÄê¤Ç¤¤Þ¤¹:
(/etc/services
¤è¤ê)
¥µ¡¼¥Ó¥¹Ì¾¤ò¡¢
¿ôÃͤˤè¤ë¥Ý¡¼¥ÈÈÖ¹æ¤ÎÂå¤ï¤ê¤Ë»ÈÍѤǤ¤Þ¤¹¡£
ÈϰϤϺǽé¤ÎÃͤȤ·¤Æ¤Î¤ß»ØÄê¤Ç¤¡¢¥Ý¡¼¥È¥ê¥¹¥ÈŤÏ
0 ¤Ç¤Ï¤Ê¤¤¥ª¥Õ¥»¥Ã¥È¤ò»ý¤Ä (¤¹¤Ê¤ï¤Á¡¢ºÇ½é¤Î¥Õ¥é¥°¥á¥ó¥È¤Ç¤Ï¤Ê¤¤) ¥Õ¥é¥°¥á¥ó¥È¥Ñ¥±¥Ã¥È¤Ï¡¢1 ¤Ä°Ê¾å¤Î¥Ý¡¼¥È¤¬Îóµó¤µ¤ì¤¿¥ë¡¼¥ë¤Ë¤Ï ÀäÂФ˥ޥåÁ¤·¤Þ¤»¤ó¡£ ¥Õ¥é¥°¥á¥ó¥È¥Ñ¥±¥Ã¥È¤Î¥Þ¥Ã¥Á¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤Ï frag ¥ª¥×¥·¥ç¥ó¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡£ ¥ë¡¼¥ë¤Ï¡¢¥Ñ¥±¥Ã¥È¤¬ÆþÎϤµ¤ì¤ë¤È¤¡¢¤ª¤è¤Ó½ÐÎϤµ¤ì¤ë¤È¤¡¢ ¤¢¤ë¤¤¤Ï¤½¤ÎξÊý¤È¤â¤Ç¤¢¤ë¤È¤¤ËŬÍѤµ¤ì¤Þ¤¹¡£ in ¥¡¼¥ï¡¼¥É¤Ï¡¢ÆþÎϥѥ±¥Ã¥È¤Ë¤Î¤ß¥ë¡¼¥ë¤¬¥Þ¥Ã¥Á¤·¤Ê¤¯¤Æ¤Ï ¤Ê¤é¤Ê¤¤¤³¤È¤ò¼¨¤¹¤â¤Î¤Ç¤¹¡£ out ¥¡¼¥ï¡¼¥É¤Ï¡¢½ÐÎϥѥ±¥Ã¥È¤Ë¤Î¤ß¥ë¡¼¥ë¤¬¥Þ¥Ã¥Á¤·¤Ê¤¯¤Æ¤Ï ¤Ê¤é¤Ê¤¤¤³¤È¤ò¼¨¤¹¤â¤Î¤Ç¤¹¡£ ¤¢¤ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ̤ë¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¤¿¤á¤Ë¤Ï¡¢ via ¤ò»ÈÍѤ·¤Æ¼¡¤Î¤è¤¦¤Ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
via ¥¡¼¥ï¡¼¥É¤ò»ÈÍѤ¹¤ë¤È¡¢³ºÅö¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï¾ï¤Ë ¥Á¥§¥Ã¥¯¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£ via ¤ÎÂå¤ï¤ê¤Ë recv ¤¢¤ë¤¤¤Ï xmit ¤ò»ÈÍѤ¹¤ë¤È¡¢ (¤½¤ì¤¾¤ì) ¼õ¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Þ¤¿¤ÏÁ÷¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤À¤±¤¬ ¥Á¥§¥Ã¥¯¤µ¤ì¤Þ¤¹¡£ ξÊý¤ò»ØÄꤹ¤ë¤³¤È¤Ç¡¢¼õ¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¡¢Á÷¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Î ξÊý¤È¤â¤Ë¥Ñ¥±¥Ã¥È¤ò¥Þ¥Ã¥Á¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ Î㤨¤Ð¡¢¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£ ip6fw add 100 deny ip from any to any
out recv ed0 xmit ed1 recv ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï¡¢ÆþÎϥѥ±¥Ã¥È¤¢¤ë¤¤¤Ï½ÐÎϥѥ±¥Ã¥È¤Î¤É¤Á¤é¤«¤Ç ¥Æ¥¹¥È¤µ¤ì¤Þ¤¹¡£¤³¤ì¤ËÂФ·¤Æ¡¢ xmit ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï¡¢½ÐÎϥѥ±¥Ã¥È¤Ç¤·¤«¥Æ¥¹¥È¤µ¤ì¤Þ¤»¤ó¡£ ¤½¤Î¤¿¤á¡¢ xmit ¤ò»ÈÍѤ¹¤ë¾ì¹ç¤Ï¤¤¤Ä¤Ç¤â out ¤¬É¬ÍפǤ¹ (¤½¤·¤Æ¡¢ in ¤ÏÉÔÀµ¤Ç¤¹)¡£ xmit ¤¢¤ë¤¤¤Ï recv ¤È°ì½ï¤Ë via ¤ò»ØÄꤹ¤ë¤Î¤ÏÉÔÀµ¤Ç¤¹¡£ ¥Ñ¥±¥Ã¥È¤Ë¤Ï¡¢¼õ¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¢¤ë¤¤¤ÏÁ÷¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬¤Ê¤¤ ¤«¤â¤·¤ì¤Þ¤»¤ó¡£¥í¡¼¥«¥ë¥Û¥¹¥È¤«¤éÁ÷¿®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤Ë¤Ï ¼õ¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬¤¢¤ê¤Þ¤»¤ó¡£¤½¤·¤Æ¡¢¥í¡¼¥«¥ë¥Û¥¹¥È¤Ø¸þ¤±¤Æ Á÷¿®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤Ë¤ÏÁ÷¿®¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬¤¢¤ê¤Þ¤»¤ó¡£ ÄɲäΠoptions ¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£
¥Á¥§¥Ã¥¯¥ê¥¹¥È¤³¤³¤Ë¤Ï¡¢¤¢¤Ê¤¿¤¬¥ë¡¼¥ë¤ò¥Ç¥¶¥¤¥ó¤¹¤ëºÝ¤Ë¹Íθ¤¹¤Ù¤ ½ÅÍפʥݥ¤¥ó¥È¤ò¤¤¤¯¤Ä¤«½Ò¤Ù¤Æ¤¢¤ê¤Þ¤¹¡£
ÈùÄ´À°¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤¬¾ï¤ËÇË´þ¤¹¤ë¥Ñ¥±¥Ã¥È¤¬ 1 ¼ïÎढ¤ê¤Þ¤¹¡£ ¤½¤ì¤Ï¡¢¥Õ¥é¥°¥á¥ó¥È¥ª¥Õ¥»¥Ã¥È 1 ¤ò»ý¤Ã¤¿ IPv6 ¥Õ¥é¥°¥á¥ó¥È¤Ç¤¹¡£ ¤³¤ì¤ÏÀµ¤·¤¤¥Ñ¥±¥Ã¥È¤Ç¤¹¤¬¡¢»ÈÍÑÊýË¡¤Ï 1 ¤Ä¤À¤±¤Ç¤¹¡£ ¤½¤ì¤Ï¡¢¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ÎÈ´¤±Æ»¤òõ¤½¤¦¤È¤¹¤ë¤³¤È¤Ç¤¹¡£¥Í¥Ã¥È¥ï¡¼¥¯±Û¤·¤Ë¥í¥°¥¤¥ó¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
kldload ip6fw && \ ip6fw add 32000 allow all from any to any ƱÍͤξõ¶·¤Ç¡¢Æ±¤¸¹Ô¤Ç ip6fw flush ¤ò¹Ô¤¦¤³¤È¤âÎɤ¯¤Ê¤¤¥¢¥¤¥Ç¥¢¤Ç¤¹¡£ ¥Ñ¥±¥Ã¥ÈÊÑ´¹¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£»ÈÍÑÎ㤳¤Î¥³¥Þ¥ó¥É¤Ï¡¢ hacker.evil.org ¤«¤é wolf.tambov.su ¤Î telnet ¥Ý¡¼¥È¤Ø¤Î TCP ¥Ñ¥±¥Ã¥È¤¹¤Ù¤Æ¤ò¡¢¤³¤Î¥Û¥¹¥È¤Ç ¥Õ¥©¥ï¡¼¥É¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£ip6fw add deny tcp from
hacker.evil.org to wolf.tambov.su 23 ¼¡¤Î¥³¥Þ¥ó¥É¤Ï¡¢hackers ¥Í¥Ã¥È¥ï¡¼¥¯Á´ÂΤ«¤é¼«¥Û¥¹¥È¤Ø¤ÎÀܳ¤ò ²¿¤Ç¤¢¤ì¶Ø»ß¤·¤Þ¤¹¡£ ip6fw add deny all from
fec0::123:45:67:0/112 to my.host.org ¤³¤ì¤Ï¡¢¥«¥¦¥ó¥ÈÃͤεϿ¤È¥¿¥¤¥à¥¹¥¿¥ó¥×¾ðÊó¤òɽ¼¨¤¹¤ë¤¿¤á¤Î ¥ê¥¹¥È¥³¥Þ¥ó¥É¤ÎÎɤ¤»ÈÍÑÎã¤Ç¤¹¡£ ip6fw -at l ¤¢¤ë¤¤¤Ï¡¢¥¿¥¤¥à¥¹¥¿¥ó¥×¤Ê¤·¤Î¡¢Ã»¤¤·Á¼°¤Î¤â¤Î¤Ï ip6fw -a l ´ØÏ¢¹àÌÜip(4), ipfirewall(4), protocols(5), services(5), reboot(8), sysctl(8), syslogd(8)¥Ð¥°Ãí°Õ !! Ãí°Õ !! Ãí°Õ !! Ãí°Õ !!¤³¤Î¥×¥í¥°¥é¥à¤Ï¡¢¤¢¤Ê¤¿¤Î¥³¥ó¥Ô¥å¡¼¥¿¤ò¤«¤Ê¤ê»È¤¨¤Ê¤¤¾õÂÖ ¤Ë¤·¤Æ¤·¤Þ¤¦²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£½é¤á¤Æ»ÈÍѤ¹¤ëºÝ¤Ë¤Ï¡¢ ¥³¥ó¥Ô¥å¡¼¥¿¤Î¥³¥ó¥½¡¼¥ë¤Çºî¶È¤·¤Æ¤¯¤À¤µ¤¤¡£¤Þ¤¿¡¢ Íý²ò¤·¤Æ¤¤¤Ê¤¤¤³¤È¤Ï²¿¤â ¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤ ¡£ ¥Á¥§¡¼¥ó¥¨¥ó¥È¥ê¤òÁàºî / Äɲ乤ëºÝ¤Ë¤Ï¡¢¥µ¡¼¥Ó¥¹Ì¾¤ª¤è¤Ó ¥×¥í¥È¥³¥ë̾¤Ï¼õ¤±ÉÕ¤±¤é¤ì¤Þ¤»¤ó¡£ ºî¼ÔUgen J. S. Antsilevich, Poul-Henning Kamp, Alex Nash, Archie Cobbs ¤Ç¤¹¡£API ¤Ï¡¢BSDI ÍÑ¤Ë Daniel Boulet ¤¬½ñ¤¤¤¿¥³¡¼¥É¤Ë´ð¤¤¤Æ¤¤¤Þ¤¹¡£ Îò»Ëip6fw
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤ÏºÇ½é¤Ë
FreeBSD 4.0
¤ÇÅо줷¤Þ¤·¤¿¡£
Visit the GSP FreeBSD Man Page Interface. |