The topology subnet

The topology subnet

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.

  1. Start the first endpoint in the listening mode

    openvpn --ifconfig 10.200.0.1 255.255.255.0 --dev tun --topology subnet
    
  2. launch the OpenVPN client

    openvpn --ifconfig 10.200.0.2 255.255.255.0 --dev tun --topology subnet --remote first.endpoint
    

From #