Page 1 of 1

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

Posted: Sat Sep 24, 2022 7:46 pm
by soso01
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=]

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

Posted: Sat Sep 24, 2022 11:06 pm
by 300000
You add this one into your server config it should let multi client connect.

duplicate-cn

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

Posted: Sun Sep 25, 2022 12:04 am
by TinCanTech
Better security comes with unique user profiles.

Avoid --duplicate-cn

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

Posted: Sun Sep 25, 2022 6:31 pm
by ordex
I second what TinCanTech said. You should create a unique key/cert pair for each user and distribute it, for example in B.ovpn.