I have two clients that need to connect to one OpenVPN server. Is it possible to use the same gateway for both clients in the ifconfig parameter?
Client A config file
[...]
ifconfig 10.0.0.2 10.0.0.1
Client B config file
[...]
ifconfig 10.0.0.3 10.0.0.1
The situation on the server is the following:
tun0
inet 10.10.0.1 destination 10.10.0.2
tun1
inet 10.10.0.1 destination 10.10.0.3
Now all is working fine but might it give some problem time going on?
I was told to use different gateway like this:
Client A config file
[...]
ifconfig 10.0.0.2 10.0.0.1
Client B config file
[...]
ifconfig 10.0.1.2 10.0.1.1
But I thought different gateway are needed just for routing purpose, if I want to add a route and forward my traffic on a specific tun interface I indeed need different gateway or the server does not know which one to send the packets, but if I don't need a specific route can I use my first configuration?
Thank you