Env var for remote parameter
rgarrigue opened this issue · 3 comments
Hello,
Here a piece of config found in the docker log output
softether_1 | # ========================
softether_1 | # <use the password specified at -e USERS>
softether_1 | # SecureNat MTU set to 1500
softether_1 | # ========================
softether_1 | # Version 4.25 Build 9656 (English)
softether_1 | dev tun
softether_1 | proto udp
softether_1 | remote vpn706636462.v4.softether.net 1194
softether_1 | ;http-proxy-retry
softether_1 | ;http-proxy [proxy server] [proxy port]
softether_1 | cipher AES-128-CBC
softether_1 | auth SHA1
softether_1 | resolv-retry infinite
softether_1 | nobind
softether_1 | persist-key
softether_1 | persist-tun
This remote vpn706636462.v4.softether.net 1194
seems hardcoded. I know that's just some help and one should know how to fix that, but allowing one to set this up via environment var would be more user friendly.
Best regards,
No, it is assigned by SoftEther VPN's Dynamic DNS, so it should be pointing to your Docker host's public IP address when the config is created.
You can change its behavior by modifying the /opt/vpn_server.config
or run the DynamicDnsSetHostname
server command.
Ok, thanks for the intel.
I wish I could have a docker-compose.yml setting up a VPN entirely; without going for "start a first softether container, copy vpn_server.config, customize it, mount this file in the second final container defined in docker-compose.yml".
I mean, i'm don't know much about VPNs, I just wish to input users & passwords, maybe a couple of settings like hostname & ports and be done with it, no fight with certificate, MTU etc.
Do you see a way to do that ?
Best regards,
Refer to Credentials section of README.md
for users & passwords (-e USERS
).
Exposed ports you can control with -p
or in your docker-compose.yml
(or change if you really need to).
I still don't see a case where you have to specify hostname on the server side... please enlighten me with some examples?