D
D
Dannerty2018-09-07 14:49:48
openvpn
Dannerty, 2018-09-07 14:49:48

How to allow access on an Openvpn subnet only to certain clients?

Tell me how to allow access to the entire subnet and to other Openvpn clients only to certain clients? It is necessary that everyone has access only to the Openvpn server, and a few clients have access to all.
Removed the "client-to-client" line from the server config - everyone got access only to the server.
I added "client-config-dir /etc/openvpn/ccd", created a file inside with the client's name and wrote "client-to-client" inside, but it didn't work, I wrote "Options error: option 'client-to-" in the logs client' cannot be used in this context (/etc/openvpn/ccd/client1)". How can such a setting be made? And is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2018-09-07
@Dannerty

This is resolved by the firewall at the server level. Even if you make separate configs for clients, nothing will stop them from adding routes to other subnets by hand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question