{"id":6295,"date":"2020-11-17T23:06:47","date_gmt":"2020-11-17T15:06:47","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=6295"},"modified":"2021-07-24T10:56:54","modified_gmt":"2021-07-24T02:56:54","slug":"pfsense%e7%a6%bb%e7%ba%bf%e5%ae%89%e8%a3%85%e8%bd%af%e4%bb%b6%e5%8c%85","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=6295","title":{"rendered":"pfSense\u79bb\u7ebf\u5b89\u88c5\u8f6f\u4ef6\u5305"},"content":{"rendered":"<p style=\"text-align: justify;\">\u7531\u4e8epfSense\u8f6f\u4ef6\u4ed3\u5e93\u670d\u52a1\u5668\u4f4d\u4e8e\u56fd\u5916\uff0c\u56fd\u5185\u7528\u6237\u4f1a\u7ecf\u5e38\u9047\u5230\u5b89\u88c5\u56f0\u96be\u7684\u60c5\u51b5\u3002\u672c\u6587\u4ee5\u5b89\u88c5haproxy\u63d2\u4ef6\u4e3a\u4f8b\uff0c\u4ecb\u7ecd\u5728pfSense\u4e0a\u79bb\u7ebf\u5b89\u88c5\u8f6f\u4ef6\u5305\u7684\u65b9\u6cd5\u3002<\/p>\n<h1 style=\"text-align: justify;\">\u67e5\u8be2\u8f6f\u4ef6\u5305\u540d\u79f0\u53ca\u4f9d\u8d56\u5305<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230<strong>\u7cfb\u7edf&gt;\u63d2\u4ef6\u7ba1\u7406&gt;\u53ef\u7528\u63d2\u4ef6<\/strong>\uff0c\u627e\u5230haproxy\u63d2\u4ef6\u6240\u5728\u7684\u884c\uff0c\u67e5\u627e\u8f6f\u4ef6\u5305\u540d\u79f0\u548c\u4f9d\u8d56\u5305\u3002\u53ef\u4ee5\u770b\u5230\u63d2\u4ef6\u4f9d\u8d56\u5173\u7cfb\u7684\u5305\u4e3a haproxy18-1.8.25\uff0c\u70b9\u51fb0.60_6\uff0c\u5728\u8f6c\u5230\u7684github.com\u9875\u9762\u4e0a\u53ef\u4ee5\u627e\u5230\u8f6f\u4ef6\u5305\u7684\u540d\u79f0\u4e3apfSense-pkg-haproxy\uff0c\u5bf9\u5e94\u8f6f\u4ef6\u7248\u672c\uff0c\u5219\u8f6f\u4ef6\u5305\u5168\u540d\u4e3apfSense-pkg-haproxy-0.60_6.txz\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011254.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6296\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011254.png\" alt=\"\" width=\"1139\" height=\"139\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011254.png 1139w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011254-300x37.png 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011254-1024x125.png 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011254-768x94.png 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011254-500x61.png 500w\" sizes=\"auto, (max-width: 1139px) 100vw, 1139px\" \/><\/a><\/p>\n<h1>\u4e0b\u8f7d\u8f6f\u4ef6\u5305\u53ca\u4f9d\u8d56\u5305<\/h1>\n<p>\u5728pfSense\u7684<a href=\"https:\/\/files01.netgate.com\/\">\u8f6f\u4ef6\u4ed3\u5e93<\/a>\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684\u8f6f\u4ef6\u5305\uff0c\u4e00\u4e9b\u5171\u7528\u7684\u4f9d\u8d56\u5305\u53ef\u4ee5\u5728FreeBSD\u7684<a href=\"https:\/\/freebsd.pkgs.org\/\">\u8f6f\u4ef6\u4ed3\u5e93<\/a>\u627e\u5230\u3002\u63d2\u4ef6\u4e00\u822c\u5305\u542b\u4e00\u4e2a\u6216\u591a\u4e2a\u4f9d\u8d56\u6587\u4ef6\u3001\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u3001\u4e00\u4e2a\u7cfb\u7edf\u5b89\u88c5\u6587\u4ef6\u3002\u4f9d\u8d56\u5305\u5728\u6267\u884c\u5e94\u7528\u7a0b\u5e8f\u5b89\u88c5\u65f6\u6709\u63d0\u793a\uff0c\u53ef\u4ee5\u6839\u636e\u63d0\u793a\u627e\u5230\u6587\u4ef6\u3002\u6211\u4eec\u8981\u4e0b\u8f7d\u7684\u6587\u4ef6\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>lua53-5.3.5_3.txz\uff08\u4f9d\u8d56\u5305\uff09<\/li>\n<li>haproxy18-1.8.25.txz\uff08\u5e94\u7528\u7a0b\u5e8f\uff09<\/li>\n<li>pfSense-pkg-haproxy-0.60_6.txz\uff08\u7cfb\u7edf\u6587\u4ef6\uff09<\/li>\n<\/ol>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-221608.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6297\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-221608.jpg\" alt=\"\" width=\"709\" height=\"458\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-221608.jpg 709w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-221608-300x194.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-221608-464x300.jpg 464w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/a><\/p>\n<h1>\u4e0a\u4f20\u8f6f\u4ef6\u5305<\/h1>\n<p>\u5bfc\u822a\u5230<strong>\u7cfb\u7edf\u8bca\u65ad&gt;SHELL\u547d\u4ee4<\/strong>\uff0c\u5c06\u4e0b\u8f7d\u7684\u4e09\u4e2a\u8f6f\u4ef6\u5305\u4e0a\u4f20\u5230pfSense\u9632\u706b\u5899\u6839\u76ee\u5f55\u4e0b\u7684tmp\u5b50\u76ee\u5f55<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011255.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6299\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011255.jpg\" alt=\"\" width=\"1133\" height=\"537\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011255.jpg 1133w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011255-300x142.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011255-1024x485.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011255-768x364.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/JXGS-2011255-500x237.jpg 500w\" sizes=\"auto, (max-width: 1133px) 100vw, 1133px\" \/><\/a><\/p>\n<h1>\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f<\/h1>\n<p>\u4f7f\u7528Xshell\u7b49\u8f6f\u4ef6\uff0c\u8fdb\u5165pfSense\u7684shell\u73af\u5883\uff0c\u8fdb\u5165\u4e0a\u4f20\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>cd \/tmp<\/pre>\n<p>\u6309\u7167\u5148\u5b89\u88c5\u4f9d\u8d56\u5305\uff0c\u518d\u5b89\u88c5\u5e94\u7528\u7a0b\u5e8f\uff0c\u6700\u540e\u5b89\u88c5pfSense\u7cfb\u7edf\u5305\u7684\u987a\u5e8f\u8fdb\u884c\u5b89\u88c5\uff0c\u4f9d\u6b21\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>pkg add lua53-5.3.5_3.txz\r\npkg add haproxy18-1.8.25.txz\r\npkg add pfSense-pkg-haproxy-0.60_6.txz<\/pre>\n<p>\u9047\u5230\u4e0b\u9762\u8fd9\u79cd\u63d0\u793a\uff0c\u4e00\u5f8b\u70b9&#8221;y&#8221;<\/p>\n<pre class=\"p1\"><span class=\"s1\">Proceed with this action? [y\/N]:\u00a0<\/span><\/pre>\n<p>\u628a\u4f9d\u8d56\u5305\u548c\u5e94\u7528\u7a0b\u5e8f\u90fd\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<h1>\u8fd0\u884c\u8f6f\u4ef6\u5305<\/h1>\n<p>\u5bfc\u822a\u5230<strong>\u7cfb\u7edf\u670d\u52a1&gt;Haproxy<\/strong>\uff0c\u8bbe\u7f6e\u63d2\u4ef6\u7684\u5404\u79cd\u9009\u9879\u3002<\/p>\n<p><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-222036.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6300\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-222036.jpg\" alt=\"\" width=\"1138\" height=\"537\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-222036.jpg 1138w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-222036-300x142.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-222036-1024x483.jpg 1024w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-222036-768x362.jpg 768w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2020\/11\/Jietu20201117-222036-500x236.jpg 500w\" sizes=\"auto, (max-width: 1138px) 100vw, 1138px\" \/><\/a><\/p>\n<h1>\u5220\u9664\u8f6f\u4ef6\u5305<\/h1>\n<p>\u901a\u8fc7\u8be5\u65b9\u5f0f\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\uff0c\u5728<strong>\u7cfb\u7edf&gt;\u63d2\u4ef6\u7ba1\u7406&gt;\u5df2\u5b89\u88c5\u63d2\u4ef6<\/strong>\u5904\u65e0\u6cd5\u67e5\u8be2\u7684\uff0c\u65e0\u6cd5\u5728\u9875\u9762\u5378\u8f7d\u3002\u53ea\u80fd\u5728shell\u73af\u5883\u4e0b\uff0c\u4f7f\u7528\u547d\u4ee4\u624b\u52a8\u5220\u9664\uff1a<\/p>\n<pre>pkg remove pfSense-pkg-haproxy<\/pre>\n<p>\u547d\u4ee4\u6267\u884c\u540e\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre>[2.4.5-RELEASE][admin@JXGS.201]\/tmp: pkg remove pfSense-pkg-haproxy\r\nChecking integrity... done (0 conflicting)\r\nDeinstallation has been requested for the following 1 packages (of 0 packages in the universe):\r\n\r\nInstalled packages to be REMOVED:\r\npfSense-pkg-haproxy: 0.60_6\r\n\r\nNumber of packages to be removed: 1\r\n\r\nProceed with deinstalling packages? [y\/N]: y\r\n[1\/1] Deinstalling pfSense-pkg-haproxy-0.60_6...\r\nRemoving haproxy components...\r\nMenu items... done.\r\nServices... done.\r\nLoading package instructions...\r\nDeinstall commands... done.\r\nSyslog entries... done.\r\n[1\/1] Deleting files for pfSense-pkg-haproxy-0.60_6: 100%\r\nRemoving haproxy components...\r\nSyslog entries... done.\r\nConfiguration... done.<\/pre>\n<p>\u76f8\u5173\u6587\u7ae0\uff1a<a href=\"https:\/\/blog.pfchina.org\/?p=6340\">OPNsense\u79bb\u7ebf\u5b89\u88c5\u63d2\u4ef6<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8epfSense\u8f6f\u4ef6\u4ed3\u5e93\u670d\u52a1\u5668\u4f4d\u4e8e\u56fd\u5916\uff0c\u56fd\u5185\u7528\u6237\u4f1a\u7ecf\u5e38\u9047\u5230\u5b89\u88c5\u56f0\u96be\u7684\u60c5\u51b5\u3002\u672c\u6587 &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=6295\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[318],"class_list":["post-6295","post","type-post","status-publish","format-standard","hentry","category-pfsense","tag-318"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/6295","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=6295"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/6295\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}