Try:
openvpn --remote "127.0.0.1" --port 10153
On 18/03/2021 23:47, 8187--- via Openvpn-users wrote:
Hello, list,
This is probably obvious to the rest of you, but I am not able to give openvpn
multi parameter options on the command line:
sudo openvpn --remote "127.0.0.1 10153" --route "162.245.206.244 255.255.255.255
net_gateway" --config=/etc/stunnel/vpn/openvpn.conf
fails from the command line on ubuntu 20, but the same options work fine when
they are included in the --config file:
<<
remote 127.0.0.1 10153
route 162.245.206.244 255.255.255.255 net_gateway
This is openvpn though a stunnel. Stunnel opens a vpn tunnel from
localhost:port to the vpn server at a specific ip:port combination. Openvpn
then uses the localhost:port as its remote parameter. It works great when
everything is in the config file. But, when we change the stunnel addresses,
and then try to use them from the command line, we get:
<<
RESOLVE: Cannot resolve host address: 127.0.0.1/10153:1194 (Name or service not
known)
The config file has all the other parameters, keys, certs, etc., and they work
when remote and port is given in the config file.
So what obvious thing am I missing? I've tried '', "",
remote=127.0.0.1\_10153, and more.
Many thanks!
Gordon
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users