Ansuel / GUI_ipk

5 stars 2 forks source link

OpenVPN kernel panic #5

Open DerFetzer opened 4 years ago

DerFetzer commented 4 years ago

I upgraded my DGA4132 to AGTHP_2.2.0. This changed opkg to use this repository. Now I am not able anymore to use OpenVPN anymore since I always get a kernel panic and instant reboot. My config looks as follows:

proto tcp-server
dev tun0
server 192.168.200.0 255.255.255.0
ca /etc/rsa/openvpn/ca.crt
cert /etc/rsa/openvpn/box.crt
key /etc/rsa/openvpn/box.key
dh /etc/rsa/openvpn/dh.pem
tls-server
tls-auth /etc/rsa/openvpn/static.key 0
port 993
ifconfig 192.168.200.1 255.255.255.0
push "route 192.168.178.0 255.255.255.0"
mode server
push "route 192.168.200.1"
route 192.168.200.0 255.255.255.0
push "dhcp-option DNS 192.168.178.103"
tun-mtu 1500
mssfix
verb 11
cipher AES-256-CBC
float
keepalive 1800 3600
persist-tun
persist-key
push "block-outside-dns"
user nobody
group nogroup

I increased the verbosity to max. When running openvpn openvpn.conf with this file I get following output:

Sat Dec  7 14:49:55 2019 us=549178 OpenVPN 2.4.5 arm-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Sat Dec  7 14:49:55 2019 us=552128 library versions: OpenSSL 1.0.2s  28 May 2019, LZO 2.10
Sat Dec  7 14:49:55 2019 us=563686 Diffie-Hellman initialized with 4096 bit key
Sat Dec  7 14:49:55 2019 us=570199 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Dec  7 14:49:55 2019 us=570633 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Dec  7 14:49:55 2019 us=570971 crypto_adjust_frame_parameters: Adjusting frame parameters for crypto by 28 bytes
Sat Dec  7 14:49:55 2019 us=573867 TLS-Auth MTU parms [ L:1623 D:1182 EF:68 EB:0 ET:0 EL:3 ]

Then the router reboots immediately. I managed to capture dmesg output once in another terminal session:

...
[83395.232925] Unable to handle kernel NULL pointer dereference at virtual address 00000014
[83395.242785] pgd = cd50c000
[83395.244976] [00000014] *pgd=0d402831, *pte=00000000, *ppte=00000000
[83395.251431] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
...

Do you have any idea what could be the cause of this error?

Thank you very much!