Hi.
I'm trying to connect to an external VPN provider (Swedish OVPN) thru my Netgear WNDR3700v1, but I havn't succeeded yet. I have compiled my own firmware for it from the trunk branch, with openvpn and kmod-tun and everything connects as it should according to my logs.
The problem is that the tun interface is none existent. The tun module is loaded (insmod tun says module is already loaded - tun), and /etc/config/network has the tun0 configured (i can see it in LuCI). But it's not showing up in when listing the interfaces with ifconfig.
VPN config
config openvpn 'OVPN'
option daemon '1'
option client '1'
option comp_lzo 'yes'
option persist_key '1'
option nobind '1'
option remote_cert_tls 'server'
list remote 'pool.prd.se.ovpn.se 1194'
list remote 'pool.prd.se.ovpn.se 1195'
option proto 'udp'
option auth_user_pass '/etc/openvpn/credentials.txt'
option auth_retry 'nointeract'
option remote_random '1'
option cipher 'aes-256-cbc'
option verb '4'
option persist_tun '1'
option replay_window '256'
option mute_replay_warnings '1'
option reneg_sec '432000'
option resolv_retry 'infinite'
option log '/var/log/openvpn.log'
option enabled '1'
option tls_auth '/etc/openvpn/ovpn-tls.key'
option pull '1'
option ca '/etc/openvpn/ovpn-ca.crt'
option dev 'tun'
OpenVPN log
Wed Nov 29 12:08:40 2017 us=922813 OpenVPN 2.4.2 mips-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Wed Nov 29 12:08:40 2017 us=923102 library versions: OpenSSL 1.0.2k 26 Jan 2017, LZO 2.09
Wed Nov 29 12:08:40 2017 us=928916 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Nov 29 12:08:40 2017 us=929254 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Nov 29 12:08:40 2017 us=929521 LZO compression initializing
Wed Nov 29 12:08:40 2017 us=930643 Control Channel MTU parms [ L:1622 D:1184 EF:66 EB:0 ET:0 EL:3 ]
Wed Nov 29 12:08:40 2017 us=975411 Data Channel MTU parms [ L:1622 D:1450 EF:122 EB:406 ET:0 EL:3 ]
Wed Nov 29 12:08:40 2017 us=975959 Local Options String (VER=V4): 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client'
Wed Nov 29 12:08:40 2017 us=976209 Expected Remote Options String (VER=V4): 'V4,dev-type tun,link-mtu 1558,tun-mtu 1500,proto UDPv4,comp-lzo,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-server'
Wed Nov 29 12:08:40 2017 us=976491 TCP/UDP: Preserving recently used remote address: [AF_INET]185.86.106.135:1194
Wed Nov 29 12:08:40 2017 us=976772 Socket Buffers: R=[163840->163840] S=[163840->163840]
Wed Nov 29 12:08:40 2017 us=977016 UDP link local: (not bound)
Wed Nov 29 12:08:40 2017 us=977286 UDP link remote: [AF_INET]185.86.106.135:1194
Output from ifconfig
br-lan Link encap:Ethernet HWaddr E2:91:F5:04:78:70
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fde2:3524:ff5e::1/60 Scope:Global
inet6 addr: fe80::e091:f5ff:fe04:7870/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1199 errors:0 dropped:0 overruns:0 frame:0
TX packets:476 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192225 (187.7 KiB) TX bytes:67565 (65.9 KiB)
eth0 Link encap:Ethernet HWaddr E2:91:F5:04:78:70
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1230 errors:0 dropped:0 overruns:0 frame:0
TX packets:486 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:216538 (211.4 KiB) TX bytes:69470 (67.8 KiB)
Interrupt:4
eth1 Link encap:Ethernet HWaddr E0:91:F5:04:78:71
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:5
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:2904 (2.8 KiB) TX bytes:2904 (2.8 KiB)
wlan0 Link encap:Ethernet HWaddr E0:91:F5:04:78:70
inet6 addr: fe80::e291:f5ff:fe04:7870/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:786 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:180287 (176.0 KiB)
wlan1 Link encap:Ethernet HWaddr E0:91:F5:04:78:72
inet6 addr: fe80::e291:f5ff:fe04:7872/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:786 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:180287 (176.0 KiB)
TUN config in /etc/config/network
config interface 'vpn'
option proto 'none'
option ifname 'tun0'
I've googled my ass of, but can't find anything describing this problem. I also tried ROOTer firmware, but it's the same problem there.
I read some other logs that shows that the tun interface is opened, but that's not the case for me.
...
May 27 08:58:16 wrt01 daemon.notice openvpn(IPredator)[7955]: TUN/TAP device tun1337 opened
May 27 08:58:16 wrt01 daemon.notice openvpn(IPredator)[7955]: TUN/TAP TX queue length set to 100
]...
Anyone have a clue how to get tun interface up so I can route my traffic thru it?
(Last edited by zynex on 1 Dec 2017, 19:04)