Hi,
I configured openvpn on an ubuntu server, and I can connect with a normal configuration with different ip classes.
However, I would like to configure the server to connect (home and office) with a site-to-site on the same class of IP (192.168.1.0/255), i.e. on the one side I have static ip from 192.168.1.1 to 200 (the internet router has address .1) and on the other static ip from 201 to 255 (the router has address .254), in practice I do not want to change address on the devices connected in the two networks, and at the same time see each other.
Clearly it's a 'risky' configuration for any IP conflicts, but I'll be careful since I only have 2 devices at home.
How should I configure the server.conf? This below example, gives me a block access to other addresses.
Thanks for collaboration
port 1194
proto udp
dev tun
server 192.168.1.0 255.255.255.0
ca ca.crt
cert server.crt
key server.key
dh dh.pem
topology subnet
ifconfig-pool-persist /var/log/openvpn/ipp.txt
push "dhcp-option DNS 8.8.8.8"
client-to-client
duplicate-cn
keepalive 10 120
cipher AES-256-CBC
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
verb 3
explicit-exit-notify 1