Page 1 of 1

how to create manually tun0 (without using openvpn cli)

Posted: Sat Jan 29, 2022 4:59 pm
by f1outsourcing
When I create a tun device it is not the same as the one created by the openvpn cli command. What is/are the linux commands to create the tun device.

Code: Select all

tunctl -t tun0 -u vpn -g vpn
openvpn --mktun --dev tun1 --dev-type tun --user vpn --group vpn

ip link show
1978: tun0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether ca:7a:7e:42:9d:a1 brd ff:ff:ff:ff:ff:ff
1979: tun1: <NO-CARRIER,POINTOPOINT,MULTICAST,NOARP,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 500
    link/none