The topology subnet #
When using –topology subnet, a single Ip address and netmask are assigned to the tun interface, with no peer address specified.
It is possible to use this topology option to make the tun style point-to-point setup almost exactly the same as the corresponding tap style setup.
-
Start the first endpoint in the listening mode
openvpn --ifconfig 10.200.0.1 255.255.255.0 --dev tun --topology subnet -
launch the OpenVPN client
openvpn --ifconfig 10.200.0.2 255.255.255.0 --dev tun --topology subnet --remote first.endpoint