{"id":120,"date":"2021-07-09T11:09:52","date_gmt":"2021-07-09T19:09:52","guid":{"rendered":"http:\/\/iaastalk.com\/?p=120"},"modified":"2021-07-09T11:14:13","modified_gmt":"2021-07-09T19:14:13","slug":"dsm-7-0-haugene-transmission-with-openvpn","status":"publish","type":"post","link":"http:\/\/iaastalk.com\/?p=120","title":{"rendered":"DSM 7.0 haugene transmission with openvpn"},"content":{"rendered":"\n<p>docker container stopped working after upgrade to DSM 7.0 with Synology NAS.<\/p>\n\n\n\n<p>This is due to tighten permission in DSM 7.0. It can be fixed by enabling  container capacity &#8220;NET_ADMIN&#8221;. The problem is the DSM docker UI does not support this feature. This can be easier done in portainer, another open source container manager.<\/p>\n\n\n\n<p>Here is the steps to deploy portainer as a container. This requires ssh into DSM 7.0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># ssh into your nas as administrator\nssh nas -l admin\n\n# create  dir for holding portainer config\nsudo mkdir  \/volume1\/docker\/portainer\n\n# deploy portainer as a container thru docker, please ensure ports still available\nsudo docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v \/var\/run\/docker.sock:\/var\/run\/docker.sock -v \/volume1\/docker\/portainer:\/data portainer\/portainer-ce<\/code><\/pre>\n\n\n\n<p>If everything goes thru fine, portainer container should be up and running.  This can be verified in dsm docker ui as well. <\/p>\n\n\n\n<p>connect to portainer at http:\/\/nas:9000 in browser.<\/p>\n\n\n\n<p>Set up  initial password<\/p>\n\n\n\n<p>Select connect to &#8220;docker&#8221; <\/p>\n\n\n\n<p>go to containers:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-11.56.40-AM.png\"><img loading=\"lazy\" width=\"1083\" height=\"654\" src=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-11.56.40-AM.png\" alt=\"\" class=\"wp-image-121\"\/><\/a><\/figure>\n\n\n\n<p>You are supposed to see all your containers, haugene container should be stopped state. (one of mine is up since screenshot is taken after everything fixed.)<\/p>\n\n\n\n<p>Please focus on container haugene-transimission-openvpn3, this is the original one that stopped working after upgrade to dsm 7.0.<\/p>\n\n\n\n<p>open &#8220;haugene-transimission-openvpn3&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.01.00-PM.png\"><img loading=\"lazy\" width=\"1105\" height=\"507\" src=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.01.00-PM.png\" alt=\"\" class=\"wp-image-122\"\/><\/a><\/figure>\n\n\n\n<p>Click &#8220;Duplicate\/Edit&#8221; button on the top right, then you will have an opportunity  to re-config a copy of original container.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.02.42-PM.png\"><img loading=\"lazy\" width=\"1285\" height=\"1156\" src=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.02.42-PM.png\" alt=\"\" class=\"wp-image-123\"\/><\/a><\/figure>\n\n\n\n<p>change the name so that you can tell this is a new container..<\/p>\n\n\n\n<p>Click &#8220;Advanced container settings&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.06.00-PM.png\"><img loading=\"lazy\" width=\"1567\" height=\"1121\" src=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.06.00-PM.png\" alt=\"\" class=\"wp-image-124\"\/><\/a><\/figure>\n\n\n\n<p>Disable &#8220;Privileged mode&#8221; in &#8220;Runtime &amp; Resources&#8221; tab.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.06.11-PM.png\"><img loading=\"lazy\" width=\"1579\" height=\"1139\" src=\"http:\/\/iaastalk.com\/wp-content\/uploads\/2021\/07\/Screen-Shot-2021-07-09-at-12.06.11-PM.png\" alt=\"\" class=\"wp-image-125\"\/><\/a><\/figure>\n\n\n\n<p>Enable &#8220;NET_ADMIN&#8221; in Capability tab.<\/p>\n\n\n\n<p>Click &#8220;Deploy the container&#8221; button, then you are done. It should be up and running in a few secs. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Verify if traffics are going thru vpn at <a href=\"http:\/\/checkmyip.torrentprivacy.com\/\">http:\/\/checkmyip.torrentprivacy.com\/<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>docker container stopped working after upgrade to DSM 7.0 with Synology NAS. This is due to tighten permission in DSM 7.0. It can be fixed by enabling container capacity &#8220;NET_ADMIN&#8221;. The problem is the DSM docker UI does not support this feature. This can be easier done in portainer, another open source container manager. Here [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/iaastalk.com\/index.php?rest_route=\/wp\/v2\/posts\/120"}],"collection":[{"href":"http:\/\/iaastalk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iaastalk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iaastalk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iaastalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=120"}],"version-history":[{"count":3,"href":"http:\/\/iaastalk.com\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":128,"href":"http:\/\/iaastalk.com\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions\/128"}],"wp:attachment":[{"href":"http:\/\/iaastalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iaastalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iaastalk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}