Set the tun device's configuration.