Jump to content
binhex

[Support] binhex - DelugeVPN

3756 posts in this topic Last Reply

Recommended Posts

Hi all,

 

My torrents don't transfer from incomplete folder where my download go, to the completed folder where downloads go when they are done.

 

Here is the error it generates. Any help fixing this would be appreciated.

 

2017-02-09 05:41:12,328 DEBG 'deluge-script' stderr output:
Unhandled Error

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/deluge/main.py", line 238, in start_daemon
Daemon(options, args)
File "/usr/lib/python2.7/site-packages/deluge/core/daemon.py", line 177, in __init__
reactor.run()
File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 1199, in run
self.mainLoop()
File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 1208, in mainLoop
self.runUntilCurrent()
--- <exception caught here> ---
File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 828, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.7/site-packages/deluge/core/torrentmanager.py", line 949, in on_alert_torrent_finished
torrent.move_storage(torrent.options["move_completed_path"])
File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 913, in move_storage
self.torrent_id, dest, ex)
exceptions.NameError: global name 'ex' is not defined

Share this post


Link to post

I apologize if this isn't the right place to ask, but does anyone have filebot AMC working with this?

If so would you mind telling me how you did it?

 

I'm looking to use my server for my downloading and reanaming... Currently I'm using a seperate pc running Utorrent with a really specific set up for Filebot AMC that I love (I am aware there are other renames on Unraid, but I'd prefer to stick with Filebot if possible). On Windows filebot amc is  integrated right into the torrent program that's why I'm posting here since I'd imagine it would be on Unraid too.

 

I configured Deluge to run a script once I've reached a ratio of 2.0.  That script moves the files from the deluge downloaded directory to the filebot docker watch directory.  Pretty simple.  I'm not at home to post the script but it's basically one line.

Share this post


Link to post

I apologize if this isn't the right place to ask, but does anyone have filebot AMC working with this?

If so would you mind telling me how you did it?

 

I'm looking to use my server for my downloading and reanaming... Currently I'm using a seperate pc running Utorrent with a really specific set up for Filebot AMC that I love (I am aware there are other renames on Unraid, but I'd prefer to stick with Filebot if possible). On Windows filebot amc is  integrated right into the torrent program that's why I'm posting here since I'd imagine it would be on Unraid too.

 

I configured Deluge to run a script once I've reached a ratio of 2.0.  That script moves the files from the deluge downloaded directory to the filebot docker watch directory.  Pretty simple.  I'm not at home to post the script but it's basically one line.

 

Hey great.  If you wouldn't mind could you tell me pretty much your whole filebot set up?  Are you using the Phaze plug in or are you using a Docker?  I just tried the Phaze plugin and have no idea how to even set the watch folder let alone tell it what I want my parameters to be - I can't make heads or tails of it. 

I think I could easily make a watched folder work for my purposes on Unraid.  It'd basically be the same thing as AMC.

Share this post


Link to post

Hey great.  If you wouldn't mind could you tell me pretty much your whole filebot set up?  Are you using the Phaze plug in or are you using a Docker?  I just tried the Phaze plugin and have no idea how to even set the watch folder let alone tell it what I want my parameters to be - I can't make heads or tails of it. 

I think I could easily make a watched folder work for my purposes on Unraid.  It'd basically be the same thing as AMC.

 

I use showrss.info to get new TV episodes through deluge`s YaRSS2 plugin.

 

Then the execute plugin in deluge runs this script on the "torrent removed" event:

#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
mv "$torrentpath/$torrentname" /removed/.
echo "`date` - $torrentpath/$torrentname" >> /config/script/move_removed.log

 

I added the mapping of "/removed" in the delugeVPN docker.  It points to my filebot watched directory.

 

I use the coppit filebot container and the /input is mapped to the same directory as /removed above.

/output is mapped to "/mnt/cache"

 

I customised my filebot.sh to sort kids and "normal" movies and TV series and deal with multilingual subtitles.  I think the log output is also modified.  Filebot doesn't truncate it's logs ever and I like to have easy access to them anyway.  Sometimes I loose files because it takes odd choices picking names

#!/bin/bash

# This script by default uses "Automated Media Center" (AMC). See the final filebot call below. For more docs on AMC,
# visit: http://www.filebot.net/forums/viewtopic.php?t=215

#-----------------------------------------------------------------------------------------------------------------------

# Specify the URLs of any scripts that you need. They will be downloaded into /config/scripts
SCRIPTS_TO_DOWNLOAD=(
# Example:
# https://raw.githubusercontent.com/filebot/scripts/devel/cleaner.groovy
)

#-----------------------------------------------------------------------------------------------------------------------

QUOTE_FIXER='replaceAll(/[\`\u00b4\u2018\u2019\u02bb]/, "'"'"'").replaceAll(/[\u201c\u201d]/, '"'"'""'"'"')'

MUSIC_FORMAT="music/{n.$QUOTE_FIXER}/{album.$QUOTE_FIXER}/{media.TrackPosition.pad(2)} - {t.$QUOTE_FIXER}"

MOVIE_FORMAT="{genres.contains('Family') ? 'kids/movies/' : 'movies/'}{n.$QUOTE_FIXER} [{y}] {' CD'+pi}"

SERIES_FORMAT="{genres.contains('Family') ? 'kids/tv/' : 'tv/'}{n}/{n} - {episode.special ? 's00e'+special.pad(2) : s00e00.lower()} - {t.${QUOTE_FIXER}.replaceAll(/[!?.]+$/).replacePart(', Part $1')}{'.'+lang}"

. /files/FileBot.conf

if [ "$SUBTITLE_LANG" == "" ];then
  SUBTITLE_OPTION=""
else
  SUBTITLE_OPTION="subtitles=$SUBTITLE_LANG"
fi

#-----------------------------------------------------------------------------------------------------------------------

# Used to detect old versions of this script
VERSION=3

# Download scripts and such.
. /files/pre-run.sh

# See http://www.filebot.net/forums/viewtopic.php?t=215 for details on amc
filebot -script fn:amc -no-xattr --def minLengthMS=0 --def minFileSize=1000 --output /output --log-file /config/amc.log --action move --conflict auto \
  -non-strict --def ut_dir=/input ut_kind=multi music=y deleteAfterExtract=y clean=y \
  excludeList=/config/amc-exclude-list.txt $SUBTITLE_OPTION \
  movieFormat="$MOVIE_FORMAT" musicFormat="$MUSIC_FORMAT" seriesFormat="$SERIES_FORMAT"

 

And finally, filebot.conf, again with bilingual subtitles:

# If we don't see any events for $SETTLE_DURATION time, assume that it's safe to run FileBot. Format is HH:MM:SS,
# with HH and MM optional.
SETTLE_DURATION=10

# However, if we see a stream of changes for longer than $MAX_WAIT_TIME with no break of $SETTLE_DURATION or more, then
# go ahead and run FileBot. Otherwise we might be waiting forever for the directory to stop changing. Format is
# HH:MM:SS, with HH and MM optional.
MAX_WAIT_TIME=01:00

# After running FileBot, wait at least this long before running it again, even if $SETTLE_DURATION time has passed
# after change. This controls the maximum frequency of FileBot.
MIN_PERIOD=01:00

# Set this to 1 to log all events, for debugging purposes. WARNING! This creates copious amounts of confusing logging!
DEBUG=0

# Create an account at http://www.opensubtitles.org/ if you want to download subtitles
OPENSUBTITLES_USER="XXXXXXXX"
OPENSUBTITLES_PASSWORD="XXXXXXXX"

# Set this to a language code if you want to download subtitles. e.g. Use "en" for english
SUBTITLE_LANG="en,fr"

 

Have fun

 

Share this post


Link to post

Hi all,

 

My torrents don't transfer from incomplete folder where my download go, to the completed folder where downloads go when they are done.

 

2017-02-09 05:41:12,328 DEBG 'deluge-script' stderr output:

File "/usr/lib/python2.7/site-packages/deluge/core/torrentmanager.py", line 949, in on_alert_torrent_finished
torrent.move_storage(torrent.options["move_completed_path"])
File "/usr/lib/python2.7/site-packages/deluge/core/torrent.py", line 913, in move_storage
self.torrent_id, dest, ex)
exceptions.NameError: global name 'ex' is not defined

 

It looks like the destination for the completed files is not defined.  The logs only show the variable name, not it's content, what path did you tell it to move the files to?

 

Is the completed destination path "known" inside the docker?  Do you have a mapping defined for it in the docker settings? 

Share this post


Link to post

 

I added the mapping of "/removed" in the delugeVPN docker.  It points to my filebot watched directory.

 

I use the coppit filebot container and the /input is mapped to the same directory as /removed above.

/output is mapped to "/mnt/cache"

 

Thanks a ton! Quick follow up, which may be silly. With your output for filebot being set to "/mnt/cache" - i imagine that means mover will move it to the array automatically for whenever you have it scheduled to run?  My download share is set to cache only and the filebot input folder will be pointed at a folder in there. But as long as my filebot is pointing to my media share (which is not cache only) and the output for filebot is to mnt/cache I imagine mover will place it on the array in the correct place each night right?

Share this post


Link to post

 

Thanks a ton! Quick follow up, which may be silly. With your output for filebot being set to "/mnt/cache" - i imagine that means mover will move it to the array automatically for whenever you have it scheduled to run?  My download share is set to cache only and the filebot input folder will be pointed at a folder in there. But as long as my filebot is pointing to my media share (which is not cache only) and the output for filebot is to mnt/cache I imagine mover will place it on the array in the correct place each night right?

 

Yes, delugeVPN works on a cache-only directory and the files renamed by filebot are moved to the array nightly by the mover.  Just setup filebot.sh to copy your files to the correct path

Share this post


Link to post

 

I use showrss.info to get new TV episodes through deluge`s YaRSS2 plugin.

 

 

Oy, sorry to be a pain - but I am not very clear on how to install the YaRSS2 plugin. From what I can tell I need an egg... and that's about as far as I got.  Could you explain how that process works if you wouldn't mind?

 

Or do you think it would be a smarter route for me just to uninstall the DelugeVPN and install binhex's rTorrentVPN Docker that apparently has RSS built in?

Share this post


Link to post

The egg is just a packaged plugin. I did that a while ago but I think you just need to download the right egg and load it in the plugins settings.

 

If you're early in your setup, switching to rtorrent might be easier but I don't really know.  Anecdotal evidence is that rtorrent is faster with transfers so it's been on my todo to play with it but I haven't done it yet.

 

 

Share this post


Link to post

 

Oy, sorry to be a pain - but I am not very clear on how to install the YaRSS2 plugin. From what I can tell I need an egg... and that's about as far as I got.  Could you explain how that process works if you wouldn't mind?

 

Or do you think it would be a smarter route for me just to uninstall the DelugeVPN and install binhex's rTorrentVPN Docker that apparently has RSS built in?

 

Download the egg from http://dev.deluge-torrent.org/wiki/Plugins/YaRSS2#Download to your local machine. On you webgui, Preferences, Plugins, Install, then find the egg you downloaded.

 

I have the YaRSS2 plugin installed and working on mine, but please be aware that you cannot actually configure it from the webgui. I migrated my setup from a Windows box and took ages to work this out. In order to configure the settings on YaRSS2, you will needed to install Deluge on a Windows machine, then remotely connect it to the docker deluge host. All the downloading is still done via the docker deluge host. I still use the webgui day to day and only use the full client to change YaRSS2 settings.

Share this post


Link to post

That sounds like a pain.  I went ahead and installed the rTorrentVPN docker - and RSS is built in and works like a charm.

Now I'll just work on getting Filebot and I'll be done!  Thanks for all your help!

Share this post


Link to post

For anyone interested in easy seeding and saving space on your cache drive.

 

Many of you probably already know this, but if you want to continue seeding after Couchpotato and Sickbeard move your files, then the Deluge docker container must have your "/Media" folder mapped in the same manner as in the other containers. Otherwise the symlinks will fail. This involves clicking on "Add another path,port or variable" and filling it out in your torrent docker.

 

Originally I believed the symlinks would work until I restarted Unraid or Deluge. But in reality deluge had a lock on the file, and Couchpotato or Sickbeard would leave a .fuse.. of the same size after renaming. Once seeding was interrupted, then the .fuse.. file disappeared and the ability to seed was lost. After mapping the "/Media" folder, then the symlinks survive a reboot on Unraid, and allow a re-check of the torrent, etc. You will need to pause then resume the torrent or restart deluge to unlock the .fuse.. files to free up the space on your cache drive. This happens often enough between backups and upgrades, so not a big deal.

 

BTW, it seams that Sonarr won't continue seeding on my setup since it only uses hardlinks and hardlinks won't work across disks or shares. Which is why the change back to Sickbeard.

 

I want to thank Binhex for make a great collection of docker containers. He truly has made Unraid an enjoyable experience.

Share this post


Link to post
... you will needed to install Deluge on a Windows machine, then remotely connect it to the docker deluge host...

 

Can anyone explain how to do this? which username and password needs to be used?

 

thanks

Share this post


Link to post

... you will needed to install Deluge on a Windows machine, then remotely connect it to the docker deluge host...

 

Can anyone explain how to do this? which username and password needs to be used?

 

thanks

Just did this yesterday, here is what you'll need to to get up and running.

 

[*]Create a user in the deluge auth file other than the existing local user.

Set you own username/password as explained here: http://dev.deluge-torrent.org/wiki/UserGuide/Authentication

[*]Make note of your unraid IP address, and the used deluge port should be 58846 unless you changed it

[*]Download deluge for windows, make sure the version matches deluge version in unraid (shown in tab of webUI, currently 1.3.13)

[*]Once installed, go preferences > interface > untick classic mode, then restart deluge

[*]In deluge connection manager add your details you previously noted above, click add then connect

 

Share this post


Link to post

Hello.

I have installed Deluge and followed the instructions to the letter, I have also installed the Chrome Syphon extension. Every time I try to download a torrent I get the message "Torrent Requested" then a five second delay, then two messages " Error communicating with Deluge Server" and " Torrent not Added".

It's driving me nuts. I've tried everything. If I use siphon to try to open the web UI of Deluge, the WebUI opens but presents a box asking for the password. I know the password is correct because I can open the Deluge WebUI from the Docker using the password.

Has anybody any ideas because other than that it's all set up and seems to have potential.  :)

Why is there a comms error? Symphony is pointed at exactly the right address i.e.:- 192.168.1.15:8112

 

I have attached the log below:-

2017-02-12 10:29:31.655094 [info] Starting Supervisor...

2017-02-12 10:29:31,849 CRIT Set uid to user 0

2017-02-12 10:29:31,849 INFO Included extra file "/etc/supervisor/conf.d/delugevpn.conf" during parsing

2017-02-12 10:29:31,851 INFO supervisord started with pid 6

2017-02-12 10:29:32,853 INFO spawned: 'checkproc-script' with pid 50

2017-02-12 10:29:32,854 INFO spawned: 'start-script' with pid 51

2017-02-12 10:29:32,855 INFO spawned: 'deluge-script' with pid 52

2017-02-12 10:29:32,857 INFO spawned: 'deluge-web-script' with pid 53

2017-02-12 10:29:32,858 INFO spawned: 'privoxy-script' with pid 54

2017-02-12 10:29:32,863 DEBG 'deluge-script' stdout output:

[info] Deluge config file already exists, skipping copy

 

2017-02-12 10:29:32,863 INFO success: checkproc-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

2017-02-12 10:29:32,863 INFO success: start-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

2017-02-12 10:29:32,863 INFO success: deluge-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

2017-02-12 10:29:32,864 INFO success: deluge-web-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

2017-02-12 10:29:32,864 INFO success: privoxy-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)

2017-02-12 10:29:32,864 DEBG 'deluge-script' stdout output:

[info] VPN not enabled, skipping VPN tunnel local ip/port checks

 

2017-02-12 10:29:32,865 DEBG 'start-script' stdout output:

[info] VPN not enabled, skipping configuration of VPN

 

2017-02-12 10:29:32,865 DEBG fd 11 closed, stopped monitoring <POutputDispatcher at 47958895825048 for <Subprocess at 47958895825264 with name start-script in state RUNNING> (stdout)>

2017-02-12 10:29:32,865 DEBG fd 16 closed, stopped monitoring <POutputDispatcher at 47958895825624 for <Subprocess at 47958895825264 with name start-script in state RUNNING> (stderr)>

2017-02-12 10:29:32,865 INFO exited: start-script (exit status 0; expected)

2017-02-12 10:29:32,865 DEBG received SIGCLD indicating a child quit

2017-02-12 10:29:32,866 DEBG 'privoxy-script' stdout output:

[info] Privoxy set to disabled

 

2017-02-12 10:29:32,866 DEBG fd 27 closed, stopped monitoring <POutputDispatcher at 47958895744424 for <Subprocess at 47958895826992 with name privoxy-script in state RUNNING> (stdout)>

2017-02-12 10:29:32,866 DEBG fd 31 closed, stopped monitoring <POutputDispatcher at 47958895745432 for <Subprocess at 47958895826992 with name privoxy-script in state RUNNING> (stderr)>

2017-02-12 10:29:32,866 INFO exited: privoxy-script (exit status 0; expected)

2017-02-12 10:29:32,866 DEBG received SIGCLD indicating a child quit

2017-02-12 10:29:32,869 DEBG 'deluge-script' stdout output:

[info] Attempting to start Deluge...

 

2017-02-12 10:29:33,129 DEBG 'deluge-script' stderr output:

/usr/lib/python2.7/site-packages/deluge/_libtorrent.py:59: RuntimeWarning: to-Python converter for boost::shared_ptr<libtorrent::alert> already registered; second conversion method ignored.

import libtorrent as lt

 

2017-02-12 10:29:33,179 DEBG 'deluge-web-script' stdout output:

[info] Starting Deluge webui...

2017-02-12 11:34:51,964 DEBG 'deluge-web-script' stderr output:

/usr/lib/python2.7/site-packages/pkg_resources/__init__.py:1294: UserWarning: /home/nobody/.cache/Python-Eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).

