{"id":897,"date":"2018-10-22T11:32:08","date_gmt":"2018-10-22T03:32:08","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=897"},"modified":"2025-01-01T15:48:47","modified_gmt":"2025-01-01T07:48:47","slug":"opnsense%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c-%e5%86%85%e8%81%94%e5%85%a5%e4%be%b5%e9%98%b2%e5%be%a1%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=897","title":{"rendered":"OPNsense\u7528\u6237\u624b\u518c-\u5165\u4fb5\u9632\u5fa1"},"content":{"rendered":"<h1>\u5185\u8054\u5165\u4fb5\u9632\u5fa1\u7cfb\u7edf<\/h1>\n<p>OPNsense\u7684\u5185\u8054IPS\u7cfb\u7edf\u57fa\u4e8eSuricata\uff0c\u5229\u7528Netmap\u63d0\u9ad8\u6027\u80fd\u5e76\u6700\u5927\u9650\u5ea6\u5730\u964d\u4f4eCPU\u5229\u7528\u7387\u3002\u8fd9\u79cd\u6df1\u5ea6\u6570\u636e\u5305\u68c0\u6d4b\u7cfb\u7edf\u975e\u5e38\u5f3a\u5927\uff0c\u53ef\u7528\u5728\u7ebf\u7f13\u89e3\u5b89\u5168\u5a01\u80c1\u3002<\/p>\n<div id=\"emerging-threats-etopen-ruleset\">\n<h2>\u65b0\u5174\u5a01\u80c1ETOpen\u89c4\u5219\u96c6<\/h2>\n<p>ETOpen Ruleset\u662f\u4e00\u4e2a\u51fa\u8272\u7684\u53cd\u6076\u610f\u8f6f\u4ef6IDS \/ IPS\u89c4\u5219\u96c6\uff0c\u5b83\u4f7f\u6210\u672c\u6709\u9650\u7684\u7528\u6237\u80fd\u591f\u589e\u5f3a\u5176\u73b0\u6709\u7684\u57fa\u4e8e\u7f51\u7edc\u7684\u6076\u610f\u8f6f\u4ef6\u68c0\u6d4b\u80fd\u529b\u3002ETOpen\u89c4\u5219\u96c6\u4e0d\u662f\u5b8c\u6574\u7684\u8986\u76d6\u89c4\u5219\u96c6\uff0c\u5bf9\u4e8e\u8bb8\u591a\u53d7\u76d1\u7ba1\u7684\u73af\u5883\u53ef\u80fd\u4e0d\u591f\uff0c\u4e0d\u5e94\u5c06\u5176\u7528\u4f5c\u72ec\u7acb\u7684\u89c4\u5219\u96c6\u3002<\/p>\n<p>OPNsense\u96c6\u6210\u4e86\u5bf9ET Open\u89c4\u5219\u7684\u652f\u6301\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\u548c\u6307\u5357\uff0c\u8bf7\u53c2\u9605<a href=\"http:\/\/doc.emergingthreats.net\/bin\/view\/Main\/EmergingFAQ\">\u8fd9\u91cc<\/a>\uff0c\u5bf9\u4e8e\u89c4\u5219\u6587\u6863\uff0c\u8bf7\u53c2\u9605<a href=\"http:\/\/doc.emergingthreats.net\/\">\u8fd9\u91cc<\/a>\u3002<\/p>\n<\/div>\n<div id=\"abuse-ch\">\n<h2>Abuse.ch<\/h2>\n<p>Abuse.ch\u63d0\u4f9b\u4e86\u51e0\u4e2a\u9ed1\u540d\u5355\uff0c\u7528\u4e8e\u9632\u8303\u6b3a\u8bc8\u6027\u7f51\u7edc\u3002OPNsense\u652f\u6301\u4ee5\u4e0b\u9ed1\u540d\u5355\uff1a<\/p>\n<div id=\"ssl-blacklist\">\n<h3>SSL\u9ed1\u540d\u5355<\/h3>\n<p>SSL\u9ed1\u540d\u5355\uff08SSLBL\uff09\u662f\u7531abuse.ch\u7ef4\u62a4\u7684\u9879\u76ee\u3002\u76ee\u7684\u662f\u63d0\u4f9babuse.ch\u6807\u8bc6\u7684\u201c\u574f\u201dSSL\u8bc1\u4e66\u5217\u8868\uff0c\u8fd9\u4e9b\u5217\u8868\u4e0e\u6076\u610f\u8f6f\u4ef6\u6216\u50f5\u5c38\u7f51\u7edc\u6d3b\u52a8\u76f8\u5173\u8054\u3002SSLBL\u4f9d\u8d56\u4e8e\u6076\u610fSSL\u8bc1\u4e66\u7684SHA1\u6307\u7eb9\uff0c\u5e76\u63d0\u4f9b\u5404\u79cd\u9ed1\u540d\u5355\u3002<\/p>\n<p>\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605<a href=\"https:\/\/sslbl.abuse.ch\/\">\u8fd9\u91cc<\/a>\u3002<\/p>\n<\/div>\n<div id=\"feodo-tracker\">\n<h3>Feodo Tracker<\/h3>\n<p>Feodo\uff08\u4e5f\u79f0\u4e3aCridex\u6216Bugat\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u5b9e\u65bd\u7535\u5b50\u94f6\u884c\u6b3a\u8bc8\u5e76\u4ece\u53d7\u5bb3\u8005\u8ba1\u7b97\u673a\u7a83\u53d6\u654f\u611f\u4fe1\u606f\u7684\u7279\u6d1b\u4f0a\u6728\u9a6c\uff0c\u4f8b\u5982\u4fe1\u7528\u5361\u8be6\u7ec6\u4fe1\u606f\u6216\u51ed\u636e\u3002\u76ee\u524d\uff0cFeodo Tracker\u6b63\u5728\u8ddf\u8e2aFeodo\u7684\u56db\u4e2a\u7248\u672c\uff0c\u5b83\u4eec\u88abFeodo Tracker\u6807\u8bb0\u4e3a\u7248\u672cA\uff0c\u7248\u672cB\uff0c\u7248\u672cC\u548c\u7248\u672cD\uff1a<\/p>\n<ul>\n<li>\u7248\u672cA\u00a0\u6258\u7ba1\u5728\u7aef\u53e38080\u4e0a\u8fd0\u884cnginx\u4ee3\u7406\u7684\u53d7\u611f\u67d3Web\u670d\u52a1\u5668\u4e0aTCP\u5c06\u6240\u6709\u50f5\u5c38\u7f51\u7edc\u6d41\u91cf\u8f6c\u53d1\u5230\u7b2c2\u5c42\u4ee3\u7406\u8282\u70b9\u3002Botnet\u6d41\u91cf\u901a\u5e38\u76f4\u63a5\u5728\u7aef\u53e38080 TCP\u4e0a\u547d\u4e2d\u8fd9\u4e9b\u4e3b\u673a\uff0c\u800c\u4e0d\u4f7f\u7528\u57df\u540d\u3002<\/li>\n<li>\u7248\u672cB\u00a0\u6258\u7ba1\u5728\u7531\u7f51\u7edc\u72af\u7f6a\u5206\u5b50\u79df\u7528\u548c\u8fd0\u8425\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u4e13\u95e8\u7528\u4e8e\u6258\u7ba1Feodo\u50f5\u5c38\u7f51\u7edc\u63a7\u5236\u5668\u3002\u901a\u5e38\u5229\u7528ccTLD .ru\u4e2d\u7684\u57df\u540d\u3002\u50f5\u5c38\u7f51\u7edc\u6d41\u91cf\u901a\u5e38\u4f7f\u7528\u7aef\u53e380 TCP\u8bbf\u95ee\u8fd9\u4e9b\u57df\u540d\u3002<\/li>\n<li>\u7248\u672cC\u00a0Feodo\u7684\u7ee7\u627f\u8005\uff0c\u5b8c\u5168\u4e0d\u540c\u7684\u4ee3\u7801\u3002\u6258\u7ba1\u5728\u4e0e\u7248\u672cA\u76f8\u540c\u7684\u50f5\u5c38\u7f51\u7edc\u57fa\u7840\u67b6\u6784\u4e0a\uff08\u53d7\u635f\u7684Web\u670d\u52a1\u5668\uff0c\u7aef\u53e38080 TCP\u4e0a\u7684nginx\u6216\u7aef\u53e37779 TCP\uff0c\u6ca1\u6709\u57df\u540d\uff09\uff0c\u4f46\u4f7f\u7528\u4e0d\u540c\u7684URL\u7ed3\u6784\u3002\u6b64\u7248\u672c\u4e5f\u79f0\u4e3aGeodo\u548cEmotet\u3002<\/li>\n<li>D\u7248\u00a0Cridex\u7684\u7ee7\u627f\u4eba\u3002\u6b64\u7248\u672c\u4e5f\u79f0\u4e3aDridex<\/li>\n<\/ul>\n<p>\u8be6\u7ec6\u60c5\u51b5\u8bf7\u70b9\u51fb<a href=\"https:\/\/feodotracker.abuse.ch\/\">\u8fd9\u91cc<\/a>\u3002<\/p>\n<\/div>\n<div id=\"urlhaus-list\">\n<h3>URLHaus List<\/h3>\n<p>\u4eceOPNsense18.1.7\u5f00\u59cb\uff0c\u6211\u4eec\u4eceabuse.ch\u4e2d\u751f\u6210\u4e86URLHaus\u5217\u8868\uff0c\u8be5\u5217\u8868\u6536\u96c6\u4e86\u6cc4\u9732\u6076\u610f\u8f6f\u4ef6\u7684\u53d7\u611f\u67d3\u7ad9\u70b9\u3002<\/p>\n<p>\u8be6\u7ec6\u60c5\u51b5\u8bf7\u70b9\u51fb<a href=\"https:\/\/urlhaus.abuse.ch\/\">\u8fd9\u91cc<\/a>\u3002<\/p>\n<\/div>\n<\/div>\n<div id=\"maxmind-geolite2-country\">\n<h2>Maxmind GeoLite2 Country<\/h2>\n<p>GeoLite2\u6570\u636e\u5e93\u662f\u514d\u8d39\u7684IP\u5730\u7406\u5b9a\u4f4d\u6570\u636e\u5e93\uff0c\u4e0eMaxMind\u7684GeoIP2\u6570\u636e\u5e93\u76f8\u5f53\uff0c\u4f46\u4e0d\u592a\u51c6\u786e\u3002GeoLite2\u6570\u636e\u5e93\u5728\u6bcf\u4e2a\u6708\u7684\u7b2c\u4e00\u4e2a\u661f\u671f\u4e8c\u66f4\u65b0\u3002<\/p>\n<p>\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605<a href=\"http:\/\/dev.maxmind.com\/geoip\/geoip2\/geolite2\/\">\u8fd9\u91cc<\/a>\u3002<\/p>\n<p>OPNsense\u96c6\u6210\u4e86GeoLite2 Country\u6570\u636e\u5e93\u652f\u6301\u3002<\/p>\n<\/div>\n<div id=\"finger-printing\">\n<h2>\u6307\u7eb9<\/h2>\n<p>OPNsense\u5305\u542b\u4e00\u4e2a\u975e\u5e38\u5b8c\u5584\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u6839\u636eSSL\u6307\u7eb9\u963b\u6b62\u53d7\u4fdd\u62a4\u7684\u7ad9\u70b9\u3002<\/p>\n<\/div>\n<div id=\"app-detection-rules\">\n<h2>\u5e94\u7528\u7a0b\u5e8f\u68c0\u6d4b\u89c4\u5219<\/h2>\n<p>\u4eceOPNsense18.1.11\u5f00\u59cb\uff0c\u6211\u4eec\u5f15\u5165\u4e86\u5e94\u7528\u7a0b\u5e8f\u68c0\u6d4b\u89c4\u5219\u96c6\u3002\u7531\u4e8e\u5927\u7ea680\uff05\u7684\u6d41\u91cf\u662fWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u56e0\u6b64\u8fd9\u4e9b\u89c4\u5219\u4e13\u6ce8\u4e8e\u963b\u6b62Web\u670d\u52a1\u53ca\u5176\u80cc\u540e\u7684URL\u3002<\/p>\n<p>\u5982\u679c\u60a8\u60f3\u53c2\u4e0e\u89c4\u5219\u96c6\uff0c\u8bf7\u8bbf\u95ee<a href=\"https:\/\/github.com\/opnsense\/rules\">\u8fd9\u91cc<\/a>\u3002<\/p>\n<p>\u4e0b\u9762\u6211\u4eec\u6765\u63cf\u8ff0\u8be6\u7ec6\u64cd\u4f5c\u8fc7\u7a0b\u3002<\/p>\n<\/div>\n<div id=\"how-to-s\">\n<h1>IPS SSLBlacklists &amp; Feodo Tracker<\/h1>\n<p>\u8fd9\u4e00\u8282\u4ecb\u7ecd\u5982\u4f55\u8bbe\u7f6eIPS\u7cfb\u7edf\u6765\u963b\u6b62<a href=\"https:\/\/www.abuse.ch\/\">abuse.ch<\/a>\u00a0SSL Blacklists\u548cFeodo Tracker\u00a0\u4e0a\u5217\u51fa\u7684SSL\u8bc1\u4e66\u3002<\/p>\n<p>Feodo\uff08\u4e5f\u79f0\u4e3aCridex\u6216Bugat\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u72af\u4e0b\u7535\u5b50\u94f6\u884c\u6b3a\u8bc8\u5e76\u4ece\u53d7\u5bb3\u8005\u7684\u8ba1\u7b97\u673a\u7a83\u53d6\u654f\u611f\u4fe1\u606f\u7684\u6728\u9a6c\uff0c\u4f8b\u5982\u4fe1\u7528\u5361\u8be6\u7ec6\u4fe1\u606f\u6216\u51ed\u8bc1\u3002\u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605<a href=\"https:\/\/feodotracker.abuse.ch\/\">https:\/\/feodotracker.abuse.ch<\/a><\/p>\n<div id=\"prerequisites\">\n<h2>\u5148\u51b3\u6761\u4ef6<\/h2>\n<ul>\n<li>\u9996\u5148\u5148OPNsense\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u3002\u5bfc\u822a\u5230System-&gt;Firmware: Fetch updates\u8fdb\u884c\u5347\u7ea7\u3002<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/firmware.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/firmware.png\" alt=\"\" width=\"582\" height=\"170\" \/><\/a><\/p>\n<ul>\n<li>\u5185\u5b58\u5fc5\u987b\u8fbe\u52302 G\uff0c\u5269\u4f59\u786c\u76d8\u7a7a\u95f4\u5fc5\u987b&gt; 10GB\u3002<\/li>\n<li>\u5728\u63a5\u53e3\u8bbe\u7f6e\u4e0b\u7981\u7528\u6240\u6709Hardware Offloading(\u786c\u4ef6\u5378\u8f7d)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/disable_offloading.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/disable_offloading.png\" alt=\"..\/..\/_images\/disable_offloading.png\" width=\"601\" height=\"123\" \/><\/a><\/p>\n<div>\n<p>\u5e94\u7528\u66f4\u6539\u540e\uff0c\u60a8\u9700\u8981\u91cd\u65b0\u542f\u52a8OPNsense\uff0c\u5426\u5219\u53ef\u80fd\u65e0\u6cd5\u5b8c\u5168\u7981\u7528\u5378\u8f7d\u5e76\u4e14IPS\u6a21\u5f0f\u5c06\u65e0\u6cd5\u8fd0\u884c\u3002<\/p>\n<\/div>\n<\/div>\n<div id=\"setup-intrusion-detection-prevention\">\n<h2>\u8bbe\u7f6e\u5165\u4fb5\u68c0\u6d4b\u548c\u9884\u9632<\/h2>\n<p>\u8981\u542f\u7528IDS \/ IPS\uff0c\u53ea\u9700\u8f6c\u5230Services-&gt;Intrusion Detection\uff08\u670d\u52a1 &#8211; &gt;\u5165\u4fb5\u68c0\u6d4b\uff09\uff0c\u7136\u540e\u9009\u62e9\u201c\u00a0\u542f\u7528\u201d\u548c\u201cIPS\u201d\u6a21\u5f0f\u3002\u786e\u4fdd\u4e3a\u8fd0\u884c\u7684\u5165\u4fb5\u68c0\u6d4b\u7cfb\u7edf\u9009\u62e9\u4e86\u6b63\u786e\u7684\u63a5\u53e3\u3002\u5728\u672c\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4f7f\u7528WAN\u63a5\u53e3\uff0c\u56e0\u4e3a\u8fd9\u662f\u60a8\u4e0e\u516c\u5171Internet\u7684\u8fde\u63a5\u63a5\u53e3\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/idps.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/idps.png\" alt=\"..\/..\/_images\/idps.png\" width=\"694\" height=\"258\" \/><\/a><\/p>\n<\/div>\n<div id=\"apply-configuration\">\n<h2>\u5e94\u7528\u914d\u7f6e<\/h2>\n<p>\u5355\u51fb\u8868\u5355\u5e95\u90e8\u7684\u201cApply \uff08\u5e94\u7528\uff09\u201d\u6309\u94ae\u5e94\u7528\u914d\u7f6e\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/applybtn.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/applybtn.png\" alt=\"..\/..\/_images\/applybtn.png\" width=\"64\" height=\"37\" \/><\/a><\/p>\n<\/div>\n<div id=\"fetch-rule-sets\">\n<h2>\u83b7\u53d6\u89c4\u5219\u96c6<\/h2>\n<p>\u5728\u672c\u793a\u4f8b\uff0c\u6211\u4eec\u53ea\u4f1a\u83b7\u53d6abuse.ch SSL\u548cDodo Tracker\u89c4\u5219\u96c6\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u9009\u62e9\u6bcf\u4e2a\u540e\u542f\u7528\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/rulesets_enable.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/rulesets_enable.png\" alt=\"..\/..\/_images\/rulesets_enable.png\" width=\"1074\" height=\"217\" \/><\/a>\u8981\u4e0b\u8f7d\u89c4\u5219\u96c6\uff0c\u8bf7\u6309\u201c\u00a0\u4e0b\u8f7d\u548c\u66f4\u65b0\u89c4\u5219\u201d\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/downloadbtn.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/downloadbtn.png\" alt=\"..\/..\/_images\/downloadbtn.png\" width=\"185\" height=\"37\" \/><\/a><\/p>\n<\/div>\n<div id=\"change-default-behavior\">\n<h2>\u66f4\u6539\u9ed8\u8ba4\u884c\u4e3a<\/h2>\n<p>\u73b0\u5728\u5355\u51fb\u6bcf\u4e2a\u89c4\u5219\u540e\u9762\u7684\u4fe1\u606f\u6309\u94ae\uff0c\u5e76\u5c06\u8f93\u5165\u8fc7\u6ee4\u5668\u4ecenone\u66f4\u6539\u4e3adrop actions\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/changefilter.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/changefilter.png\" alt=\"..\/..\/_images\/changefilter.png\" width=\"945\" height=\"304\" \/><\/a><\/p>\n<p>\u5b8c\u6210\u540e\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/rulesdrop.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/rulesdrop.png\" alt=\"..\/..\/_images\/rulesdrop.png\" width=\"944\" height=\"191\" \/><\/a><\/p>\n<\/div>\n<div id=\"apply-fraud-drop-actions\">\n<h2>\u5e94\u7528\u6b3a\u8bc8\u884c\u4e3a<\/h2>\n<p>\u73b0\u5728\u518d\u6b21\u6309\u201c\u00a0\u4e0b\u8f7d\u548c\u66f4\u65b0\u89c4\u5219\u201d\u4ee5\u66f4\u6539\u8981\u653e\u5f03\u7684\u884c\u4e3a\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/downloadbtn.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/downloadbtn.png\" alt=\"..\/..\/_images\/downloadbtn.png\" width=\"185\" height=\"37\" \/><\/a><\/p>\n<\/div>\n<div id=\"keep-up-to-date\">\n<h2>\u4fdd\u6301\u6700\u65b0<\/h2>\n<p>\u73b0\u5728\u5b89\u6392\u5b9a\u671f\u66f4\u65b0\u4ee5\u4f7f\u60a8\u7684\u670d\u52a1\u5668\u4fdd\u6301\u6700\u65b0\u72b6\u6001\u3002<\/p>\n<p>\u70b9\u51fb\u65e5\u7a0b\u5b89\u6392\uff0c\u5c06\u51fa\u73b0\u4e00\u4e2a\u5f39\u51fa\u7a97\u53e3\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/schedule.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/schedule.png\" alt=\"..\/..\/_images\/schedule.png\" width=\"945\" height=\"605\" \/><\/a><\/p>\n<p>\u9009\u62e9\u5df2\u542f\u7528\u5e76\u9009\u62e9\u65f6\u95f4\u3002\u4f8b\u5982\uff0c\u5b83\u8bbe\u7f6e\u4e3a\u6bcf\u592911:12\u3002\u9009\u62e9\u4fdd\u5b58\u66f4\u6539\u5e76\u7b49\u5f85\uff0c\u76f4\u5230\u8fd4\u56de\u5230IDS\u9875\u9762\u3002<\/p>\n<\/div>\n<div id=\"done\">\n<h2>\u5b8c\u6210<\/h2>\n<p>\u60a8\u7684\u7cfb\u7edf\u73b0\u5df2\u5b8c\u5168\u8bbe\u7f6e\u4e3a\u4f7f\u7528Feodo tracking\u5217\u8868\uff0c\u5e76\u5c06\u963b\u6b62\u5df2\u77e5\u7684\u6b3a\u8bc8\u6027SSL\u8bc1\u4e66\u4ee5\u53ca\u6570\u636e\u7f51\u7edc\u9493\u9c7c\u7684\u5c1d\u8bd5\u3002<\/p>\n<\/div>\n<div id=\"sample-alert\">\n<h2>\u8b66\u62a5\u793a\u4f8b<\/h2>\n<p>\u4e0b\u662f\u5df2\u963b\u6b62\u7684\u5b9e\u9645\u8b66\u62a5\u7684\u4f8b\u5b50\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/alerts.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/alerts.jpg\" alt=\"..\/..\/_images\/alerts.jpg\" width=\"1259\" height=\"177\" \/><\/a><\/p>\n<\/div>\n<h1>IPS GeoIP\u963b\u6b62<\/h1>\n<p>\u672c\u8282\u4ecb\u7ecd\u5982\u4f55\u8bbe\u7f6eIPS\u7cfb\u7edf\u4ee5\u6839\u636e\u5176\u5730\u7406\u4f4d\u7f6e\u963b\u6b62ip\u3002\u901a\u8fc7\u96c6\u6210Maxmind GeoLite2 Country\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002\u66f4\u591a\u4fe1\u606f\u53ef\u4ee5\u5728<a href=\"http:\/\/dev.maxmind.com\/geoip\/geoip2\/geolite2\/\">\u8fd9\u91cc<\/a>\u627e\u5230\u3002<\/p>\n<div id=\"prerequisites\">\n<h2>\u5148\u51b3\u6761\u4ef6<\/h2>\n<div>\n<p>\u8ddf\u4e0a\u8282IPS SSLBlacklists &amp; Feodo Tracker\u7684\u60c5\u51b5\u4e00\u81f4\u3002<\/p>\n<\/div>\n<p>\u8981\u5f00\u59cb\uff0c\u8bf7\u8f6c\u5230\u201c\u00a0\u670d\u52a1\u201d &#8211; &gt;\u201c\u5165\u4fb5\u68c0\u6d4b\u201d<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ids_menu.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ids_menu.png\" alt=\"ids_menu\" width=\"241\" height=\"35\" \/><\/a><\/p>\n<\/div>\n<div id=\"user-defined\">\n<h2>\u7528\u6237\u5b9a\u4e49<\/h2>\n<p>\u9009\u62e9\u7528\u6237\u5b9a\u4e49\u9009\u9879\u5361\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ids_tabs_user.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ids_tabs_user.png\" alt=\"ids_tabs_user\" width=\"401\" height=\"41\" \/><\/a><\/p>\n<\/div>\n<div id=\"create-a-new-rule\">\n<h2>\u521b\u5efa\u65b0\u89c4\u5219<\/h2>\n<p>\u9009\u62e9<img decoding=\"async\" src=\"https:\/\/docs.opnsense.org\/_images\/ids_tabs_user_add.png\" alt=\"\u52a0\" data-pagespeed-url-hash=\"2204935522\" \/>\u6dfb\u52a0\u65b0\u89c4\u5219\u3002<\/p>\n<p>\u9009\u62e9\u56fd\u5bb6\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_rule_add_geoip.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_rule_add_geoip.png\" alt=\"..\/..\/_images\/ips_rule_add_geoip.png\" width=\"899\" height=\"501\" \/><\/a>\u6211\u4eec\u9009\u62e9\u4e86\u8377\u5170\uff08\u975e\uff09\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u670d\u52a1\u5668\u9700\u8981\u5728\u8377\u5170\u5883\u5185\u53ef\u4ee5\u8bbf\u95ee\uff0c\u8fd9\u5c06\u5728\u4e24\u4e2a\u65b9\u5411\u4e0a\u4e22\u5f03\u6240\u6709\u5176\u4ed6\u6d41\u91cf\u3002<\/p>\n<p>\u9009\u62e9\u64cd\u4f5c\uff08Alert or Drop\uff09\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_action.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_action.png\" alt=\"..\/..\/_images\/ips_action.png\" width=\"563\" height=\"123\" \/><\/a><\/p>\n<p>\u6dfb\u52a0\u4e00\u4e2a\u8bf4\u660e\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_description_country.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_description_country.png\" alt=\"..\/..\/_images\/ips_description_country.png\" width=\"567\" height=\"41\" \/><\/a><\/p>\n<p>\u7136\u540e\u5355\u51fb\u4fdd\u5b58\u66f4\u6539<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_save.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_save.png\" alt=\"\u4fdd\u5b58\" width=\"115\" height=\"41\" \/><\/a><\/p>\n<\/div>\n<div id=\"enable-intrusion-detection-prevention\">\n<h2>\u542f\u7528\u5165\u4fb5\u68c0\u6d4b\u548c\u9884\u9632<\/h2>\n<p>\u8981\u542f\u7528IDS \/ IPS\uff0c\u53ea\u9700\u8f6c\u5230\u201c\u670d\u52a1\u201d &#8211; &gt;\u201c\u5165\u4fb5\u68c0\u6d4b\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u00a0\u542f\u7528\u201d\u548c\u201cIPS\u201d\u6a21\u5f0f\u3002\u786e\u4fdd\u4e3a\u8fd0\u884c\u7684\u5165\u4fb5\u68c0\u6d4b\u7cfb\u7edf\u9009\u62e9\u4e86\u6b63\u786e\u7684\u63a5\u53e3\u3002\u5bf9\u4e8e\u672c\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u4f7f\u7528WAN\u63a5\u53e3\uff0c\u56e0\u4e3a\u662f\u60a8\u4e0e\u516c\u5171Internet\u7684\u8fde\u63a5\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/xidps.png.pagespeed.ic_.MIr3KSm0h5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/xidps.png.pagespeed.ic_.MIr3KSm0h5.png\" alt=\"\" width=\"694\" height=\"258\" \/><\/a><\/p>\n<\/div>\n<div id=\"apply-configuration\">\n<h2>\u5e94\u7528\u914d\u7f6e<\/h2>\n<p>\u5982\u679c\u8fd9\u662f\u60a8\u6dfb\u52a0\u7684\u7b2c\u4e00\u4e2aGeoIP\u89c4\u5219\uff0c\u5219\u9700\u8981\u4e0b\u8f7d\u548c\u66f4\u65b0\u89c4\u5219<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/downloadbtn.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/downloadbtn.png\" alt=\"..\/..\/_images\/downloadbtn.png\" width=\"185\" height=\"37\" \/><\/a><\/p>\n<p>\u7136\u540e\u6309\u8868\u5355\u5e95\u90e8\u7684\u201c \u5e94\u7528\u201d\u6309\u94ae\u5e94\u7528\u914d\u7f6e\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/applybtn.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/applybtn.png\" alt=\"..\/..\/_images\/applybtn.png\" width=\"64\" height=\"37\" \/><\/a><\/p>\n<\/div>\n<div id=\"sample-alert\">\n<h2>\u8b66\u62a5\u793a\u4f8b<\/h2>\n<p>\u4e0b\u56fe\u662f\u8b66\u62a5\u6d88\u606f\u793a\u4f8b\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/ips_geoip_alert.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/ips_geoip_alert.png\" alt=\"\" width=\"1138\" height=\"28\" \/><\/a><\/p>\n<\/div>\n<div>\n<h1>IPS\u963b\u6b62SSL\u8bc1\u4e66<\/h1>\n<p>\u672c\u8282\u4ecb\u7ecd\u5982\u4f55\u8bbe\u7f6eIPS\u7cfb\u7edf\u4ee5\u6839\u636eSHA1\u6307\u7eb9\u963b\u6b62ssl\u8bc1\u4e66\u3002<\/p>\n<div id=\"prerequisites\">\n<h2>\u5148\u51b3\u6761\u4ef6<\/h2>\n<ul>\n<li>\u4e0e\u524d\u9762\u7684\u7ae0\u8282\u4e00\u6837<\/li>\n<\/ul>\n<p>\u8981\u5f00\u59cb\uff0c\u8bf7\u8f6c\u5230\u201c\u00a0\u670d\u52a1\u201d &#8211; &gt;\u201c\u5165\u4fb5\u68c0\u6d4b\u201d<\/p>\n<\/div>\n<div id=\"user-defined\">\n<h2>\u7528\u6237\u5b9a\u4e49<\/h2>\n<p>\u9009\u62e9\u7528\u6237\u5b9a\u4e49\u9009\u9879\u5361\u3002<\/p>\n<\/div>\n<div id=\"create-a-new-rule\">\n<h2>\u521b\u5efa\u65b0\u89c4\u5219<\/h2>\n<p>\u9009\u62e9\u6dfb\u52a0\u65b0\u89c4\u5219\u3002<\/p>\n<div id=\"get-fingerprint-of-website\">\n<h3>\u83b7\u53d6\u7f51\u7ad9\u6307\u7eb9<\/h3>\n<p>\u627e\u51fa\u7f51\u7ad9\u7684SSL\u6307\u7eb9\u76f8\u5bf9\u5bb9\u6613\u3002\u4e3a\u4e86\u6f14\u793a\uff0c\u6211\u4eec\u5c06\u963b\u6b62Facebook\u5e76\u4f7f\u7528Firefox\u6765\u786e\u5b9a\u6307\u7eb9\u3002<\/p>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\u5e76\u5728\u52a0\u8f7d\u65f6\u70b9\u51fb\u5730\u5740\u65c1\u8fb9\u7684\u9501\u5b9a\uff0c\u8f6c\u5230<a href=\"https:\/\/facebook.com\/\">https:\/\/facebook.com<\/a>\u00a0:<\/p>\n<p>\u73b0\u5728\u4f60\u4f1a\u770b\u5230\u7c7b\u4f3c\u7684\u4e1c\u897f\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/facebook_click.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/facebook_click.png\" alt=\"..\/..\/_images\/facebook_click.png\" width=\"324\" height=\"52\" \/><\/a><\/p>\n<p>\u5355\u51fb\u7bad\u5934\uff08&gt;\uff09\u7136\u540e\u9009\u62e9\u66f4\u591a\u4fe1\u606f\u00a0\u73b0\u5728\u6253\u5f00\u8bc1\u4e66\u8be6\u7ec6\u4fe1\u606f\uff0c\u60a8\u5c06\u770b\u5230\u5982\u4e0b\u6240\u793a\u7684\u5185\u5bb9\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/certificate.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/certificate.png\" alt=\"..\/..\/_images\/certificate.png\" width=\"617\" height=\"617\" \/><\/a><\/p>\n<p>\u590d\u5236SHA1\u8bc1\u4e66\u6307\u7eb9<\/p>\n<p>(A0:4E:AF:B3:48:C2:6B:15:A8:C1:AA:87:A3:33:CA:A3:CD:EE:C9:C9).<\/p>\n<p>\u5c06\u5176\u7c98\u8d34\u5230\u65b0\u89c4\u5219\u4e2d\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_rule_details.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_rule_details.png\" alt=\"..\/..\/_images\/ips_rule_details.png\" width=\"900\" height=\"501\" \/><\/a><\/p>\n<p>\u9009\u62e9\u64cd\u4f5c\uff08Alert or Drop\uff09\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/ips_action.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/ips_action.png\" alt=\"\" width=\"563\" height=\"123\" \/><\/a><\/p>\n<p>\u6dfb\u52a0\u4e00\u4e2a\u8bf4\u660e\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_description.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_description.png\" alt=\"..\/..\/_images\/ips_description.png\" width=\"579\" height=\"44\" \/><\/a><\/p>\n<p>\u7136\u540e\u5355\u51fb\u4fdd\u5b58\u66f4\u6539<\/p>\n<\/div>\n<\/div>\n<div id=\"enable-intrusion-detection-prevention\">\n<h2>\u542f\u7528\u5165\u4fb5\u68c0\u6d4b\u548c\u9884\u9632<\/h2>\n<p>\u8981\u542f\u7528IDS \/ IPS\uff0c\u53ea\u9700\u8f6c\u5230\u201c\u670d\u52a1\u201d &#8211; &gt;\u201c\u5165\u4fb5\u68c0\u6d4b\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u00a0\u542f\u7528\u201d\u548c\u201cIPS\u201d\u6a21\u5f0f\u3002\u786e\u4fdd\u4e3a\u8fd0\u884c\u7684\u5165\u4fb5\u68c0\u6d4b\u7cfb\u7edf\u9009\u62e9\u4e86\u6b63\u786e\u7684\u63a5\u53e3\u3002\u5bf9\u4e8e\u8fd9\u4e2a\u793a\u4f8b\uff0c\u6211\u4eec\u5c06\u4f7f\u7528WAN\u63a5\u53e3\uff0c\u56e0\u4e3a\u8fd9\u662f\u60a8\u4e0e\u516c\u5171Internet\u7684\u8fde\u63a5\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/xidps.png.pagespeed.ic_.MIr3KSm0h5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2018\/10\/xidps.png.pagespeed.ic_.MIr3KSm0h5.png\" alt=\"\" width=\"694\" height=\"258\" \/><\/a><\/p>\n<\/div>\n<div id=\"apply-configuration\">\n<h2>\u5e94\u7528\u914d\u7f6e<\/h2>\n<p>\u9996\u5148\u6309\u8868\u5355\u5e95\u90e8\u7684\u201c\u00a0\u5e94\u7528\u201d\u6309\u94ae\u5e94\u7528\u914d\u7f6e\u3002<\/p>\n<\/div>\n<div id=\"clear-browser-cache-and-test\">\n<h2>\u6e05\u9664\u6d4f\u89c8\u5668\u7f13\u5b58\u548c\u6d4b\u8bd5<\/h2>\n<p>\u7531\u4e8e\u60a8\u7684\u6d4f\u89c8\u5668\u5df2\u7f13\u5b58ssl\u8bc1\u4e66\uff0c\u56e0\u6b64\u60a8\u9700\u8981\u5148\u6e05\u9664\u7f13\u5b58\u3002\u4e4b\u540e\uff0c\u60a8\u53ef\u4ee5\u6d4b\u8bd5\u5e76\u5728\u8b66\u62a5\u4e2d\u770b\u5230\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_facebook_alert.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2019\/11\/ips_facebook_alert.png\" alt=\"..\/..\/_images\/ips_facebook_alert.png\" width=\"1158\" height=\"63\" \/><\/a><\/p>\n<div>\n<p>\u6ce8\u610f\uff1a\u5982\u679c\u6d4f\u89c8\u5668\u7f13\u5b58\u4e86\u8bc1\u4e66\uff0c\u5219\u4e0d\u4f1a\u8fdb\u884cSSL\u8bc1\u4e66\u4ea4\u6362\uff0c\u4e5f\u4e0d\u4f1a\u963b\u6b62\u8be5\u7f51\u7ad9\u3002<\/p>\n<p>\u539f\u6587<a href=\"https:\/\/docs.huihoo.com\/m0n0wall\/opnsense\/manual\/how-tos\/ips-geoip.html\">\u5730\u5740<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5185\u8054\u5165\u4fb5\u9632\u5fa1\u7cfb\u7edf OPNsense\u7684\u5185\u8054IPS\u7cfb\u7edf\u57fa\u4e8eSuricata\uff0c\u5229\u7528Ne &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=897\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[188],"class_list":["post-897","post","type-post","status-publish","format-standard","hentry","category-opnsense","tag-ids"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=897"}],"version-history":[{"count":4,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/897\/revisions"}],"predecessor-version":[{"id":14054,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/897\/revisions\/14054"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}