Skip to content
Discussion options

You must be logged in to vote

In my case, the underlying issue is that OpenVPN adds routes after the script is executed. As a result, when the pre-start script runs, the tunnel is up but nothing is routed through the VPN. You can override DNS settings, but this will end up routing through the host, which results in your public IP being sent to the API.

To mitigate this, I modified the script to retry the API call on failure. FYI @TheBrickster, I think we are trying to do exactly the same thing - "dynamicSeedbox.php" gave it away ;)

#!/bin/bash

# /scripts/transmission-pre-start.sh

function schedule_retry {
    # Doing it this way because the container does not have `at` installed...
    echo "Scheduling retry..."

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pkishino
Comment options

@TheBrickster
Comment options

Comment options

You must be logged in to vote
3 replies
@aksiksi
Comment options

@jsmith432
Comment options

@mhbates
Comment options

Answer selected by TheBrickster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants