Page 1 of 1

How to connect to multiple OpenVPN Server in Windows 10?

Posted: Wed Sep 01, 2021 12:43 pm
by testcb00
Hi everyone,

I would like to know how to connect to multiple OpenVPN Server in Windows 10.
I created some OpenVPN Server in my pfSense Router. I installed OpenVPN Community in my PC.
I ran the Add a new TAP-Windows6 virtual network adapter ‪[C:\Program Files\OpenVPN\bin\tapctl.exe] to create the TAP adapter.
However, I don't know how to edit the config. I have tried to rename the new created TAP adapter to tap1 and edit the config: dev tap1.
Using this config, I can establish connection, but I cannot access my network. This mean this config cannot approach multiple connection.

Any suggestion are welcome.

My client config is like this

Client Config

dev tun
persist-tun
persist-key
ncp-disable
cipher AES-128-GCM
auth SHA256
tls-client
client
resolv-retry infinite
remote xxx.xxx.xxx.xxx pppp tcp4
setenv opt block-outside-dns
lport 0
verify-x509-name "domain" name
auth-user-pass
remote-cert-tls server
auth-nocache

<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----

-----END PRIVATE KEY-----
</key>
<tls-crypt>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----

-----END OpenVPN Static key V1-----
</tls-crypt>

How to connect to multiple OpenVPN Server in Windows 10?

Posted: Wed Sep 01, 2021 6:37 pm
by testcb00
Hi everyone,

I would like to know how to connect to multiple OpenVPN Server in Windows 10.
I created some OpenVPN Server in my pfSense Router. I installed OpenVPN Community in my PC.
I ran the Add a new TAP-Windows6 virtual network adapter ‪[C:\Program Files\OpenVPN\bin\tapctl.exe] to create the TAP adapter.
However, I don't know how to edit the config. I have tried to rename the new created TAP adapter to tap1 and edit the config: dev tap1.
Using this config, I can establish connection, but I cannot access my network. This mean this config cannot approach multiple connection.

Any suggestion are welcome.

My client config is like this

Client Config

dev tun
persist-tun
persist-key
ncp-disable
cipher AES-128-GCM
auth SHA256
tls-client
client
resolv-retry infinite
remote xxx.xxx.xxx.xxx pppp tcp4
setenv opt block-outside-dns
lport 0
verify-x509-name "domain" name
auth-user-pass
remote-cert-tls server
auth-nocache

<ca>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----

-----END PRIVATE KEY-----
</key>
<tls-crypt>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----

-----END OpenVPN Static key V1-----
</tls-crypt>

Re: How to connect to multiple OpenVPN Server in Windows 10?

Posted: Wed Sep 01, 2021 7:02 pm
by TinCanTech
Your post has been merged to the original. Further duplication will be deleted.

If you fail to get a response it is because nobody can help you.

Re: How to connect to multiple OpenVPN Server in Windows 10?

Posted: Wed Sep 01, 2021 8:13 pm
by testcb00
Might you delete this post so that I can post in the parent forum?
I post a second post because I find that there are few reply in the child Configuration forum.

Re: How to connect to multiple OpenVPN Server in Windows 10?

Posted: Wed Sep 01, 2021 8:23 pm
by TinCanTech
* Moved *

Re: How to connect to multiple OpenVPN Server in Windows 10?

Posted: Tue Sep 14, 2021 3:15 am
by trideep
If your clients need to access the local network of your router, then you must push its routes to openvpn clients. For example, if your router has a 192.168.1.0/24 on it, then

Code: Select all

push "route 192.168.1.0 255.255.255.0"
on the server config would allow your clients to access the network.

Alternatively, you can have

Code: Select all

route 192.168.1.0 255.255.255.0
on client config. But that would be client specific you know.