How to connect to multiple OpenVPN Server in Windows 10?

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
testcb00
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 01, 2021 12:29 pm

How to connect to multiple OpenVPN Server in Windows 10?

Post by testcb00 » Wed Sep 01, 2021 12:43 pm

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>

testcb00
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 01, 2021 12:29 pm

How to connect to multiple OpenVPN Server in Windows 10?

Post by testcb00 » Wed Sep 01, 2021 6:37 pm

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>

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Wed Sep 01, 2021 7:02 pm

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.

testcb00
OpenVpn Newbie
Posts: 3
Joined: Wed Sep 01, 2021 12:29 pm

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

Post by testcb00 » Wed Sep 01, 2021 8:13 pm

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.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Wed Sep 01, 2021 8:23 pm

* Moved *

trideep
OpenVpn Newbie
Posts: 9
Joined: Tue Jul 06, 2021 7:05 am

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

Post by trideep » Tue Sep 14, 2021 3:15 am

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.

Post Reply