Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help With Custom Docker Template for Mysterium Networks

Featured Replies

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;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.

  • 8 months later...

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).

  • 2 weeks later...

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;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.

<?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;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>

 

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.

  • 7 months later...

Thank you @mpalpha that works fine for me.

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

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.