warnings.warn(msg, UserWarning)

 

2017-02-12 11:35:48,614 DEBG 'deluge-web-script' stderr output:

[ERROR ] 11:35:48 client:391 RPCError Message Received!

 

--------------------------------------------------------------------------------

RPCRequest: core.add_torrent_url(https://classic.torrentday.com/download.php/2205915/David_Bowie-Legacy-Remastered-2CD-FLAC-2016-FORSAKEN.torrent, {u'add_paused': False, u'move_completed_path': u'/data/Complete', u'download_location': u'/data/Incomplete', u'move_completed': True}, {u'cookie': u'PHPSESSID=q4kvva5q9jj68h6utglatcgiq1', u'user-agent': u'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'})

--------------------------------------------------------------------------------

File "/usr/lib/python2.7/site-packages/deluge/core/rpcserver.py", line 315, in on_fail

failure.raiseException()

File "<string>", line 2, in raiseException

 

Error:

 

 

Share this post


Link to post

Just did this yesterday, here is what you'll need to to get up and running.

 

thank you, i had seen this covered on the deluge wiki but had assumed there would need to be some extra complexity involved! all working now, what a useful tool

Share this post


Link to post

This has just taken me a while to work out what was going on.

 

Has anyone had a problem where extractor would truncate the .rar file as it is trying to extract it? I thought I had a bad torrent but on disabling extractor, the file is complete again.

 

Weird huh?

Share this post


Link to post

Does delugevpn utilise upnp properly for port forwarding? I'm showing as not connectable on the torrent site that I use and running 'netstat -tulpn' from SSH doesn't list any ports that relate to the deluge process.

Share this post


Link to post

Does delugevpn utilise upnp properly for port forwarding? I'm showing as not connectable on the torrent site that I use and running 'netstat -tulpn' from SSH doesn't list any ports that relate to the deluge process.

 

upnp wont help you, this doesnt use port forwarding defined on your lan/router, it uses your vpn providers port forwarding facility, if your using PIA then this is done for you automatically (assuming your connected to a port forward enabled endpoint), otherwise you will need to find out how your vpn provider provides the port forward (if at all, not all providers allow this).

Share this post


Link to post

I use delugevpn with the vpn variable off, incase I sign up to a vpn in future then I don't need to reinstall the docker.

 

Does it just not work with upnp at all? Or does it need to be set to host instead of bridge?

Share this post


Link to post

I use delugevpn with the vpn variable off, incase I sign up to a vpn in future then I don't need to reinstall the docker.

 

Does it just not work with upnp at all? Or does it need to be set to host instead of bridge?

 

ahh fair enough, i dont know if it works with upnp, i stay away from upnp due to the security risks involved with it, dont switch it to host mode though, as this will prevent it from operating should you wish to switch on the vpn feature.

Share this post


Link to post

So is the fix to manually specify a port, add that host port in the configuration and then forward it from my router?

Share this post


Link to post

So is the fix to manually specify a port, add that host port in the configuration and then forward it from my router?

 

yes, so just to be clear about the procedure:-

 

1. add port to the docker, define whatever port you want, just make sure its not already in use.

2. set deluge to use the container port you defined from step 1. as the incoming port

3. define a port forward on your router that matches the host port you defined in step 1.

Share this post


Link to post

Kind of like double NAT then, I've done all the above and checked on canyouseeme.org and the port now shows as open so we'll see if it makes any difference!

 

Cheers.

Share this post


Link to post

Got a serious issue with fragmentation of IPv4 packets using traffic over PIA.

I got 100/100 and when i get around 3MB/s, my cisco router goes to 100% CPU usage due to fragmentation of packets.

Verified the fragmentation with Netdata on the server itself, on 500kb/s i get well over 1000 fragmentet packets/s

Tried setting the MTU in unraid as low as 1300, but no help in that.

 

Found a solution to this on this site: http://stackoverflow.com/questions/36306243/what-is-difference-between-mtu-and-fragment-option-in-openvpn2-0-configuration

Links to OpenVPN Manual, and there i find something interesting

--fragment max

Enable internal datagram fragmentation so that no UDP datagrams are sent which are larger than max bytes.

The max parameter is interpreted in the same way as the --link-mtu parameter, i.e. the UDP packet size after encapsulation overhead has been added in, but not including the UDP header itself.

 

The --fragment option only makes sense when you are using the UDP protocol ( --proto udp ).

 

--fragment adds 4 bytes of overhead per datagram.

 

See the --mssfix option below for an important related option to --fragment.

 

It should also be noted that this option is not meant to replace UDP fragmentation at the IP stack level. It is only meant as a last resort when path MTU discovery is broken. Using this option is less efficient than fixing path MTU discovery for your IP link and using native IP fragmentation instead.

 

Having said that, there are circumstances where using OpenVPN's internal fragmentation capability may be your only option, such as tunneling a UDP multicast stream which requires fragmentation.

 

--mssfix max

Announce to TCP sessions running over the tunnel that they should limit their send packet sizes such that after OpenVPN has encapsulated them, the resulting UDP packet size that OpenVPN sends to its peer will not exceed max bytes.

The max parameter is interpreted in the same way as the --link-mtu parameter, i.e. the UDP packet size after encapsulation overhead has been added in, but not including the UDP header itself.

 

The --mssfix option only makes sense when you are using the UDP protocol for OpenVPN peer-to-peer communication, i.e. --proto udp.

 

--mssfix and --fragment can be ideally used together, where --mssfix will try to keep TCP from needing packet fragmentation in the first place, and if big packets come through anyhow (from protocols other than TCP), --fragment will internally fragment them.

 

Both --fragment and --mssfix are designed to work around cases where Path MTU discovery is broken on the network path between OpenVPN peers.

 

The usual symptom of such a breakdown is an OpenVPN connection which successfully starts, but then stalls during active usage.

 

If --fragment and --mssfix are used together, --mssfix will take its default max parameter from the --fragment max option.

 

Therefore, one could lower the maximum UDP packet size to 1300 (a good first try for solving MTU-related connection problems) with the following options:

 

--tun-mtu 1500 --fragment 1300 --mssfix

 

Is there a possibility to get these options for easy tinkering and testing?

Tried to manually edit the .ovpn file, but as an unraid/docker-noobie, i could not seem to get it to work, ovpn file gets overwritten all the time

 

at the moment, no there is no facility to add in additional command line options, however i could code this in in the future to allow this as an env var. for now if you want to have a play you will have to docker exec in and then modify the script /root/openvpn.sh, e.g.:-

 

docker exec -it <name of container> /bin/bash
nano /root/openvpn.sh

 

then add the additional command line optons you want to the variable defined as "openvpn_cli", link to source code (line 4):- https://github.com/binhex/arch-openvpn/blob/master/apps/root/openvpn.sh

 

this is now in, you an define additional openvpn options by creating the new env var key VPN_OPTIONS and then defining the value to whatever you want, this will then append these options to the end of the constructed command line.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now