Unknown virtual device type: 'NETGEAR-VPN'

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
heavyjoe
OpenVpn Newbie
Posts: 2
Joined: Mon Aug 02, 2021 3:14 pm

Unknown virtual device type: 'NETGEAR-VPN'

Post by heavyjoe » Mon Aug 02, 2021 3:21 pm

Hi Guys!

Help me please, i cannot find the solution.
I have a Netgear 7000 router with vpn enabled settings.
I have a notebook what is working fine, but the other two has the same issue when trying to connect.
If i understand well, Openvpn cannot find the tap network device. The pcs has the same config files, etc.


2021-08-02 16:58:51 us=260865 UDP link local: (not bound)
2021-08-02 16:58:51 us=260865 UDP link remote: [AF_INET]178.48.180.65:12974
2021-08-02 16:58:51 us=260865 MANAGEMENT: >STATE:1627916331,WAIT,,,,,,
2021-08-02 16:58:51 us=266906 MANAGEMENT: >STATE:1627916331,AUTH,,,,,,
2021-08-02 16:58:51 us=266906 TLS: Initial packet from [AF_INET]178.48.180.65:12974, sid=8701d6be de268237
2021-08-02 16:58:51 us=334821 VERIFY OK: depth=1, C=TW, ST=TW, L=Taipei, O=netgear, OU=netgear, CN=netgear, emailAddress=mail@netgear.com
2021-08-02 16:58:51 us=336822 VERIFY OK: depth=0, C=TW, ST=TW, O=netgear, OU=netgear, CN=netgear, emailAddress=mail@netgear.com
2021-08-02 16:58:51 us=392832 WARNING: 'dev-type' is used inconsistently, local='dev-type [unknown-dev-type]', remote='dev-type tap'
2021-08-02 16:58:51 us=392832 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1558', remote='link-mtu 1590'
2021-08-02 16:58:51 us=392832 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1500', remote='tun-mtu 1532'
2021-08-02 16:58:51 us=393788 Control Channel: TLSv1, cipher SSLv3 DHE-RSA-AES256-SHA, peer certificate: 1024 bit RSA, signature: RSA-SHA256
2021-08-02 16:58:51 us=393788 [netgear] Peer Connection Initiated with [AF_INET]178.48.180.65:12974
2021-08-02 16:58:52 us=535949 MANAGEMENT: >STATE:1627916332,GET_CONFIG,,,,,,
2021-08-02 16:58:52 us=536948 SENT CONTROL [netgear]: 'PUSH_REQUEST' (status=1)
2021-08-02 16:58:52 us=540906 PUSH: Received control message: 'PUSH_REPLY,route 192.168.1.0 255.255.255.0,route-delay 5,redirect-gateway def1,route-gateway dhcp,ping 10,ping-restart 120'
2021-08-02 16:58:52 us=540906 OPTIONS IMPORT: timers and/or timeouts modified
2021-08-02 16:58:52 us=540906 OPTIONS IMPORT: route options modified
2021-08-02 16:58:52 us=540906 OPTIONS IMPORT: route-related options modified
2021-08-02 16:58:52 us=540906 Using peer cipher 'AES-128-CBC'
2021-08-02 16:58:52 us=541906 Outgoing Data Channel: Cipher 'AES-128-CBC' initialized with 128 bit key
2021-08-02 16:58:52 us=541906 Outgoing Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication
2021-08-02 16:58:52 us=541906 Incoming Data Channel: Cipher 'AES-128-CBC' initialized with 128 bit key
2021-08-02 16:58:52 us=541906 Incoming Data Channel: Using 160 bit message hash 'SHA1' for HMAC authentication
2021-08-02 16:58:52 us=541906 interactive service msg_channel=580
2021-08-02 16:58:52 us=546929 ROUTE_GATEWAY 192.168.4.254/255.255.255.0 I=19 HWADDR=d0:7e:35:44:91:b6
2021-08-02 16:58:52 us=559895 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
2021-08-02 16:58:52 us=559895 OpenVPN ROUTE: failed to parse/resolve route for host/network: 192.168.1.0
2021-08-02 16:58:52 us=560898 open_tun
2021-08-02 16:58:52 us=560898 MANAGEMENT: Client disconnected
Unknown virtual device type: 'NETGEAR-VPN'
2021-08-02 16:58:52 us=560898 Exiting due to fatal error

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Unknown virtual device type: 'NETGEAR-VPN'

Post by TinCanTech » Mon Aug 02, 2021 4:20 pm

--dev does not understand your device.

Use

Code: Select all

dev-type tun
dev-name NETGEAR-VPN

heavyjoe
OpenVpn Newbie
Posts: 2
Joined: Mon Aug 02, 2021 3:14 pm

Re: Unknown virtual device type: 'NETGEAR-VPN'

Post by heavyjoe » Tue Aug 03, 2021 8:24 am

Thank you for your help!

I find the issue, don't know how it happened. There was e # before the dev tap.

client
dev tap
proto udp
dev-node NETGEAR-VPN
remote xxx.xxx.xxx.xxx.
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
cipher AES-128-CBC
comp-lzo
verb 5

Post Reply