On 15/10/16 15:34, Gert Doering wrote:
> Hi,
> On Sat, Oct 15, 2016 at 08:47:38PM +0800, Hongyi Zhao wrote:
>>>> Can I preserve the tun device from being deleted on the client side after
>>>> the connection was closed or the server side is unavailable?
>>> Depends on the operating system used, but generally yes.
>> I use Debian and always find that the tun device will be deleted
>> automatically after the server side is down/unavailable/closed.
>> So, how can I preserve that tun device for my case?
> precreate: 
> $ openvpn --mktun tun4
> and then use that
> $ openvpn --dev tun4 ...
> (on BSDs, one would do "ifconfig tun4 create", but Linux' ifconfig cannot
> do that)

openvpn --mktun is the "light weight" approach which works quite well on
Linux, especially when you want to use it for OpenVPN tasks.

Otherwise there is tunctl which can be used to create tun/tap devices
which can also set a few more advanced options, which generally do not
make much of a difference for OpenVPN configurations.

kind regards,

David Sommerseth

Attachment: signature.asc
Description: OpenPGP digital signature

Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Openvpn-users mailing list

Reply via email to