apcs41 Posted July 27, 2020 Share Posted July 27, 2020 Hi, I'm looking for some assistance, I'm sure it's my understanding of docker that's the problem here. I'm trying to create a docker template for Mysterium Networks see: https://my.mysterium.network/node-running-guide/docker-guide Iv'e configured port forwarding to forward the necessary ports to my unraid server & the following command works & everything works docker run --cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp \ --rm --name myst \ -v $YOUR_MYSTERIUM_DIR:/var/lib/mysterium-node \ mysteriumnetwork/myst \ --experiment-natpunching=false \ service \ --agreed-terms-and-conditions \ --openvpn.port=25007 My problem is translating this to an unraid template while not really understanding how it all works. My docker tem plate runs & I can access the web GUI on port 4449 but the openvpn port does not seem to work under extra parameters I added: --cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp & for post arguments i added: --experiment-natpunching=false service --agreed-terms-and-conditions --openvpn.port=25007 the command generated by unraid is: /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='mysterium' --net='host' --privileged=true -e TZ="Europe/London" -e HOST_OS="Unraid" -v '/mnt/user/appdata/mysterium/':'/var/lib/mysterium-node':'rw' --cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp 'mysteriumnetwork/myst:latest' --experiment-natpunching=false service --agreed-terms-and-conditions --openvpn.port=25007 Here is the content or my docker template: <?xml version="1.0"?> <Container version="2"> <Name>mysterium</Name> <Repository>mysteriumnetwork/myst:latest</Repository> <Registry>https://hub.docker.com/r/mysteriumnetwork/mysterium-node/</Registry> <Network>host</Network> <MyIP/> <Shell>sh</Shell> <Privileged>true</Privileged> <Support/> <Project/> <Overview>Something here</Overview> <Category/> <WebUI>http://[IP]:[PORT:4449]/</WebUI> <TemplateURL/> <Icon>https://avatars2.githubusercontent.com/u/23056638?s=200&amp;v=4</Icon> <ExtraParams>--cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp</ExtraParams> <PostArgs>--experiment-natpunching=false service --agreed-terms-and-conditions --openvpn.port=25007</PostArgs> <CPUset/> <DateInstalled>1595847980</DateInstalled> <DonateText/> <DonateLink/> <Description>Something here</Description> <Networking> <Mode>host</Mode> <Publish/> </Networking> <Data> <Volume> <HostDir>/mnt/user/appdata/mysterium/</HostDir> <ContainerDir>/var/lib/mysterium-node</ContainerDir> <Mode>rw</Mode> </Volume> </Data> <Environment/> <Labels/> <Config Name="Data Path" Target="/var/lib/mysterium-node" Default="/mnt/user/appdata/mysterium/" Mode="rw" Description="Container Path: /var/lib/mysterium-node" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/mysterium/</Config> </Container> Here's hoping someone with more experience than myself can offer some input. Any & all advice would be greatly appreciated. Quote Link to comment
akawoz Posted April 9, 2021 Share Posted April 9, 2021 Did you ever get any further with this - I'm trying to manually add Mysterium as a docker container but with little luck (openvpn doesn't start). Quote Link to comment
mpalpha Posted April 20, 2021 Share Posted April 20, 2021 I got it working by pulling in the docker container from apps by searching for "myst" Then in the config: Name: myst Repository: mysteriumnetwork/myst Docker Hub URL: https://hub.docker.com/r/mysteriumnetwork/myst/ Icon URL: https://avatars2.githubusercontent.com/u/23056638?s=200&amp;v=4 WebUI: http://[IP]:[PORT:4449] Extra Parameters: --cap-add NET_ADMIN -p 4449:4449 -p 1194:1194/udp Post Arguments: service --agreed-terms-and-conditions --openvpn.port=1194 Network Type: host Console shell command: shell Privileged: off Config: /mnt/user/appdata/myst/ (Container Path: /var/lib/mysterium-node) Then in router forward both udp/tcp for ports 1194 and 4449 to your server ip address. You could likely then submit it to the unraid repo: Stop the server, then go into unraid docker settings and enable dev mode and pull the generated xml, then throw it on github, and contact the package repo admin with the details. 1 Quote Link to comment
mpalpha Posted April 25, 2021 Share Posted April 25, 2021 <?xml version="1.0"?> <Container version="2"> <Name>myst</Name> <Repository>mysteriumnetwork/myst</Repository> <Registry>https://hub.docker.com/r/mysteriumnetwork/myst/</Registry> <Network>host</Network> <MyIP/> <Shell>sh</Shell> <Privileged>false</Privileged> <Support>https://hub.docker.com/r/mysteriumnetwork/myst/</Support> <Project/> <Overview>Server and Client for decentralised VPN built on blockchain Converted By Community Applications Always verify this template (and values) against the dockerhub support page for the container</Overview> <Category>Network:VPN</Category> <WebUI>http://[IP]:[PORT:4449]</WebUI> <TemplateURL/> <Icon>https://avatars2.githubusercontent.com/u/23056638?s=200&amp;amp;amp;v=4</Icon> <ExtraParams>--cap-add NET_ADMIN -p 4449:4449 -p 1194:1194/udp</ExtraParams> <PostArgs>service --agreed-terms-and-conditions --openvpn.port=1194</PostArgs> <CPUset/> <DateInstalled>1619372037</DateInstalled> <DonateText/> <DonateLink/> <Description>Server and Client for decentralised VPN built on blockchain Converted By Community Applications Always verify this template (and values) against the dockerhub support page for the container</Description> <Networking> <Mode>host</Mode> <Publish/> </Networking> <Data> <Volume> <HostDir>/mnt/user/appdata/myst/</HostDir> <ContainerDir>/var/lib/mysterium-node</ContainerDir> <Mode>rw</Mode> </Volume> </Data> <Environment/> <Labels/> <Config Name="Config" Target="/var/lib/mysterium-node" Default="" Mode="rw" Description="Container Path: /var/lib/mysterium-node" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/myst/</Config> </Container> Quote Link to comment
Squid Posted April 25, 2021 Share Posted April 25, 2021 Technically OCD since the net result is the same, but the -p stuff you're adding into extra parameters doesn't really belong there, and should instead be done via adding a port to the template. Quote Link to comment
Pascal51882 Posted December 3, 2021 Share Posted December 3, 2021 Thank you @mpalpha that works fine for me. Quote Link to comment
rango3221 Posted December 5, 2021 Share Posted December 5, 2021 iam using the same setup as above, but on the webui always see accepting connections: limited. is there anything else i need to do? I have already forwarded the ports 1194 on my router Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.