Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
Óà -NX Ö¸¶¨Á´
iptables -P chain target[options]
Ö¸¶¨Á´µÄĬÈÏÄ¿±ê
iptables -E old-chain-name new-chain-name
-E ¾ÉµÄÁ´Ãû еÄÁ´Ãû
ÓÃеÄÁ´ÃûÈ¡´ú¾ÉµÄÁ´Ãû
˵Ã÷
Iptalbes ÊÇÓÃÀ´ÉèÖá¢Î¬»¤ºÍ¼ì²éLinuxÄں˵ÄIP°ü¹ýÂ˹æÔòµÄ¡£
¿ÉÒÔ
¶¨Ò岻ͬµÄ±í£¬Ã¿¸ö±í¶¼
°üº¬¼¸¸öÄÚ²¿µÄÁ´£¬Ò²ÄÜ°üº¬Óû§¶¨ÒåµÄÁ´¡£Ã¿¸öÁ´¶¼ÊÇÒ»¸ö¹æÔòÁÐ±í£¬¶Ô¶ÔÓ¦µÄ°ü½øÐÐÆ¥Å䣺ÿÌõ¹æÔòÖ¸¶¨Ó¦µ±ÈçºÎ´¦ÀíÓëÖ®ÏàÆ¥ÅäµÄ°ü¡£Õâ±»³Æ×÷
'target'£¨Ä¿±ê£©£¬Ò²¿ÉÒÔ
Ìø
Ïòͬһ¸ö±íÄÚµÄÓû§¶¨ÒåµÄÁ´¡£
TARGETS
·À
»ðǽµÄ¹æÔòÖ¸¶¨Ëù¼ì²é°üµÄÌØÕ÷£¬ºÍÄ¿±ê¡£Èç¹û°ü²»Æ¥Å䣬½«ËÍÍù¸ÃÁ´ÖÐÏÂÒ»Ìõ¹æÔò¼ì²é£»Èç¹ûÆ¥Åä,ÄÇôÏÂÒ»Ìõ¹æÔòÓÉÄ¿±êֵȷ¶¨.¸ÃÄ¿±êÖµ¿ÉÒÔÊÇÓû§¶¨ÒåµÄ
Á´Ãû,»òÊÇij¸öרÓÃÖµ,ÈçACCEPT[ͨ¹ý], DROP[ɾ³ý], QUEUE[ÅŶÓ], »òÕß RETURN[·µ»Ø]¡£
ACCEPT
±íʾÈÃÕâ¸ö°üͨ¹ý¡£DROP±íʾ½«Õâ¸ö°ü¶ªÆú¡£QUEUE±íʾ°ÑÕâ¸ö°ü´«µÝµ½Óû§¿Õ¼ä¡£RETURN±íʾֹͣÕâÌõÁ´µÄÆ¥Å䣬µ½Ç°Ò»¸öÁ´µÄ¹æÔòÖØпªÊ¼¡£Èç
¹ûµ½´ïÁËÒ»¸öÄÚ½¨µÄÁ´(µÄÄ©¶Ë)£¬»òÕßÓöµ½ÄÚ½¨Á´µÄ¹æÔòÊÇRETURN£¬°üµÄÃüÔ˽«ÓÉÁ´×¼ÔòÖ¸¶¨µÄÄ¿±ê¾ö¶¨¡£
TABLES
µ±Ç°ÓÐÈý¸ö±í£¨Äĸö±íÊǵ±Ç°±íÈ¡¾öÓÚÄÚºËÅäÖÃÑ¡ÏîºÍµ±Ç°Ä£¿é)¡£
-t table
Õâ ¸öÑ¡ÏîÖ¸¶¨ÃüÁîÒª²Ù×÷µÄÆ¥Åä°üµÄ±í¡£Èç¹ûÄں˱»ÅäÖÃΪ×Ô¶¯¼ÓÔØÄ£¿é£¬ÕâʱÈôÄ£¿éûÓмÓÔØ£¬(ϵͳ)½«³¢ÊÔ(Ϊ¸Ã±í)¼ÓÔØÊʺϵÄÄ£¿é¡£ÕâЩ±íÈçÏ£º
filter,ÕâÊÇĬÈÏµÄ±í£¬°üº¬ÁËÄÚ½¨µÄÁ´INPUT£¨´¦Àí½øÈëµÄ°ü£©¡¢FORWORD£¨´¦Àíͨ¹ýµÄ°ü£©ºÍOUTPUT£¨´¦Àí±¾µØÉú³ÉµÄ°ü£©¡£nat,
Õâ¸ö±í±»²éѯʱ±íʾÓöµ½Á˲úÉúеÄÁ¬½ÓµÄ°ü,ÓÉÈý¸öÄÚ½¨µÄÁ´¹¹³É£ºPREROUTING
(Ð޸ĵ½À´µÄ°ü)¡¢OUTPUT£¨Ð޸ķÓÉ֮ǰ±¾µØµÄ°ü£©¡¢POSTROUTING£¨ÐÞ¸Ä×¼±¸³öÈ¥µÄ°ü£©¡£mangle
Õâ¸ö±íÓÃÀ´¶ÔÖ¸¶¨µÄ°ü½øÐÐÐ޸ġ£ËüÓÐÁ½¸öÄÚ½¨¹æÔò£ºPREROUTING£¨Ð޸ķÓÉ֮ǰ½øÈëµÄ°ü£©ºÍOUTPUT£¨Ð޸ķÓÉ֮ǰ±¾µØµÄ°ü£©¡£
OPTIONS
ÕâЩ¿É±»iptablesʶ±ðµÄÑ¡Ïî¿ÉÒÔÇø·Ö²»Í¬µÄÖÖÀà¡£
COMMANDS
ÕâЩѡÏîÖ¸¶¨Ö´ÐÐÃ÷È·µÄ¶¯×÷£ºÈôÖ¸ÁîÐÐÏÂûÓÐÆäËû¹æ¶¨,¸ÃÐÐÖ»ÄÜÖ¸¶¨Ò»¸öÑ¡Ïî.¶ÔÓÚ³¤¸ñʽµÄÃüÁîºÍÑ¡ÏîÃû,Ëù


