I can't connect at the same time. Is there a solution?

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
soso01
OpenVpn Newbie
Posts: 1
Joined: Sat Sep 24, 2022 7:13 pm

I can't connect at the same time. Is there a solution?

Post by soso01 » Sat Sep 24, 2022 7:46 pm

I'm sorry that it's unnatural because I'm using a translator.

https://openwrt.org/docs/guide-user/ser ... vpn/server
I made a server by referring to the link above, but there was a problem.

There was a problem trying to connect to multiple PCs using one .ovpn file.
Connecting the A.ovpn file to PC 1 and connecting the A.ovpn file to PC 2 again will disconnect the Internet connection to PC 1.
As shown in the picture below, if you connect using the openvpn connection program, it says that all PCs are connected, but the Internet connection of the first PC that you connected to is disconnected.
I want to find a solution to see if the server.conf I set is wrong. Help me. It's too hard.
Image Image

Server Config
user nobody
group nogroup
dev tun
port 1194
proto udp
server 10.8.0.0 255.255.255.0
topology subnet
client-to-client
keepalive 10 60
persist-tun
persist-key
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1"
push "persist-tun"
push "persist-key"[oconf=]

300000
OpenVPN Expert
Posts: 685
Joined: Tue May 01, 2012 9:30 pm

Re: I can't connect at the same time. Is there a solution?

Post by 300000 » Sat Sep 24, 2022 11:06 pm

You add this one into your server config it should let multi client connect.

duplicate-cn

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

Re: I can't connect at the same time. Is there a solution?

Post by TinCanTech » Sun Sep 25, 2022 12:04 am

Better security comes with unique user profiles.

Avoid --duplicate-cn

User avatar
ordex
OpenVPN Inc.
Posts: 444
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: I can't connect at the same time. Is there a solution?

Post by ordex » Sun Sep 25, 2022 6:31 pm

I second what TinCanTech said. You should create a unique key/cert pair for each user and distribute it, for example in B.ovpn.

Post Reply