{"action":"created","comment":{"url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/comments/59024031","id":59024031,"diff_hunk":"@@ -168,3 +168,44 @@ The container exposes /config as a volume. This is the directory where the suppl\n If you have transmission authentication enabled and want scripts in another container to access and\n control the transmission-daemon, this can be a handy way to access the credentials.\n For example, another container may pause or restrict transmission speeds while the server is streaming video.\n+\n+## Make it work an a Synology NAS\n+Here are the steps to run it on a Synology NAS (Tested on DSM 6) :\n+\n+- Connect as _admin_ to your Synology SSH\n+- Switch to root with command `sudo su -`\n+- Enter your _admin_ password when prompted\n+- Create a TUN.sh file anywhere in your synology file system by typing `vim /volume1/foldername/TUN.sh`\n+replacing _foldername_ with any folder you created on your Synology\n+- Paste @timkelty 's script :\n+```\n+#!/bin/sh\n+\n+# Create the necessary file structure for /dev/net/tun\n+if ( [ ! -c /dev/net/tun ] ); then\n+\tif ( [ ! -d /dev/net ] ); then\n+\t\tmkdir -m 755 /dev/net\n+\tfi\n+\tmknod /dev/net/tun c 10 200\n+fi\n+\n+# Load the tun module if not already loaded\n+if ( !(lsmod | grep -q \"^tun\\s\") ); then\n+\tinsmod /lib/modules/tun.ko\n+fi\n+```\n+- Save the file with [escape] + `:wq!`\n+- Go in the folder containing your script : `cd /volume1/foldername/`\n+- Check permission with `chmod 0755 TUN.sh`\n+- Run it with `./TUN.sh`\n+- Create the DNS config file by typing `vim /volume1/foldername/resolv.conf`\n+- Paste the following lines :\n+```\n+nameserver 8.8.8.8\n+nameserver 8.8.4.4\n+```\n+- Save the file with [escape] + `:wq!`\n+- Create your docker container with `docker run --privileged -d -v /volume1/foldername/resolv.conf:/etc/resolv.conf -v /volume1/yourpath/:/data -e \"OPENVPN_PROVIDER=PIA\" -e \"OPENVPN_CONFIG=Netherlands\" -e \"OPENVPN_USERNAME=XXXXX\" -e \"OPENVPN_PASSWORD=XXXXX\" -p 9092:9091 haugene/transmission-openvpn -name TransmissionVPN`\n+- If you wish to access WebUI, just run the nginx container as explained in doc on ports 9091:9091","path":"README.md","position":42,"original_position":42,"commit_id":"fbbc8992d904a80527fe26237a4a78d3adde603e","original_commit_id":"fbbc8992d904a80527fe26237a4a78d3adde603e","user":{"login":"haugene","id":1038094,"avatar_url":"https://avatars.githubusercontent.com/u/1038094?v=3","gravatar_id":"","url":"https://api.github.com/users/haugene","html_url":"https://github.com/haugene","followers_url":"https://api.github.com/users/haugene/followers","following_url":"https://api.github.com/users/haugene/following{/other_user}","gists_url":"https://api.github.com/users/haugene/gists{/gist_id}","starred_url":"https://api.github.com/users/haugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haugene/subscriptions","organizations_url":"https://api.github.com/users/haugene/orgs","repos_url":"https://api.github.com/users/haugene/repos","events_url":"https://api.github.com/users/haugene/events{/privacy}","received_events_url":"https://api.github.com/users/haugene/received_events","type":"User","site_admin":false},"body":"With the run command above, and nginx -p 9091:9091 as you say, they would have to change nginx.conf to:\r\n* listen 9091;\r\n* proxy_pass http://host.ip.address.here:9092;\r\n\r\nCould be mentioned...","created_at":"2016-04-08T13:28:29Z","updated_at":"2016-04-08T13:28:29Z","html_url":"https://github.com/haugene/docker-transmission-openvpn/pull/62#discussion_r59024031","pull_request_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/comments/59024031"},"html":{"href":"https://github.com/haugene/docker-transmission-openvpn/pull/62#discussion_r59024031"},"pull_request":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62","id":65780341,"html_url":"https://github.com/haugene/docker-transmission-openvpn/pull/62","diff_url":"https://github.com/haugene/docker-transmission-openvpn/pull/62.diff","patch_url":"https://github.com/haugene/docker-transmission-openvpn/pull/62.patch","issue_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/62","number":62,"state":"open","locked":false,"title":"Updated Readme with synology instructions","user":{"login":"Khogniak","id":7702555,"avatar_url":"https://avatars.githubusercontent.com/u/7702555?v=3","gravatar_id":"","url":"https://api.github.com/users/Khogniak","html_url":"https://github.com/Khogniak","followers_url":"https://api.github.com/users/Khogniak/followers","following_url":"https://api.github.com/users/Khogniak/following{/other_user}","gists_url":"https://api.github.com/users/Khogniak/gists{/gist_id}","starred_url":"https://api.github.com/users/Khogniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khogniak/subscriptions","organizations_url":"https://api.github.com/users/Khogniak/orgs","repos_url":"https://api.github.com/users/Khogniak/repos","events_url":"https://api.github.com/users/Khogniak/events{/privacy}","received_events_url":"https://api.github.com/users/Khogniak/received_events","type":"User","site_admin":false},"body":":)","created_at":"2016-04-08T12:43:02Z","updated_at":"2016-04-08T13:28:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"863538a6278601ff01a8369513529e5eaa6b097b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62/commits","review_comments_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62/comments","review_comment_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/62/comments","statuses_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/statuses/fbbc8992d904a80527fe26237a4a78d3adde603e","head":{"label":"Khogniak:master","ref":"master","sha":"fbbc8992d904a80527fe26237a4a78d3adde603e","user":{"login":"Khogniak","id":7702555,"avatar_url":"https://avatars.githubusercontent.com/u/7702555?v=3","gravatar_id":"","url":"https://api.github.com/users/Khogniak","html_url":"https://github.com/Khogniak","followers_url":"https://api.github.com/users/Khogniak/followers","following_url":"https://api.github.com/users/Khogniak/following{/other_user}","gists_url":"https://api.github.com/users/Khogniak/gists{/gist_id}","starred_url":"https://api.github.com/users/Khogniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khogniak/subscriptions","organizations_url":"https://api.github.com/users/Khogniak/orgs","repos_url":"https://api.github.com/users/Khogniak/repos","events_url":"https://api.github.com/users/Khogniak/events{/privacy}","received_events_url":"https://api.github.com/users/Khogniak/received_events","type":"User","site_admin":false},"repo":{"id":55777248,"name":"docker-transmission-openvpn","full_name":"Khogniak/docker-transmission-openvpn","owner":{"login":"Khogniak","id":7702555,"avatar_url":"https://avatars.githubusercontent.com/u/7702555?v=3","gravatar_id":"","url":"https://api.github.com/users/Khogniak","html_url":"https://github.com/Khogniak","followers_url":"https://api.github.com/users/Khogniak/followers","following_url":"https://api.github.com/users/Khogniak/following{/other_user}","gists_url":"https://api.github.com/users/Khogniak/gists{/gist_id}","starred_url":"https://api.github.com/users/Khogniak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khogniak/subscriptions","organizations_url":"https://api.github.com/users/Khogniak/orgs","repos_url":"https://api.github.com/users/Khogniak/repos","events_url":"https://api.github.com/users/Khogniak/events{/privacy}","received_events_url":"https://api.github.com/users/Khogniak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Khogniak/docker-transmission-openvpn","description":"Docker container which runs Transmission torrent client with WebUI while connecting to OpenVPN","fork":true,"url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn","forks_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/forks","keys_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/teams","hooks_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/hooks","issue_events_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/issues/events{/number}","events_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/events","assignees_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/assignees{/user}","branches_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/branches{/branch}","tags_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/tags","blobs_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/git/refs{/sha}","trees_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/statuses/{sha}","languages_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/languages","stargazers_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/stargazers","contributors_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/contributors","subscribers_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/subscribers","subscription_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/subscription","commits_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/commits{/sha}","git_commits_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/git/commits{/sha}","comments_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/comments{/number}","issue_comment_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/issues/comments{/number}","contents_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/contents/{+path}","compare_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/merges","archive_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/downloads","issues_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/issues{/number}","pulls_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/pulls{/number}","milestones_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/milestones{/number}","notifications_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/labels{/name}","releases_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/releases{/id}","deployments_url":"https://api.github.com/repos/Khogniak/docker-transmission-openvpn/deployments","created_at":"2016-04-08T12:26:46Z","updated_at":"2016-04-08T12:26:57Z","pushed_at":"2016-04-08T12:41:40Z","git_url":"git://github.com/Khogniak/docker-transmission-openvpn.git","ssh_url":"git@github.com:Khogniak/docker-transmission-openvpn.git","clone_url":"https://github.com/Khogniak/docker-transmission-openvpn.git","svn_url":"https://github.com/Khogniak/docker-transmission-openvpn","homepage":"https://hub.docker.com/r/haugene/transmission-openvpn/","size":958,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"haugene:master","ref":"master","sha":"1c808e8a5bb61a87878410e709f1f7644254487d","user":{"login":"haugene","id":1038094,"avatar_url":"https://avatars.githubusercontent.com/u/1038094?v=3","gravatar_id":"","url":"https://api.github.com/users/haugene","html_url":"https://github.com/haugene","followers_url":"https://api.github.com/users/haugene/followers","following_url":"https://api.github.com/users/haugene/following{/other_user}","gists_url":"https://api.github.com/users/haugene/gists{/gist_id}","starred_url":"https://api.github.com/users/haugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haugene/subscriptions","organizations_url":"https://api.github.com/users/haugene/orgs","repos_url":"https://api.github.com/users/haugene/repos","events_url":"https://api.github.com/users/haugene/events{/privacy}","received_events_url":"https://api.github.com/users/haugene/received_events","type":"User","site_admin":false},"repo":{"id":26399764,"name":"docker-transmission-openvpn","full_name":"haugene/docker-transmission-openvpn","owner":{"login":"haugene","id":1038094,"avatar_url":"https://avatars.githubusercontent.com/u/1038094?v=3","gravatar_id":"","url":"https://api.github.com/users/haugene","html_url":"https://github.com/haugene","followers_url":"https://api.github.com/users/haugene/followers","following_url":"https://api.github.com/users/haugene/following{/other_user}","gists_url":"https://api.github.com/users/haugene/gists{/gist_id}","starred_url":"https://api.github.com/users/haugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haugene/subscriptions","organizations_url":"https://api.github.com/users/haugene/orgs","repos_url":"https://api.github.com/users/haugene/repos","events_url":"https://api.github.com/users/haugene/events{/privacy}","received_events_url":"https://api.github.com/users/haugene/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haugene/docker-transmission-openvpn","description":"Docker container which runs Transmission torrent client with WebUI while connecting to OpenVPN","fork":false,"url":"https://api.github.com/repos/haugene/docker-transmission-openvpn","forks_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/forks","keys_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/teams","hooks_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/hooks","issue_events_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/events{/number}","events_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/events","assignees_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/assignees{/user}","branches_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/branches{/branch}","tags_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/tags","blobs_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/git/refs{/sha}","trees_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/statuses/{sha}","languages_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/languages","stargazers_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/stargazers","contributors_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/contributors","subscribers_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/subscribers","subscription_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/subscription","commits_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/commits{/sha}","git_commits_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/git/commits{/sha}","comments_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/comments{/number}","issue_comment_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/comments{/number}","contents_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/contents/{+path}","compare_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/merges","archive_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/downloads","issues_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues{/number}","pulls_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls{/number}","milestones_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/milestones{/number}","notifications_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/labels{/name}","releases_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/releases{/id}","deployments_url":"https://api.github.com/repos/haugene/docker-transmission-openvpn/deployments","created_at":"2014-11-09T15:25:02Z","updated_at":"2016-03-31T09:29:29Z","pushed_at":"2016-04-08T12:43:02Z","git_url":"git://github.com/haugene/docker-transmission-openvpn.git","ssh_url":"git@github.com:haugene/docker-transmission-openvpn.git","clone_url":"https://github.com/haugene/docker-transmission-openvpn.git","svn_url":"https://github.com/haugene/docker-transmission-openvpn","homepage":"https://hub.docker.com/r/haugene/transmission-openvpn/","size":1024,"stargazers_count":45,"watchers_count":45,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":4,"forks":38,"open_issues":4,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62"},"html":{"href":"https://github.com/haugene/docker-transmission-openvpn/pull/62"},"issue":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/62"},"comments":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/haugene/docker-transmission-openvpn/statuses/fbbc8992d904a80527fe26237a4a78d3adde603e"}}}}