Linux/CentOS ʹÓà iptables·âip¶Î
linuxÏÂʵÓÃiptables·âip¶ÎµÄһЩ³£¼ûÃüÁ
·âµ¥¸öIPµÄÃüÁîÊÇ£º
iptables -I INPUT -s 211.1.0.0 -j DROP
·âIP¶ÎµÄÃüÁîÊÇ£º
iptables -I INPUT -s 211.1.0.0/16 -j DROP
iptables -I INPUT -s 211.2.0.0/16 -j DROP
iptables -I INPUT -s 211.3.0.0/16 -j DROP
·âÕû¸ö¶ÎµÄÃüÁîÊÇ£º
iptables -I INPUT -s 211.0.0.0/8 -j DROP
·â¼¸¸ö¶ÎµÄÃüÁîÊÇ£º
iptables -I INPUT -s 61.37.80.0/24 -j DROP
iptables -I INPUT -s 61.37.81.0/24 -j DROP
ÏëÔÚ·þÎñÆ÷Æô¶¯×ÔÔËÐеĻ°ÓÐÈý¸ö·½·¨£º
1¡¢°ÑËü¼Óµ½/etc/rc.localÖÐ
2¡¢iptables-save >;/etc/sysconfig/iptables¿ÉÒÔ°ÑÄ㵱ǰµÄiptables¹æÔò·Åµ½/etc/sysconfig/iptablesÖУ¬ÏµÍ³Æô¶¯iptablesʱ×Ô¶¯Ö´ÐС£
3¡¢service iptables save Ò²¿ÉÒÔ°ÑÄ㵱ǰµÄiptables¹æÔò·Å/etc/sysconfig/iptablesÖУ¬ÏµÍ³Æô¶¯iptablesʱ×Ô¶¯Ö´ÐС£
ºóÁ½ÖÖ¸üºÃ´Ë£¬Ò»°ãiptables·þÎñ»áÔÚnetwork·þÎñ֮ǰÆôÀ´£¬¸ü°²È«¡£
½â·âµÄ»°£º
iptables -D INPUT -s IPµØÖ· -j REJECT
iptables -F È«ÇåµôÁË
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
make µÄÔËÐÐ
——————
Ò»°ãÀ´Ëµ£¬×î¼òµ¥µÄ¾ÍÊÇÖ±½ÓÔÚÃüÁîÐÐÏÂÊäÈëmakeÃüÁmakeÃüÁî»áÕÒµ±Ç°Ä¿Â¼µÄmakefileÀ´Ö´ÐУ¬Ò»Çж¼ÊÇ×Ô¶¯µÄ¡£µ«Ò²ÓÐʱÄãÒ²ÐíÖ»ÏëÈÃmakeÖرàÒëijЩÎļþ£¬¶ø²»ÊÇÕû¸ö¹¤³Ì£¬¶øÓÖÓеÄʱºòÄãÓм¸Ì×±àÒë¹æÔò£¬ÄãÏëÔÚ²»Í¬µÄʱºòʹÓò»Í¬µÄ±àÒë¹æÔò£¬µÈµÈ¡£±¾Õ½ھÍÊ ......
ÔÎÄ:http://article.phpfans.net/?do=Show&id=Mjc3NTkx
×÷Õß: crazytyt ʱ¼ä: 2009-08-27 13:29:00
ËùÓеÄÄں˴úÂ룬»ù±¾¶¼°üº¬ÁËlinux\compile.hÕâ¸öÎļþ£¬ËùÒÔËüÊÇ»ù´¡£¬´òËãÏÈ·ÖÎöÕâ¸öÎļþÀïµÄ´úÂë¿´¿´£¬ÓпÕÔÙ·ÖÎö·ÖÎöÆäËüµÄ´úÂë¡£
Ê×ÏÈÓ¡ÈëÑÛÁ±µÄÊǶÔ__ASSEMBLY__Õâ¸öºêµÄÅжϣ¬Õâ¸ö±äÁ¿Êµ¼ ......
Cannot set serial info: Invalid argument
ÉÏÃæµÄ±¨´í£¬¾¹ý·ÖÎösetserialÔ´ÂëÓëkernel 8250 driver£¬·¢ÏÖsetserialͨ¹ýioctl£¨TIOCSSERIAL£©½«new_serial½á¹¹Ì壨³ÐÔØÁË
serial info£©´«ÈëÄںˣ¬ÄÚºË8250Çý¶¯³ÌÐò½Óµ½serial infoºóÏÈget¾ÉµÄserial info£¬ÔÙsetд«ÈëµÄserial info¡£
Òò´ËÁª ......