{"id":349,"date":"2026-06-07T13:19:52","date_gmt":"2026-06-07T05:19:52","guid":{"rendered":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/"},"modified":"2026-06-07T13:19:52","modified_gmt":"2026-06-07T05:19:52","slug":"kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan","status":"publish","type":"post","link":"https:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/","title":{"rendered":"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218"},"content":{"rendered":"<h2>\u7cfb\u5217\u6587\u7ae0\u56de\u987e<\/h2>\n<p>\u8fd9\u662f\u300c\u5f00\u6e90VPN\u5b9e\u6218\u300d\u7cfb\u5217\u7684\u7b2c\u4e94\u7bc7\uff08\u5b8c\u7ed3\u7bc7\uff09\u3002\u524d\u56db\u7bc7\u6211\u4eec\u4ecb\u7ecd\u4e86 Pritunl \u7684\u5b89\u88c5\u90e8\u7f72\u3001\u5b89\u5168\u52a0\u56fa\u3001SSO \u96c6\u6210\u548c\u591a\u4e91\u4e92\u8054\uff0c\u672c\u7bc7\u5c06\u6df1\u5165\u8bb2\u89e3\u751f\u4ea7\u73af\u5883\u7684\u9ad8\u53ef\u7528\u67b6\u6784\u548c\u8fd0\u7ef4\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<p><strong>\u7cfb\u5217\u6587\u7ae0<\/strong>\uff1a<\/p>\n<ul>\n<li>\u7b2c\u4e00\u7bc7\uff1aPritunl \u5165\u95e8\u4e0e\u5b89\u88c5\u914d\u7f6e<\/li>\n<li>\u7b2c\u4e8c\u7bc7\uff1a\u5b89\u5168\u529f\u80fd\u8be6\u89e3<\/li>\n<li>\u7b2c\u4e09\u7bc7\uff1aSSO\u5355\u70b9\u767b\u5f55\u4f01\u4e1a\u96c6\u6210<\/li>\n<li>\u7b2c\u56db\u7bc7\uff1a\u591a\u4e91\u7ad9\u70b9\u5230\u7ad9\u70b9\u4e92\u8054<\/li>\n<li><strong>\u7b2c\u4e94\u7bc7\uff1a\u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218<\/strong>\uff08\u672c\u6587\uff09<\/li>\n<\/ul>\n<h2>\u9ad8\u53ef\u7528\u67b6\u6784<\/h2>\n<h3>\u5355\u673a\u67b6\u6784\uff08\u5f00\u53d1\/\u6d4b\u8bd5\uff09<\/h3>\n<p><code>`<\/code><\/p>\n<p><!--more--><\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/p>\n<p>\u2502   Pritunl \u670d\u52a1\u5668  \u2502<\/p>\n<p>\u2502   + MongoDB     \u2502<\/p>\n<p>\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p><code>`<\/code><\/p>\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a\u5f00\u53d1\u6d4b\u8bd5\u3001\u5c0f\u578b\u56e2\u961f\uff08&lt; 50 \u7528\u6237\uff09<\/p>\n<h3>\u53cc\u673a\u9ad8\u53ef\u7528\u67b6\u6784<\/h3>\n<p><code>`<\/code><\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510     \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/p>\n<p>\u2502  Pritunl \u4e3b\u673a 1  \u2502     \u2502  Pritunl \u4e3b\u673a 2  \u2502<\/p>\n<p>\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518     \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>         \u2502                       \u2502<\/p>\n<p>         \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>                     \u2502<\/p>\n<p>            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25bc\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/p>\n<p>            \u2502  MongoDB \u526f\u672c\u96c6  \u2502<\/p>\n<p>            \u2502  (Atlas\/\u81ea\u6258\u7ba1)  \u2502<\/p>\n<p>            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p><code>`<\/code><\/p>\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a\u4e2d\u5c0f\u4f01\u4e1a\uff0850-500 \u7528\u6237\uff09<\/p>\n<h3>\u591a\u673a\u96c6\u7fa4\u67b6\u6784<\/h3>\n<p><code>`<\/code><\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/p>\n<p>\u2502Pritunl \u2502 \u2502Pritunl \u2502 \u2502Pritunl \u2502<\/p>\n<p>\u2502 \u8282\u70b9 1  \u2502 \u2502 \u8282\u70b9 2  \u2502 \u2502 \u8282\u70b9 3  \u2502<\/p>\n<p>\u2514\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>    \u2502          \u2502          \u2502<\/p>\n<p>    \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>               \u2502<\/p>\n<p>      \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25bc\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/p>\n<p>      \u2502  MongoDB \u526f\u672c\u96c6  \u2502<\/p>\n<p>      \u2502  (3 \u8282\u70b9)        \u2502<\/p>\n<p>      \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p><code>`<\/code><\/p>\n<p><strong>\u9002\u7528\u573a\u666f<\/strong>\uff1a\u5927\u578b\u4f01\u4e1a\uff08500+ \u7528\u6237\uff09<\/p>\n<h2>MongoDB \u9ad8\u53ef\u7528\u914d\u7f6e<\/h2>\n<h3>\u65b9\u6848 1\uff1aMongoDB Atlas\uff08\u63a8\u8350\uff09<\/h3>\n<p>MongoDB Atlas \u662f\u5b98\u65b9\u6258\u7ba1\u670d\u52a1\uff0c\u63d0\u4f9b\uff1a<\/p>\n<ul>\n<li>\u81ea\u52a8\u5907\u4efd<\/li>\n<li>\u81ea\u52a8\u6545\u969c\u8f6c\u79fb<\/li>\n<li>\u5185\u7f6e\u76d1\u63a7<\/li>\n<li>\u514d\u8d39\u5c42\u7ea7\u53ef\u7528<\/li>\n<\/ul>\n<p><strong>\u914d\u7f6e\u6b65\u9aa4<\/strong>\uff1a<\/p>\n<ol>\n<li>\u6ce8\u518c <a href=\"https:\/\/www.mongodb.com\/cloud\/atlas\">MongoDB Atlas<\/a><\/li>\n<li>\u521b\u5efa\u96c6\u7fa4<\/li>\n<li>\u914d\u7f6e\u7f51\u7edc\u8bbf\u95ee\uff08\u767d\u540d\u5355\uff09<\/li>\n<li>\u521b\u5efa\u6570\u636e\u5e93\u7528\u6237<\/li>\n<li>\u83b7\u53d6\u8fde\u63a5\u5b57\u7b26\u4e32<\/li>\n<\/ol>\n<p><strong>Pritunl \u914d\u7f6e<\/strong>\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u8bbe\u7f6e MongoDB URI<\/p>\n<p>sudo pritunl set app.mongodb_uri &#8220;mongodb+srv:\/\/user:password@cluster.mongodb.net\/pritunl?retryWrites=true&amp;w=majority&#8221;<\/p>\n<p># \u91cd\u542f\u670d\u52a1<\/p>\n<p>sudo systemctl restart pritunl<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u65b9\u6848 2\uff1a\u81ea\u6258\u7ba1\u526f\u672c\u96c6<\/h3>\n<h4>\u90e8\u7f72 3 \u8282\u70b9\u526f\u672c\u96c6<\/h4>\n<p><strong>\u8282\u70b9 1\uff08Primary\uff09<\/strong>\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u7f16\u8f91 \/etc\/mongod.conf<\/p>\n<p>replication:<\/p>\n<p>  replSetName: &#8220;pritunl-rs&#8221;<\/p>\n<p>net:<\/p>\n<p>  bindIp: 0.0.0.0<\/p>\n<p>  port: 27017<\/p>\n<p>security:<\/p>\n<p>  authorization: enabled<\/p>\n<p><code>`<\/code><\/p>\n<p><strong>\u8282\u70b9 2\u30013\uff08Secondary\uff09<\/strong>\uff1a<\/p>\n<p>\u914d\u7f6e\u76f8\u540c\uff0c\u4f46 bindIp \u4e3a\u5404\u81ea IP\u3002<\/p>\n<h4>\u521d\u59cb\u5316\u526f\u672c\u96c6<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u8fde\u63a5\u5230 Primary \u8282\u70b9<\/p>\n<p>mongo &#8211;host <\/p>\n<p># \u521d\u59cb\u5316\u526f\u672c\u96c6<\/p>\n<p>rs.initiate({<\/p>\n<p>  _id: &#8220;pritunl-rs&#8221;,<\/p>\n<p>  members: [<\/p>\n<p>    { _id: 0, host: &#8220;:27017&#8221;, priority: 2 },<\/p>\n<p>    { _id: 1, host: &#8220;:27017&#8221;, priority: 1 },<\/p>\n<p>    { _id: 2, host: &#8220;:27017&#8221;, priority: 1 }<\/p>\n<p>  ]<\/p>\n<p>})<\/p>\n<p><code>`<\/code><\/p>\n<h4>\u521b\u5efa\u7ba1\u7406\u5458\u7528\u6237<\/h4>\n<p><code>`<\/code>javascript<\/p>\n<p>use admin;<\/p>\n<p>db.createUser({<\/p>\n<p>  user: &#8220;admin&#8221;,<\/p>\n<p>  pwd: &#8220;secure_password&#8221;,<\/p>\n<p>  roles: [{ role: &#8220;root&#8221;, db: &#8220;admin&#8221; }]<\/p>\n<p>});<\/p>\n<p>use pritunl;<\/p>\n<p>db.createUser({<\/p>\n<p>  user: &#8220;pritunl&#8221;,<\/p>\n<p>  pwd: &#8220;secure_password&#8221;,<\/p>\n<p>  roles: [{ role: &#8220;dbOwner&#8221;, db: &#8220;pritunl&#8221; }]<\/p>\n<p>});<\/p>\n<p><code>`<\/code><\/p>\n<h4>\u914d\u7f6e Pritunl<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># MongoDB URI\uff08\u526f\u672c\u96c6\uff09<\/p>\n<p>sudo pritunl set app.mongodb_uri &#8220;mongodb:\/\/pritunl:password@node1:27017,node2:27017,node3:27017\/pritunl?replicaSet=pritunl-rs&amp;authSource=admin&#8221;<\/p>\n<p>sudo systemctl restart pritunl<\/p>\n<p><code>`<\/code><\/p>\n<h2>Pritunl \u96c6\u7fa4\u90e8\u7f72<\/h2>\n<h3>\u6b65\u9aa4 1\uff1a\u6fc0\u6d3b\u8bb8\u53ef\u8bc1<\/h3>\n<p>\u5728\u7b2c\u4e00\u4e2a\u8282\u70b9\u4e0a\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u6fc0\u6d3b\u4f01\u4e1a\u8bb8\u53ef\u8bc1\uff08\u5982\u9700\u8981\uff09<\/p>\n<p>sudo pritunl set app.license_key &#8220;YOUR_LICENSE_KEY&#8221;<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u6b65\u9aa4 2\uff1a\u914d\u7f6e\u6570\u636e\u5e93<\/h3>\n<p>\u5728\u6bcf\u4e2a\u8282\u70b9\u4e0a\u914d\u7f6e\u76f8\u540c\u7684 MongoDB URI\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u914d\u7f6e MongoDB URI<\/p>\n<p>sudo pritunl set app.mongodb_uri &#8220;mongodb:\/\/&#8230;&#8221;<\/p>\n<p># \u6216\u901a\u8fc7 Web \u754c\u9762\u914d\u7f6e<\/p>\n<p>sudo pritunl setup-key<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u6b65\u9aa4 3\uff1a\u9a8c\u8bc1\u96c6\u7fa4<\/h3>\n<ol>\n<li>\u767b\u5f55\u4efb\u610f\u8282\u70b9\u7684 Web \u63a7\u5236\u53f0<\/li>\n<li>\u5bfc\u822a\u5230 Hosts \u9875\u9762<\/li>\n<li>\u6240\u6709\u8282\u70b9\u5e94\u663e\u793a\u4e3a\u5728\u7ebf<\/li>\n<\/ol>\n<h3>\u6b65\u9aa4 4\uff1a\u914d\u7f6e VPN \u670d\u52a1\u5668<\/h3>\n<ol>\n<li>\u521b\u5efa VPN \u670d\u52a1\u5668<\/li>\n<li>\u5c06\u591a\u4e2a\u4e3b\u673a\u9644\u52a0\u5230\u670d\u52a1\u5668<\/li>\n<li>\u542f\u52a8\u670d\u52a1\u5668<\/li>\n<\/ol>\n<p><strong>\u6545\u969c\u8f6c\u79fb\u884c\u4e3a<\/strong>\uff1a<\/p>\n<ul>\n<li>\u4e3b\u673a\u6545\u969c\u65f6\u81ea\u52a8\u5207\u6362\u5230\u5176\u4ed6\u4e3b\u673a<\/li>\n<li>\u6545\u969c\u8f6c\u79fb\u65f6\u95f4\u7ea6 3-30 \u79d2<\/li>\n<li>\u5ba2\u6237\u7aef\u81ea\u52a8\u91cd\u8fde<\/li>\n<\/ul>\n<h2>\u76d1\u63a7\u4e0e\u544a\u8b66<\/h2>\n<h3>InfluxDB + Grafana \u76d1\u63a7<\/h3>\n<h4>1. \u5b89\u88c5 InfluxDB<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u6dfb\u52a0\u4ed3\u5e93<\/p>\n<p>wget -q https:\/\/repos.influxdata.com\/influxdata-archive_compat.key<\/p>\n<p>echo &#8216;393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key&#8217; | sha256sum -c &amp;&amp; cat influxdata-archive_compat.key | gpg &#8211;dearmor | sudo tee \/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg &gt; \/dev\/null<\/p>\n<p>echo &#8216;deb [signed-by=\/etc\/apt\/trusted.gpg.d\/influxdata-archive_compat.gpg] https:\/\/repos.influxdata.com\/debian stable main&#8217; | sudo tee \/etc\/apt\/sources.list.d\/influxdata.list<\/p>\n<p># \u5b89\u88c5<\/p>\n<p>sudo apt update<\/p>\n<p>sudo apt -y install influxdb<\/p>\n<p># \u542f\u52a8<\/p>\n<p>sudo systemctl enable influxdb<\/p>\n<p>sudo systemctl start influxdb<\/p>\n<p><code>`<\/code><\/p>\n<h4>2. \u521b\u5efa\u6570\u636e\u5e93<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u8fde\u63a5\u5230 InfluxDB<\/p>\n<p>influx<\/p>\n<p># \u521b\u5efa\u6570\u636e\u5e93<\/p>\n<p>CREATE DATABASE pritunl<\/p>\n<p>CREATE RETENTION POLICY &#8220;30d&#8221; ON &#8220;pritunl&#8221; DURATION 30d REPLICATION 1 DEFAULT<\/p>\n<p><code>`<\/code><\/p>\n<h4>3. \u914d\u7f6e Pritunl<\/h4>\n<p>\u5728 Web \u63a7\u5236\u53f0\u8bbe\u7f6e\u4e2d\uff1a<\/p>\n<table>\n<tr>\n<th>\u914d\u7f6e\u9879<\/th>\n<th>\u503c<\/th>\n<\/tr>\n<\/table>\n<p>|&#8212;&#8212;&#8211;|&#8212;&#8211;|<\/p>\n<table>\n<tr>\n<th>Monitoring Mode<\/th>\n<th>InfluxDB<\/th>\n<\/tr>\n<tr>\n<td>InfluxDB URL<\/td>\n<td>http:\/\/localhost:8086<\/td>\n<\/tr>\n<tr>\n<td>InfluxDB Database<\/td>\n<td>pritunl<\/td>\n<\/tr>\n<\/table>\n<h4>4. \u5b89\u88c5 Grafana<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u6dfb\u52a0\u4ed3\u5e93<\/p>\n<p>sudo apt -y install software-properties-common<\/p>\n<p>sudo add-apt-repository &#8220;deb https:\/\/packages.grafana.com\/oss\/deb stable main&#8221;<\/p>\n<p>wget -q -O &#8211; https:\/\/packages.grafana.com\/gpg.key | sudo apt-key add &#8211;<\/p>\n<p># \u5b89\u88c5<\/p>\n<p>sudo apt update<\/p>\n<p>sudo apt -y install grafana<\/p>\n<p># \u542f\u52a8<\/p>\n<p>sudo systemctl enable grafana-server<\/p>\n<p>sudo systemctl start grafana-server<\/p>\n<p><code>`<\/code><\/p>\n<h4>5. \u914d\u7f6e Grafana \u6570\u636e\u6e90<\/h4>\n<ol>\n<li>\u8bbf\u95ee <code>http:\/\/server-ip:3000<\/code><\/li>\n<li>\u9ed8\u8ba4\u767b\u5f55\uff1aadmin\/admin<\/li>\n<li>\u6dfb\u52a0 InfluxDB \u6570\u636e\u6e90\uff1a<\/li>\n<\/ol>\n<ul>\n<li>URL: <code>http:\/\/localhost:8086<\/code><\/li>\n<li>Database: <code>pritunl<\/code><\/li>\n<\/ul>\n<h4>6. \u5bfc\u5165\u4eea\u8868\u677f<\/h4>\n<p>Pritunl \u63d0\u4f9b\u9884\u914d\u7f6e\u7684 Grafana \u4eea\u8868\u677f JSON\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u4e0b\u8f7d\u4eea\u8868\u677f<\/p>\n<p>wget https:\/\/raw.githubusercontent.com\/pritunl\/pritunl-monitoring\/master\/grafana_dashboard.json<\/p>\n<p><code>`<\/code><\/p>\n<p>\u5728 Grafana \u4e2d\u5bfc\u5165\u6b64 JSON \u6587\u4ef6\u3002<\/p>\n<h3>\u76d1\u63a7\u6307\u6807<\/h3>\n<p><strong>\u5173\u952e\u6307\u6807<\/strong>\uff1a<\/p>\n<ul>\n<li><code>vpn_connections<\/code>\uff1aVPN \u8fde\u63a5\u6570<\/li>\n<li><code>vpn_traffic_in\/out<\/code>\uff1a\u6d41\u91cf<\/li>\n<li><code>server_cpu\/memory<\/code>\uff1a\u670d\u52a1\u5668\u8d44\u6e90<\/li>\n<li><code>mongodb_operations<\/code>\uff1a\u6570\u636e\u5e93\u64cd\u4f5c<\/li>\n<\/ul>\n<h3>\u544a\u8b66\u914d\u7f6e<\/h3>\n<h4>Grafana \u544a\u8b66\u89c4\u5219<\/h4>\n<p><code>`<\/code>json<\/p>\n<p>{<\/p>\n<p>  &#8220;alert&#8221;: {<\/p>\n<p>    &#8220;name&#8221;: &#8220;VPN \u8fde\u63a5\u6570\u8fc7\u9ad8&#8221;,<\/p>\n<p>    &#8220;message&#8221;: &#8220;\u5f53\u524d\u8fde\u63a5\u6570\u8d85\u8fc7\u9608\u503c&#8221;,<\/p>\n<p>    &#8220;conditions&#8221;: [<\/p>\n<p>      {<\/p>\n<p>        &#8220;evaluator&#8221;: {<\/p>\n<p>          &#8220;params&#8221;: [1000],<\/p>\n<p>          &#8220;type&#8221;: &#8220;gt&#8221;<\/p>\n<p>        },<\/p>\n<p>        &#8220;operator&#8221;: {<\/p>\n<p>          &#8220;type&#8221;: &#8220;and&#8221;<\/p>\n<p>        },<\/p>\n<p>        &#8220;query&#8221;: {<\/p>\n<p>          &#8220;params&#8221;: [&#8220;A&#8221;, &#8220;5m&#8221;, &#8220;now&#8221;]<\/p>\n<p>        },<\/p>\n<p>        &#8220;reducer&#8221;: {<\/p>\n<p>          &#8220;params&#8221;: [],<\/p>\n<p>          &#8220;type&#8221;: &#8220;avg&#8221;<\/p>\n<p>        }<\/p>\n<p>      }<\/p>\n<p>    ],<\/p>\n<p>    &#8220;executionErrorState&#8221;: &#8220;alerting&#8221;,<\/p>\n<p>    &#8220;noDataState&#8221;: &#8220;no_data&#8221;,<\/p>\n<p>    &#8220;frequency&#8221;: &#8220;1m&#8221;<\/p>\n<p>  }<\/p>\n<p>}<\/p>\n<p><code>`<\/code><\/p>\n<h2>\u5907\u4efd\u4e0e\u6062\u590d<\/h2>\n<h3>MongoDB \u5907\u4efd<\/h3>\n<h4>Atlas \u81ea\u52a8\u5907\u4efd<\/h4>\n<p>MongoDB Atlas \u63d0\u4f9b\uff1a<\/p>\n<ul>\n<li>\u8fde\u7eed\u5907\u4efd<\/li>\n<li>\u65f6\u95f4\u70b9\u6062\u590d<\/li>\n<li>\u8de8\u533a\u57df\u5907\u4efd<\/li>\n<\/ul>\n<h4>\u81ea\u6258\u7ba1\u5907\u4efd\u811a\u672c<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p>#!\/bin\/bash<\/p>\n<p># backup_mongodb.sh<\/p>\n<p>BACKUP_DIR=&#8221;\/backup\/mongodb&#8221;<\/p>\n<p>DATE=$(date +%Y%m%d_%H%M%S)<\/p>\n<p>MONGO_URI=&#8221;mongodb:\/\/admin:password@localhost:27017\/pritunl?authSource=admin&#8221;<\/p>\n<p># \u521b\u5efa\u5907\u4efd\u76ee\u5f55<\/p>\n<p>mkdir -p ${BACKUP_DIR}<\/p>\n<p># \u6267\u884c\u5907\u4efd<\/p>\n<p>mongodump &#8211;uri=&#8221;${MONGO_URI}&#8221; &#8211;out=&#8221;${BACKUP_DIR}\/${DATE}&#8221;<\/p>\n<p># \u538b\u7f29<\/p>\n<p>tar -czf &#8220;${BACKUP_DIR}\/${DATE}.tar.gz&#8221; -C &#8220;${BACKUP_DIR}&#8221; &#8220;${DATE}&#8221;<\/p>\n<p>rm -rf &#8220;${BACKUP_DIR}\/${DATE}&#8221;<\/p>\n<p># \u4fdd\u7559\u6700\u8fd1 30 \u5929<\/p>\n<p>find &#8220;${BACKUP_DIR}&#8221; -name &#8220;*.tar.gz&#8221; -mtime +30 -delete<\/p>\n<p>echo &#8220;\u5907\u4efd\u5b8c\u6210: ${BACKUP_DIR}\/${DATE}.tar.gz&#8221;<\/p>\n<p><code>`<\/code><\/p>\n<h4>Cron \u5b9a\u65f6\u5907\u4efd<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u6bcf\u5929\u51cc\u6668 2 \u70b9\u5907\u4efd<\/p>\n<p>0 2 * * * \/opt\/scripts\/backup_mongodb.sh &gt;&gt; \/var\/log\/mongodb_backup.log 2&gt;&amp;1<\/p>\n<p><code>`<\/code><\/p>\n<h3>Pritunl \u914d\u7f6e\u5907\u4efd<\/h3>\n<p><code>`<\/code>bash<\/p>\n<p>#!\/bin\/bash<\/p>\n<p># backup_pritunl.sh<\/p>\n<p>BACKUP_DIR=&#8221;\/backup\/pritunl&#8221;<\/p>\n<p>DATE=$(date +%Y%m%d_%H%M%S)<\/p>\n<p>mkdir -p ${BACKUP_DIR}<\/p>\n<p># \u5907\u4efd\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>tar -czf &#8220;${BACKUP_DIR}\/pritunl_config_${DATE}.tar.gz&#8221; <\/p>\n<p>  \/etc\/pritunl.conf <\/p>\n<p>  \/var\/lib\/pritunl\/<\/p>\n<p># \u5907\u4efd MongoDB\uff08\u4f7f\u7528\u4e0a\u9762\u7684\u811a\u672c\uff09<\/p>\n<p>\/opt\/scripts\/backup_mongodb.sh<\/p>\n<p>echo &#8220;Pritunl \u5907\u4efd\u5b8c\u6210&#8221;<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u6062\u590d\u6d41\u7a0b<\/h3>\n<h4>1. \u6062\u590d MongoDB<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u6062\u590d\u5907\u4efd<\/p>\n<p>mongorestore &#8211;uri=&#8221;mongodb:\/\/admin:password@localhost:27017&#8243; <\/p>\n<p>  &#8211;drop <\/p>\n<p>  \/backup\/mongodb\/20260607_020000\/pritunl<\/p>\n<p><code>`<\/code><\/p>\n<h4>2. \u6062\u590d Pritunl \u914d\u7f6e<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u505c\u6b62\u670d\u52a1<\/p>\n<p>sudo systemctl stop pritunl<\/p>\n<p># \u6062\u590d\u914d\u7f6e<\/p>\n<p>tar -xzf \/backup\/pritunl\/pritunl_config_20260607.tar.gz -C \/<\/p>\n<p># \u542f\u52a8\u670d\u52a1<\/p>\n<p>sudo systemctl start pritunl<\/p>\n<p><code>`<\/code><\/p>\n<h2>\u6027\u80fd\u8c03\u4f18<\/h2>\n<h3>\u670d\u52a1\u5668\u8c03\u4f18<\/h3>\n<h4>1. \u589e\u52a0\u6587\u4ef6\u9650\u5236<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \/etc\/security\/limits.conf<\/p>\n<p>* hard nofile 64000<\/p>\n<p>* soft nofile 64000<\/p>\n<p>root hard nofile 64000<\/p>\n<p>root soft nofile 64000<\/p>\n<p><code>`<\/code><\/p>\n<h4>2. \u8c03\u6574\u5185\u6838\u53c2\u6570<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \/etc\/sysctl.conf<\/p>\n<p>net.core.somaxconn = 65535<\/p>\n<p>net.ipv4.tcp_max_syn_backlog = 65535<\/p>\n<p>net.ipv4.ip_local_port_range = 1024 65535<\/p>\n<p>net.ipv4.tcp_tw_reuse = 1<\/p>\n<p>net.ipv4.tcp_fin_timeout = 15<\/p>\n<p>net.core.netdev_max_backlog = 65535<\/p>\n<p><code>`<\/code><\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u5e94\u7528\u914d\u7f6e<\/p>\n<p>sudo sysctl -p<\/p>\n<p><code>`<\/code><\/p>\n<h4>3. \u961f\u5217\u548c\u7ebf\u7a0b\u914d\u7f6e<\/h4>\n<p>\u6839\u636e\u670d\u52a1\u5668\u89c4\u683c\u8c03\u6574\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u4f4e\u5bb9\u91cf (1 CPU, 4GB RAM)<\/p>\n<p>sudo pritunl set app.request_queue_size 200<\/p>\n<p>sudo pritunl set app.request_accepted_queue_size 100<\/p>\n<p>sudo pritunl set app.request_thread_count 20<\/p>\n<p>sudo pritunl set app.request_max_thread_count 100<\/p>\n<p># \u6807\u51c6\u5bb9\u91cf (2 CPU, 4GB RAM)<\/p>\n<p>sudo pritunl set app.request_queue_size 600<\/p>\n<p>sudo pritunl set app.request_accepted_queue_size 300<\/p>\n<p>sudo pritunl set app.request_thread_count 50<\/p>\n<p>sudo pritunl set app.request_max_thread_count 300<\/p>\n<p># \u9ad8\u5bb9\u91cf (4 CPU, 4GB RAM)<\/p>\n<p>sudo pritunl set app.request_queue_size 1200<\/p>\n<p>sudo pritunl set app.request_accepted_queue_size 600<\/p>\n<p>sudo pritunl set app.request_thread_count 100<\/p>\n<p>sudo pritunl set app.request_max_thread_count 600<\/p>\n<p># \u6781\u9650\u5bb9\u91cf (8 CPU, 8GB RAM)<\/p>\n<p>sudo pritunl set app.request_queue_size 4000<\/p>\n<p>sudo pritunl set app.request_accepted_queue_size 2000<\/p>\n<p>sudo pritunl set app.request_thread_count 100<\/p>\n<p>sudo pritunl set app.request_max_thread_count 2000<\/p>\n<p><code>`<\/code><\/p>\n<h3>OpenVPN \u8c03\u4f18<\/h3>\n<h4>1. \u9009\u62e9\u5408\u9002\u7684\u52a0\u5bc6\u7b97\u6cd5<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># AES-128-GCM\uff08\u63a8\u8350\uff0c\u6027\u80fd\u6700\u4f73\uff09<\/p>\n<p>sudo pritunl set app.encryption_cipher aes-128-gcm<\/p>\n<p># SHA-256 \u54c8\u5e0c<\/p>\n<p>sudo pritunl set app.hash_algorithm SHA-256<\/p>\n<p><code>`<\/code><\/p>\n<h4>2. \u542f\u7528 WireGuard<\/h4>\n<p>WireGuard \u6027\u80fd\u4f18\u4e8e OpenVPN\uff1a<\/p>\n<ol>\n<li>\u5728\u670d\u52a1\u5668\u8bbe\u7f6e\u4e2d\u542f\u7528 WireGuard<\/li>\n<li>\u7528\u6237\u53ef\u5728\u5ba2\u6237\u7aef\u5207\u6362\u534f\u8bae<\/li>\n<\/ol>\n<h4>3. \u8c03\u6574 MTU<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p># \u68c0\u67e5\u8def\u5f84 MTU<\/p>\n<p>ping -M do -s 1400 <\/p>\n<p># \u8bbe\u7f6e MTU\uff08\u5982\u9700\u8981\uff09<\/p>\n<p>sudo pritunl set app.mtu 1400<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u6570\u636e\u5e93\u8c03\u4f18<\/h3>\n<h4>MongoDB WiredTiger \u7f13\u5b58<\/h4>\n<p><code>`<\/code>yaml<\/p>\n<p># \/etc\/mongod.conf<\/p>\n<p>storage:<\/p>\n<p>  wiredtiger:<\/p>\n<p>    engineConfig:<\/p>\n<p>      cacheSizeGB: 2  # \u6839\u636e\u5185\u5b58\u8c03\u6574<\/p>\n<p><code>`<\/code><\/p>\n<h4>\u7d22\u5f15\u4f18\u5316<\/h4>\n<p><code>`<\/code>javascript<\/p>\n<p>\/\/ \u8fde\u63a5\u5230 MongoDB<\/p>\n<p>mongo<\/p>\n<p>\/\/ \u67e5\u770b\u7d22\u5f15<\/p>\n<p>use pritunl<\/p>\n<p>db.users.getIndexes()<\/p>\n<p>\/\/ \u521b\u5efa\u7d22\u5f15\uff08\u5982\u9700\u8981\uff09<\/p>\n<p>db.users.createIndex({ &#8220;org_id&#8221;: 1, &#8220;status&#8221;: 1 })<\/p>\n<p><code>`<\/code><\/p>\n<h2>\u63d2\u4ef6\u5f00\u53d1<\/h2>\n<h3>\u63d2\u4ef6\u7cfb\u7edf\u6982\u8ff0<\/h3>\n<p>Pritunl \u652f\u6301 Python \u63d2\u4ef6\u6269\u5c55\u529f\u80fd\uff1a<\/p>\n<p><code>`<\/code>python<\/p>\n<p># plugin_example.py<\/p>\n<p>def on_user_connect(user, server, client_address):<\/p>\n<p>    &#8220;&#8221;&#8221;\u7528\u6237\u8fde\u63a5\u65f6\u89e6\u53d1&#8221;&#8221;&#8221;<\/p>\n<p>    print(f&#8221;User {user[&#8216;name&#8217;]} connected from {client_address}&#8221;)<\/p>\n<p>def on_user_disconnect(user, server, client_address):<\/p>\n<p>    &#8220;&#8221;&#8221;\u7528\u6237\u65ad\u5f00\u65f6\u89e6\u53d1&#8221;&#8221;&#8221;<\/p>\n<p>    print(f&#8221;User {user[&#8216;name&#8217;]} disconnected&#8221;)<\/p>\n<p>def on_server_start(server):<\/p>\n<p>    &#8220;&#8221;&#8221;\u670d\u52a1\u5668\u542f\u52a8\u65f6\u89e6\u53d1&#8221;&#8221;&#8221;<\/p>\n<p>    print(f&#8221;Server {server[&#8216;name&#8217;]} started&#8221;)<\/p>\n<p>def on_server_stop(server):<\/p>\n<p>    &#8220;&#8221;&#8221;\u670d\u52a1\u5668\u505c\u6b62\u65f6\u89e6\u53d1&#8221;&#8221;&#8221;<\/p>\n<p>    print(f&#8221;Server {server[&#8216;name&#8217;]} stopped&#8221;)<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u63d2\u4ef6\u4e8b\u4ef6<\/h3>\n<table>\n<tr>\n<th>\u4e8b\u4ef6<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u53c2\u6570<\/th>\n<\/tr>\n<\/table>\n<p>|&#8212;&#8212;|&#8212;&#8212;|&#8212;&#8212;|<\/p>\n<table>\n<tr>\n<th><code>on_user_connect<\/code><\/th>\n<th>\u7528\u6237\u8fde\u63a5<\/th>\n<th>user, server, client_address<\/th>\n<\/tr>\n<tr>\n<td><code>on_user_disconnect<\/code><\/td>\n<td>\u7528\u6237\u65ad\u5f00<\/td>\n<td>user, server, client_address<\/td>\n<\/tr>\n<tr>\n<td><code>on_server_start<\/code><\/td>\n<td>\u670d\u52a1\u5668\u542f\u52a8<\/td>\n<td>server<\/td>\n<\/tr>\n<tr>\n<td><code>on_server_stop<\/code><\/td>\n<td>\u670d\u52a1\u5668\u505c\u6b62<\/td>\n<td>server<\/td>\n<\/tr>\n<tr>\n<td><code>on_server_update<\/code><\/td>\n<td>\u670d\u52a1\u5668\u66f4\u65b0<\/td>\n<td>server<\/td>\n<\/tr>\n<\/table>\n<h3>\u5b89\u88c5\u63d2\u4ef6<\/h3>\n<ol>\n<li>\u5c06\u63d2\u4ef6\u6587\u4ef6\u653e\u5230 <code>\/var\/lib\/pritunl\/plugins\/<\/code><\/li>\n<li>\u5728 Web \u63a7\u5236\u53f0\u542f\u7528\u63d2\u4ef6<\/li>\n<li>\u91cd\u542f Pritunl<\/li>\n<\/ol>\n<h2>API \u4f7f\u7528<\/h2>\n<h3>\u8ba4\u8bc1<\/h3>\n<p><code>`<\/code>bash<\/p>\n<p># \u83b7\u53d6 API \u5bc6\u94a5<\/p>\n<p>sudo pritunl set app.api_key &#8220;YOUR_API_KEY&#8221;<\/p>\n<p># \u6216\u5728 Web \u63a7\u5236\u53f0\u8bbe\u7f6e\u4e2d\u914d\u7f6e<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u5e38\u7528 API \u793a\u4f8b<\/h3>\n<h4>\u83b7\u53d6\u6240\u6709\u7528\u6237<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p>curl -k &#8220;https:\/\/your-server\/api\/v1\/user&#8221; <\/p>\n<p>  -H &#8220;Auth-Token: YOUR_TOKEN&#8221; <\/p>\n<p>  -H &#8220;Auth-Secret: YOUR_SECRET&#8221;<\/p>\n<p><code>`<\/code><\/p>\n<h4>\u521b\u5efa\u7528\u6237<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p>curl -k -X POST &#8220;https:\/\/your-server\/api\/v1\/user&#8221; <\/p>\n<p>  -H &#8220;Auth-Token: YOUR_TOKEN&#8221; <\/p>\n<p>  -H &#8220;Auth-Secret: YOUR_SECRET&#8221; <\/p>\n<p>  -H &#8220;Content-Type: application\/json&#8221; <\/p>\n<p>  -d &#8216;{<\/p>\n<p>    &#8220;organization_id&#8221;: &#8220;ORG_ID&#8221;,<\/p>\n<p>    &#8220;name&#8221;: &#8220;new_user&#8221;,<\/p>\n<p>    &#8220;email&#8221;: &#8220;user@example.com&#8221;,<\/p>\n<p>    &#8220;pin&#8221;: &#8220;1234&#8221;<\/p>\n<p>  }&#8217;<\/p>\n<p><code>`<\/code><\/p>\n<h4>\u83b7\u53d6\u670d\u52a1\u5668\u72b6\u6001<\/h4>\n<p><code>`<\/code>bash<\/p>\n<p>curl -k &#8220;https:\/\/your-server\/api\/v1\/server\/SERVER_ID&#8221; <\/p>\n<p>  -H &#8220;Auth-Token: YOUR_TOKEN&#8221; <\/p>\n<p>  -H &#8220;Auth-Secret: YOUR_SECRET&#8221;<\/p>\n<p><code>`<\/code><\/p>\n<h3>API \u81ea\u52a8\u5316\u811a\u672c<\/h3>\n<p><code>`<\/code>python<\/p>\n<p>#!\/usr\/bin\/env python3<\/p>\n<p># pritunl_api.py<\/p>\n<p>import requests<\/p>\n<p>import json<\/p>\n<p>class PritunlAPI:<\/p>\n<p>    def __init__(self, base_url, api_key, api_secret):<\/p>\n<p>        self.base_url = base_url<\/p>\n<p>        self.headers = {<\/p>\n<p>            &#8216;Auth-Token&#8217;: api_key,<\/p>\n<p>            &#8216;Auth-Secret&#8217;: api_secret,<\/p>\n<p>            &#8216;Content-Type&#8217;: &#8216;application\/json&#8217;<\/p>\n<p>        }<\/p>\n<p>    def get_users(self, org_id):<\/p>\n<p>        url = f&#8221;{self.base_url}\/api\/v1\/user\/{org_id}&#8221;<\/p>\n<p>        response = requests.get(url, headers=self.headers, verify=False)<\/p>\n<p>        return response.json()<\/p>\n<p>    def create_user(self, org_id, name, email, pin=None):<\/p>\n<p>        url = f&#8221;{self.base_url}\/api\/v1\/user\/{org_id}&#8221;<\/p>\n<p>        data = {<\/p>\n<p>            &#8216;name&#8217;: name,<\/p>\n<p>            &#8217;email&#8217;: email<\/p>\n<p>        }<\/p>\n<p>        if pin:<\/p>\n<p>            data[&#8216;pin&#8217;] = pin<\/p>\n<p>        response = requests.post(url, headers=self.headers, json=data, verify=False)<\/p>\n<p>        return response.json()<\/p>\n<p>    def delete_user(self, org_id, user_id):<\/p>\n<p>        url = f&#8221;{self.base_url}\/api\/v1\/user\/{org_id}\/{user_id}&#8221;<\/p>\n<p>        response = requests.delete(url, headers=self.headers, verify=False)<\/p>\n<p>        return response.status_code<\/p>\n<p># \u4f7f\u7528\u793a\u4f8b<\/p>\n<p>api = PritunlAPI(&#8216;https:\/\/vpn.example.com&#8217;, &#8216;api_key&#8217;, &#8216;api_secret&#8217;)<\/p>\n<p>users = api.get_users(&#8216;org_id&#8217;)<\/p>\n<p>print(json.dumps(users, indent=2))<\/p>\n<p><code>`<\/code><\/p>\n<h2>\u5347\u7ea7\u4e0e\u7ef4\u62a4<\/h2>\n<h3>\u5347\u7ea7 Pritunl<\/h3>\n<p><code>`<\/code>bash<\/p>\n<p># AlmaLinux\/Rocky Linux<\/p>\n<p>sudo dnf update pritunl<\/p>\n<p># Ubuntu<\/p>\n<p>sudo apt update<\/p>\n<p>sudo apt upgrade pritunl<\/p>\n<p># \u91cd\u542f\u670d\u52a1<\/p>\n<p>sudo systemctl restart pritunl<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u5347\u7ea7 MongoDB<\/h3>\n<p><code>`<\/code>bash<\/p>\n<p># \u5907\u4efd\u6570\u636e\u5e93<\/p>\n<p>mongodump &#8211;uri=&#8221;mongodb:\/\/&#8230;&#8221; &#8211;out=\/backup\/pre_upgrade<\/p>\n<p># \u5347\u7ea7 MongoDB<\/p>\n<p>sudo apt update<\/p>\n<p>sudo apt upgrade mongodb-org<\/p>\n<p># \u91cd\u542f<\/p>\n<p>sudo systemctl restart mongod<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u6eda\u52a8\u5347\u7ea7\uff08\u96c6\u7fa4\uff09<\/h3>\n<ol>\n<li>\u5347\u7ea7 Secondary \u8282\u70b9<\/li>\n<li>\u9a8c\u8bc1 Secondary \u6b63\u5e38<\/li>\n<li>\u5207\u6362 Primary<\/li>\n<li>\u5347\u7ea7\u539f Primary<\/li>\n<li>\u9a8c\u8bc1\u6240\u6709\u8282\u70b9<\/li>\n<\/ol>\n<h2>\u6545\u969c\u6392\u67e5<\/h2>\n<h3>\u5e38\u89c1\u95ee\u9898<\/h3>\n<h4>Q1: \u8fde\u63a5\u91cd\u7f6e\u9519\u8bef<\/h4>\n<p><strong>\u75c7\u72b6<\/strong>\uff1a\u5ba2\u6237\u7aef\u65e5\u5fd7\u663e\u793a &#8220;connection reset by peer&#8221;<\/p>\n<p><strong>\u89e3\u51b3<\/strong>\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u589e\u52a0\u961f\u5217\u5bb9\u91cf<\/p>\n<p>sudo pritunl set app.request_queue_size 600<\/p>\n<p>sudo pritunl set app.request_thread_count 50<\/p>\n<p>sudo systemctl restart pritunl<\/p>\n<p><code>`<\/code><\/p>\n<h4>Q2: \u6570\u636e\u5e93\u8fde\u63a5\u5931\u8d25<\/h4>\n<p><strong>\u68c0\u67e5<\/strong>\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u68c0\u67e5 MongoDB \u72b6\u6001<\/p>\n<p>sudo systemctl status mongod<\/p>\n<p># \u6d4b\u8bd5\u8fde\u63a5<\/p>\n<p>mongo &#8211;host localhost &#8211;port 27017 -u pritunl -p password<\/p>\n<p><code>`<\/code><\/p>\n<h4>Q3: \u96c6\u7fa4\u8282\u70b9\u4e0d\u540c\u6b65<\/h4>\n<p><strong>\u68c0\u67e5<\/strong>\uff1a<\/p>\n<p><code>`<\/code>bash<\/p>\n<p># \u67e5\u770b\u526f\u672c\u96c6\u72b6\u6001<\/p>\n<p>mongo<\/p>\n<p>rs.status()<\/p>\n<p># \u67e5\u770b\u8282\u70b9\u540c\u6b65\u72b6\u6001<\/p>\n<p>db.getReplicationInfo()<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u65e5\u5fd7\u5206\u6790<\/h3>\n<p><code>`<\/code>bash<\/p>\n<p># Pritunl \u65e5\u5fd7<\/p>\n<p>sudo journalctl -u pritunl -f<\/p>\n<p># MongoDB \u65e5\u5fd7<\/p>\n<p>sudo journalctl -u mongod -f<\/p>\n<p># OpenVPN \u65e5\u5fd7<\/p>\n<p>sudo journalctl -u openvpn -f<\/p>\n<p><code>`<\/code><\/p>\n<h3>\u6027\u80fd\u8bca\u65ad<\/h3>\n<p><code>`<\/code>bash<\/p>\n<p># CPU \u5206\u6790\uff08\u4f7f\u7528 py-spy\uff09<\/p>\n<p>sudo \/usr\/lib\/pritunl\/usr\/bin\/py-spy top &#8211;pid $(pgrep pritunl)<\/p>\n<p># \u7f51\u7edc\u8fde\u63a5<\/p>\n<p>sudo netstat -tulpn | grep pritunl<\/p>\n<p># \u6587\u4ef6\u9650\u5236<\/p>\n<p>sudo lsof -p $(pgrep pritunl) | wc -l<\/p>\n<p><code>`<\/code><\/p>\n<h2>\u8fd0\u7ef4\u68c0\u67e5\u6e05\u5355<\/h2>\n<h3>\u6bcf\u65e5\u68c0\u67e5<\/h3>\n<ul>\n<li>[ ] \u670d\u52a1\u5668\u72b6\u6001\uff08CPU\/\u5185\u5b58\/\u78c1\u76d8\uff09<\/li>\n<li>[ ] VPN \u8fde\u63a5\u6570<\/li>\n<li>[ ] \u9519\u8bef\u65e5\u5fd7<\/li>\n<li>[ ] \u5907\u4efd\u72b6\u6001<\/li>\n<\/ul>\n<h3>\u6bcf\u5468\u68c0\u67e5<\/h3>\n<ul>\n<li>[ ] \u5b89\u5168\u66f4\u65b0<\/li>\n<li>[ ] \u8bc1\u4e66\u6709\u6548\u671f<\/li>\n<li>[ ] \u7528\u6237\u5ba1\u8ba1<\/li>\n<li>[ ] \u6027\u80fd\u6307\u6807<\/li>\n<\/ul>\n<h3>\u6bcf\u6708\u68c0\u67e5<\/h3>\n<ul>\n<li>[ ] \u5bb9\u91cf\u89c4\u5212<\/li>\n<li>[ ] \u5907\u4efd\u6062\u590d\u6d4b\u8bd5<\/li>\n<li>[ ] \u5b89\u5168\u5ba1\u8ba1<\/li>\n<li>[ ] \u6587\u6863\u66f4\u65b0<\/li>\n<\/ul>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u901a\u8fc7\u672c\u7cfb\u5217\u6587\u7ae0\uff0c\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\uff1a<\/p>\n<p>\u2705 <strong>\u57fa\u7840\u90e8\u7f72<\/strong>\uff1a\u4ece\u96f6\u642d\u5efa Pritunl VPN \u670d\u52a1\u5668<\/p>\n<p>\u2705 <strong>\u5b89\u5168\u52a0\u56fa<\/strong>\uff1aSELinux\u3001\u52a8\u6001\u9632\u706b\u5899\u3001\u8bbe\u5907\u8ba4\u8bc1<\/p>\n<p>\u2705 <strong>\u4f01\u4e1a\u96c6\u6210<\/strong>\uff1aSSO \u5355\u70b9\u767b\u5f55\uff08Google\/Azure\/Okta \u7b49\uff09<\/p>\n<p>\u2705 <strong>\u591a\u4e91\u4e92\u8054<\/strong>\uff1aAWS\/Azure\/Google Cloud \u7ad9\u70b9\u5230\u7ad9\u70b9<\/p>\n<p>\u2705 <strong>\u751f\u4ea7\u8fd0\u7ef4<\/strong>\uff1a\u9ad8\u53ef\u7528\u3001\u76d1\u63a7\u3001\u5907\u4efd\u3001\u6027\u80fd\u8c03\u4f18<\/p>\n<p>Pritunl \u4f5c\u4e3a\u5f00\u6e90 VPN \u89e3\u51b3\u65b9\u6848\uff0c\u63d0\u4f9b\u4e86\u4f01\u4e1a\u7ea7\u7684\u529f\u80fd\u548c\u5b89\u5168\u6027\uff0c\u540c\u65f6\u907f\u514d\u4e86\u5546\u4e1a VPN \u7684\u9ad8\u6602\u8bb8\u53ef\u8d39\u7528\u3002\u5e0c\u671b\u672c\u7cfb\u5217\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u6210\u529f\u90e8\u7f72\u548c\u8fd0\u7ef4 Pritunl VPN\u3002<\/p>\n<hr>\n<p><strong>\u76f8\u5173\u8d44\u6e90<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/docs.pritunl.com\/<\/li>\n<li>GitHub\uff1ahttps:\/\/github.com\/pritunl<\/li>\n<li>\u793e\u533a\u652f\u6301\uff1ahttps:\/\/pritunl.com\/community<\/li>\n<li>MongoDB Atlas\uff1ahttps:\/\/www.mongodb.com\/cloud\/atlas<\/li>\n<\/ul>\n<p>*\u672c\u6587\u57fa\u4e8e Pritunl \u5b98\u65b9\u6587\u6863\u6574\u7406\uff0c\u66f4\u591a\u6280\u672f\u7ec6\u8282\u8bf7\u8bbf\u95ee\u5b98\u65b9\u6587\u6863\u3002*<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7cfb\u5217\u6587\u7ae0\u56de\u987e \u8fd9\u662f\u300c\u5f00\u6e90VPN\u5b9e\u6218\u300d\u7cfb\u5217\u7684\u7b2c\u4e94\u7bc7\uff08\u5b8c\u7ed3\u7bc7\uff09\u3002\u524d\u56db\u7bc7\u6211\u4eec\u4ecb\u7ecd\u4e86 Pritunl \u7684\u5b89\u88c5\u90e8\u7f72\u3001\u5b89\u5168 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[],"class_list":["post-349","post","type-post","status-publish","format-standard","hentry","category-jishu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218 - \u6500\u5ca9\u8005<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218 - \u6500\u5ca9\u8005\" \/>\n<meta property=\"og:description\" content=\"\u7cfb\u5217\u6587\u7ae0\u56de\u987e \u8fd9\u662f\u300c\u5f00\u6e90VPN\u5b9e\u6218\u300d\u7cfb\u5217\u7684\u7b2c\u4e94\u7bc7\uff08\u5b8c\u7ed3\u7bc7\uff09\u3002\u524d\u56db\u7bc7\u6211\u4eec\u4ecb\u7ecd\u4e86 Pritunl \u7684\u5b89\u88c5\u90e8\u7f72\u3001\u5b89\u5168 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6500\u5ca9\u8005\" \/>\n<meta property=\"article:published_time\" content=\"2026-06-07T05:19:52+00:00\" \/>\n<meta name=\"author\" content=\"climbing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"climbing\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/#article\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/\"},\"author\":{\"name\":\"climbing\",\"@id\":\"https:\\\/\\\/climbing.top\\\/#\\\/schema\\\/person\\\/d0a903ba840c6b5b4efed8cf469bdfc6\"},\"headline\":\"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218\",\"datePublished\":\"2026-06-07T05:19:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/\"},\"wordCount\":1323,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/climbing.top\\\/#\\\/schema\\\/person\\\/d0a903ba840c6b5b4efed8cf469bdfc6\"},\"articleSection\":[\"\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/\",\"url\":\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/\",\"name\":\"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218 - \u6500\u5ca9\u8005\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/climbing.top\\\/#website\"},\"datePublished\":\"2026-06-07T05:19:52+00:00\",\"breadcrumb\":{\"@id\":\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/climbing.top\\\/index.php\\\/2026\\\/06\\\/07\\\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/climbing.top\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/climbing.top\\\/#website\",\"url\":\"https:\\\/\\\/climbing.top\\\/\",\"name\":\"\u6500\u5ca9\u8005\",\"description\":\"Just a climbing site\",\"publisher\":{\"@id\":\"https:\\\/\\\/climbing.top\\\/#\\\/schema\\\/person\\\/d0a903ba840c6b5b4efed8cf469bdfc6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/climbing.top\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/climbing.top\\\/#\\\/schema\\\/person\\\/d0a903ba840c6b5b4efed8cf469bdfc6\",\"name\":\"climbing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g\",\"caption\":\"climbing\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g\"},\"sameAs\":[\"http:\\\/\\\/49.232.220.234\\\/wordpress\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218 - \u6500\u5ca9\u8005","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218 - \u6500\u5ca9\u8005","og_description":"\u7cfb\u5217\u6587\u7ae0\u56de\u987e \u8fd9\u662f\u300c\u5f00\u6e90VPN\u5b9e\u6218\u300d\u7cfb\u5217\u7684\u7b2c\u4e94\u7bc7\uff08\u5b8c\u7ed3\u7bc7\uff09\u3002\u524d\u56db\u7bc7\u6211\u4eec\u4ecb\u7ecd\u4e86 Pritunl \u7684\u5b89\u88c5\u90e8\u7f72\u3001\u5b89\u5168 [&hellip;]","og_url":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/","og_site_name":"\u6500\u5ca9\u8005","article_published_time":"2026-06-07T05:19:52+00:00","author":"climbing","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"climbing","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/#article","isPartOf":{"@id":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/"},"author":{"name":"climbing","@id":"https:\/\/climbing.top\/#\/schema\/person\/d0a903ba840c6b5b4efed8cf469bdfc6"},"headline":"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218","datePublished":"2026-06-07T05:19:52+00:00","mainEntityOfPage":{"@id":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/"},"wordCount":1323,"commentCount":0,"publisher":{"@id":"https:\/\/climbing.top\/#\/schema\/person\/d0a903ba840c6b5b4efed8cf469bdfc6"},"articleSection":["\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/","url":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/","name":"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218 - \u6500\u5ca9\u8005","isPartOf":{"@id":"https:\/\/climbing.top\/#website"},"datePublished":"2026-06-07T05:19:52+00:00","breadcrumb":{"@id":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/climbing.top\/index.php\/2026\/06\/07\/kaiyuanvpnshizhanwupritunl-gaokeyongyuyunweishizhan\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/climbing.top\/"},{"@type":"ListItem","position":2,"name":"\u5f00\u6e90VPN\u5b9e\u6218\uff08\u4e94\uff09\uff1aPritunl \u9ad8\u53ef\u7528\u4e0e\u8fd0\u7ef4\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/climbing.top\/#website","url":"https:\/\/climbing.top\/","name":"\u6500\u5ca9\u8005","description":"Just a climbing site","publisher":{"@id":"https:\/\/climbing.top\/#\/schema\/person\/d0a903ba840c6b5b4efed8cf469bdfc6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/climbing.top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/climbing.top\/#\/schema\/person\/d0a903ba840c6b5b4efed8cf469bdfc6","name":"climbing","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g","caption":"climbing"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/1ebe96219e8a39358eb7ac4609521cc139b46bdb29387ac24634ce777483c04e?s=96&d=wp_user_avatar&r=g"},"sameAs":["http:\/\/49.232.220.234\/wordpress"]}]}},"_links":{"self":[{"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/comments?post=349"}],"version-history":[{"count":0,"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/posts\/349\/revisions"}],"wp:attachment":[{"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/media?parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/categories?post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/climbing.top\/index.php\/wp-json\/wp\/v2\/tags?post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}