Closed recontwo closed 1 year ago
Been messing around with it and asking chatgpt questions, posting the script and asking if theres anything wrong.
Here are the results
I already had this flag in there, as well as in my default.opvn...so wasn't sure what else to test. Did try switching to 1.1.1.1.
I tried the command initially, and it gave a 127.0.0.11 ip initially for name server, then figured...why not switch the network back to the default one
and for some reason, if container is on the vpn_net it stops/crashes the app, but if i switch it to bridge it stays up...i can docker into it and when I run the curl
I had previously created the vpn_net network using the docker command, not via the docker gui interface...not sure what the difference is, but just created a new one called vpnnet, swapped the container over, and deleted vpn_net.
Started the app and it still crashed..
Moved it back over to the default bridge network, started app and it stays up and gets a valid vpn ip
So I guess the question is...whats the difference between the bridge network, and a new one i manually create? Is there something else new ones don't have that the default does? I've been wracking my brain against this and if i had just left it default I could have had it working days ago?... any input would be great. If i do move other containers over, they do stay working...so no idea what to do from here to check but hopefully my mess helps someone else check things out.
Closing out issue as main issue was resolved. Will have to research why the new network created in docker does not work for it, but does for other dockers (tested by moving a few of my other ones and they still worked).
Is there a pinned issue for this?
Is there an existing or similar issue/discussion for this?
Is there any comment in the documentation for this?
Is this related to a provider?
Are you using the latest release?
Have you tried using the dev branch latest?
Docker run config used
Not sure what the actual issue is, if i'm just configuring it wrong, or missing something, so if this is in the wrong area I do apologize. Just started trying to use dockers a few days ago so its all pretty new.
the vpn files cyberghost gave me when I created the connection to test it are uploaded to /volume1/docker/config/openvpn
default.ovpn file (fixed one issue where i was getting --file not found for the ca, client crt and key by adding /etc/openvpn/custom to the path)
Current Behavior
Been trying to get this to work for a few days, following different examples/guides/yt videos and can't seem to figure out what the issue is.
Container starts up, then just dies.
Have found a few issues and resolved them (folder path issues for the cert files in the default.ovpn file for example)
Expected Behavior
It to launch, start transmission and be able to connect to it off my private ip 192.168.1.110:9091
Connecting to the container should be able to run curl ifconfig.me and get the vpn ip, where running it from my nas should give my isp ip.
How have you tried to solve the problem?
Have not tired other releases (not really sure how, just started trying to use docker as my old windows pc I had running cyberghost vpn (gui) started crashing, so trying to move it over to my nas).
Have been able to install transmission on its own using mariushostings script
and this works fine, able to load it up, download test torrents etc. Connecting to the container everything seems to work.
docker exec -it 9e53b64d4d37 /bin/bash root@9e53b64d4d37:/# curl ifconfig.me xx.xx.xx.xx root@9e53b64d4d37:/# ping google.com PING google.com (216.239.38.120): 56 data bytes 64 bytes from 216.239.38.120: seq=0 ttl=117 time=20.202 ms
Script that is working if i enable the network interface i setup using the same cyberghost vpn files (on the nas itself) which then routes all traffic out the vpn. If I enable the vpn interface, then run the same curl, i do get my vpn IP, so it does route it that way, it just breaks all my ddns links and I have to use the private IP to connect.
Log output
Issue looks to be from dns lookup but not sure what setting to change next to test.
HW/SW Environment
Anything else?
Image from cyberghost where I downloaded the files after creating it, using that username/password combo in the docker script
It wouldn't be an issue for me to post them since I can just delete it after and make a new one, if that will help with testing.
Each time i try to run it, i'll delete the docker after it fails and then try to make slight tweaks to it, then just run the whole script again to see if i get a different log.