{"id":522,"date":"2023-09-07T00:34:40","date_gmt":"2023-09-07T00:34:40","guid":{"rendered":"https:\/\/faq2.areabe.com\/docs\/606087-stunnel%e3%81%8c%e5%8b%95%e4%bd%9c%e3%81%97%e3%81%be%e3%81%9b%e3%82%93\/"},"modified":"2023-12-04T06:20:08","modified_gmt":"2023-12-04T06:20:08","password":"","slug":"606087-stunnel%e3%81%8c%e5%8b%95%e4%bd%9c%e3%81%97%e3%81%be%e3%81%9b%e3%82%93","status":"publish","type":"docs","link":"https:\/\/faq.areabe.com\/?docs=606087-stunnel%e3%81%8c%e5%8b%95%e4%bd%9c%e3%81%97%e3%81%be%e3%81%9b%e3%82%93","title":{"rendered":"606087 stunnel\u304c\u52d5\u4f5c\u3057\u307e\u305b\u3093"},"content":{"rendered":"SWANStor\u3000Gateway\u3067\u306fstunnel\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u7aef\u672b\u3068\u306eSSL\u901a\u4fe1\u3092\u884c\u3044\u307e\u3059\u304c\u3001\u3054\u5229\u7528\u306eLinux\u3067SELinux\u304c\u6709\u52b9\u306e\u5834\u5408\u3001\u5c11\u3057\u8a2d\u5b9a\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<br>SELinux\u304c\u6709\u52b9\u304b\u3069\u3046\u304b\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002<br><br>getenforce<br><br>\u3053\u306e\u7d50\u679c\u304cEnforcing\u306e\u5834\u5408\u3001SELinux\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6b21\u306e\u624b\u9806\u306b\u5f93\u3044\u307e\u3059\u3002<br><br>\uff11\uff09semanage\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002semanage\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<br>yum install policycoreutils-python -y<br><br>\uff12\uff09SELinux\u306bstunnel_t\u306e\u6a29\u9650\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002semanage\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3064\u304e\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<br>semanage permissive -a stunnel_t<br><br>\u4ee5\u4e0a\u3067\u3059\u3002\u307e\u305f\u3001RedHat 7\/CentOS 7\u7cfb\u3067\u306f\u30d7\u30ed\u30bb\u30b9\u5236\u5fa1\u306bsystemd\u3092\u4f7f\u3044\u307e\u3059\u304c\u3001stunnel\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u306f\u305d\u306e\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>\u5f0a\u793e\u3067\u5229\u7528\u3057\u3066\u3044\u308b\u3082\u306e\u3092\u53c2\u8003\u307e\u3067\u306b\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u3092\/usr\/lib\/systemd\/system\/stunnel.service\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3054\u5229\u7528\u306b\u3064\u3044\u3066\u306f\u307f\u306a\u3055\u307e\u306e\u8cac\u4efb\u3067\u304a\u9858\u3044\u3057\u307e\u3059\u3002<br><br>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u3000\u3053\u3053\u304b\u3089<br>\n<p class=\"wp-block-paragraph\">\n[Unit]\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\nDescription=SSL tunnel for network daemons\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\nAfter=syslog.target network.target\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\n<br>\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\n[Service]\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\nExecStart=\/usr\/bin\/stunnel \/etc\/stunnel\/stunnel.conf\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\nExecStop=\/usr\/bin\/kill -9 $(pgrep stunnel)\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\nType=forking\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\n<br>\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\n[Install]\n<\/p>\n\n\n<p class=\"wp-block-paragraph\">\nWantedBy=multi-user.target\n<\/p>\n\n\u3053\u3053\u307e\u3067&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\n\n","protected":false},"excerpt":{"rendered":"<p>SWANStor\u3000Gateway\u3067\u306fstunnel\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u7aef\u672b\u3068\u306eSSL\u901a\u4fe1\u3092\u884c\u3044\u307e\u3059\u304c\u3001\u3054\u5229\u7528\u306eLinux\u3067SELinux\u304c\u6709\u52b9\u306e\u5834\u5408\u3001\u5c11\u3057\u8a2d\u5b9a\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002SELinux\u304c\u6709\u52b9\u304b\u3069\u3046\u304b\u306b\u3064\u3044\u3066\u306f\u3001\u6b21\u306e\u30b3\u30de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_crdt_document":"","footnotes":""},"doc_category":[4,12,13],"doc_tag":[],"class_list":["post-522","docs","type-docs","status-publish","hentry","doc_category-swanstor","doc_category-swanstor-troubleshooting","doc_category-swanstor-use"],"year_month":"2026-04","word_count":71,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"admin","author_nicename":"areabeblog","author_url":"https:\/\/faq.areabe.com\/?author=1"},"doc_category_info":[{"term_name":"SWANStor\u306b\u95a2\u3059\u308b","term_url":"https:\/\/faq.areabe.com\/?doc_category=swanstor"},{"term_name":"SWANStor\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306b\u95a2\u3059\u308b","term_url":"https:\/\/faq.areabe.com\/?doc_category=swanstor-troubleshooting"},{"term_name":"SWANStor\u306e\u5229\u7528\u306b\u95a2\u3059\u308b","term_url":"https:\/\/faq.areabe.com\/?doc_category=swanstor-use"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/faq.areabe.com\/index.php?rest_route=\/wp\/v2\/docs\/522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/faq.areabe.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/faq.areabe.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/faq.areabe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/faq.areabe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=522"}],"version-history":[{"count":1,"href":"https:\/\/faq.areabe.com\/index.php?rest_route=\/wp\/v2\/docs\/522\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/faq.areabe.com\/index.php?rest_route=\/wp\/v2\/docs\/522\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/faq.areabe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=522"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/faq.areabe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_category&post=522"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/faq.areabe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}