Ïà¹ØÎĵµ£º

ÿÈձؿ´µÄlinuxÍøÕ¾ºÍ²©¿ÍÊÕ¼¯

http://www.linuxjournal.com/
Linux Kernel Newbies
Ò»·½ÊʺÏÄں˿ª·¢³õ¼¶ºÚ¿ÍµÄÀÖÍÁ——¸ÃÍøÕ¾¼¸ºõÄܹ»Âú×ãËùÓÐÄ¥µ¶»ô»ôÏòÄں˵ÄÐÂÊÖµÄÐèÇó¡£
http://kernelnewbies.org/
http://vger.kernel.org/
Á˽âÈçºÎʹÓÃlinuxÄÚºËÁбí
http://www.tux.org/lkml/
Linux
ÐÂÎÅÖÜ¿¯£¬ËüÓÐÒ»¸öרÇø±¨µÀÓйØÄں˵ÄÖØÒª ......

linuxÅäÖÃÍøÂçÁ¬½Ó

linuxÍøÂçÁ¬½ÓÅäÖÃͨ¹ýÃüÁîifconfigÀ´Íê³É£¬Ò²¾ÍÊÇinterface configuration¡£
£¡£¡ÓÑÇéÌáÐÑ£ºÏÂÃæÓõÄÃüÁîÓÐЩÐèÒªrootȨÏÞ
²é¿´ÍøÂçÁ¬½Ó
    ifconfig
    eth0      Link encap:ÒÔÌ«Íø  Ó²¼þµØÖ· 00:e0:61:02:af:ba 
    &n ......

linux redhat4+oracle10g

ÔÚÐéÄâ»úRed Hat Enterprise Linux 4 update 4Öа²×°oracle 10.2.0.1
1)²é¿´ÏµÍ³ÄÚ´æ
[root@linux4 ~]# grep MemTotal /proc/meminfo
2)²é¿´½»»»Çø´óС
[root@linux4 ~]# grep SwapTotal /proc/meminfo
3)
²é¿´/tmpĿ¼´óС
[root@linux4 ~]# df -m /tmp
4)²é¿´²Ù×÷ϵͳ°æ±¾
[root@linux4 ~]# cat /etc/issue
5)¼ ......

Linux 0.11°æ ½ø³Ìµ÷¶ÈÎı¾½â˵

    0.11ºËÖнø³ÌµÄµ÷¶ÈÖ÷ÒªÓÉËĸö²¿·ÖÊý×é³É£ºµ÷¶È³õʼ»¯¡¢µ÷¶È¡¢Ë¯Ãß¡¢»½ÐÑ¡£
     Ò»¡¢µ÷¶È³õʼ»¯:sched_init()
     ÎÒÃÇÖªµÀÔÚÄں˳õʼ»¯£¨main£©¹ý³ÌÖУ¬Òª½«ÈÎÎñ0ת»»µ½Óû§Ì¬ÏÂÖ´ÐУ¬Ò²¾ÍÊǽ¨Á¢LinuxÖеĵÚÒ»¸öÓû§³ÌÐò¡£¼ÈÈ»ÈÎÎñ0֮ǰÊÇÔÚÄÚºË̬ÏÂÖ´Ðе ......

Linux 0.11 ϵͳµ÷ÓÃÔ­Àí


    Ò»¡¢¸ÅÊö
    ÏµÍ³µ÷ÓÃÊÇÒ»¸öÈíÖжϣ¬ÖжϺÅÊÇ0x80£¬ËüÊÇÉϲãÓ¦ÓóÌÐòÓëLinuxϵͳÄں˽øÐн»»¥Í¨ÐŵÄΨһ½Ó¿Ú¡£Í¨¹ýint 0x80£¬¾Í¿ÉʹÓÃÄÚºË×ÊÔ´¡£²»¹ý£¬Í¨³£Ó¦ÓóÌÐò¶¼ÊÇʹÓþßÓбê×¼½Ó¿Ú¶¨ÒåµÄCº¯Êý¿â¼ä½ÓµÄʹÓÃÄں˵Äϵͳµ÷Ó㬼´Ó¦ÓóÌÐòµ÷ÓÃCº¯Êý¿âÖеĺ¯Êý£¬Cº¯Êý¿âÖÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