Hello!
I'm having problems with my openvpn server aswell.
This is my configuration:
View attachment 59251
View attachment 59250
It goes up fine as log below:
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19906]: OpenVPN 2.6.10 arm-buildroot-linux-gnueabi [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19906]: library versions: OpenSSL 1.1.1w 11 Sep 2023, LZO 2.08
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: PLUGIN AUTH-PAM: initialization succeeded (fg)
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: PLUGIN_INIT: POST /usr/lib/openvpn-plugin-auth-pam.so '[/usr/lib/openvpn-plugin-auth-pam.so] [openvpn]' intercepted=PLUGIN_AUTH_USER_PASS_VERIFY
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: Diffie-Hellman initialized with 2048 bit key
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: TUN/TAP device tun21 opened
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: TUN/TAP TX queue length set to 1000
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: /usr/sbin/ip link set dev tun21 up mtu 1500
Jun 6 18:04:39 GT-AXE11000 vpnserver1[19909]: PLUGIN AUTH-PAM: BACKGROUND: initialization succeeded
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: /usr/sbin/ip link set dev tun21 up
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: /usr/sbin/ip addr add dev tun21 10.175.50.1/24
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: ovpn-up 1 server tun21 1500 0 10.175.50.1 255.255.255.0 init
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: Socket Buffers: R=[524288->524288] S=[524288->524288]
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: UDPv4 link local (bound): [AF_INET][undef]:1286
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: UDPv4 link remote: [AF_UNSPEC]
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: MULTI: multi_init called, r=256 v=256
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: IFCONFIG POOL IPv4: base=10.175.50.2 size=253
Jun 6 18:04:39 GT-AXE11000 ovpn-server1[19907]: Initialization Sequence Completed
Export the config file and only add the line "tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384" to it.
Connection from 5G on my phone goes fine too, as log below:
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 VERIFY OK: depth=1, C=TW, ST=TW, L=Taipei, O=ASUS, OU=Home/Office, CN=GT-AXE11000, emailAddress=
me@asusrouter.lan
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 VERIFY OK: depth=0, C=TW, ST=TW, L=Taipei, O=ASUS, OU=Home/Office, CN=client, emailAddress=
me@asusrouter.lan
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_VER=3.8.5connectQA3
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_PLAT=android
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_NCP=2
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_TCPNL=1
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_PROTO=990
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_MTU=1600
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_CIPHERS=AES-128-CBC:AES-192-CBC:AES-256-CBC:AES-128-GCM:AES-192-GCM:AES-256-GCM:CHACHA20-POLY1305
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_GUI_VER=net.openvpn.connect.android_3.4.2-9909
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_SSO=webauth,openurl,crtext
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 peer info: IV_BS64DL=1
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 PLUGIN_CALL: POST /usr/lib/openvpn-plugin-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=0
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 TLS: Username/Password authentication succeeded for username 'cel'
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 TLS: move_session: dest=TM_ACTIVE src=TM_INITIAL reinit_src=1
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 TLS: tls_multi_process: initial untrusted session promoted to trusted
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 Control Channel: TLSv1.3, cipher TLSv1.3 TLS_AES_256_GCM_SHA384, peer certificate: 2048 bits RSA, signature: RSA-SHA256, peer temporary key: 253 bits X25519
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: [
MY_IP]:16640 [client] Peer Connection Initiated with [AF_INET][
MY_IP]:16640 (via [AF_INET][
MY_HOME_IP]%eth0)
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 MULTI_sva: pool returned IPv4=10.175.50.2, IPv6=(Not enabled)
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 MULTI: Learn: 10.175.50.2 -> client/[
MY_IP]:16640
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 MULTI: primary virtual IP for client/[
MY_IP]:16640: 10.175.50.2
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 SENT CONTROL [client]: 'PUSH_REPLY,route 10.145.55.0 255.255.255.0 vpn_gateway 500,dhcp-option DNS 10.145.55.1,redirect-gateway def1,route-gateway 10.175.50.1,topology subnet,ping 5,ping-restart 180,ifconfig 10.175.50.2 255.255.255.0,peer-id 0,cipher AES-256-GCM,protocol-flags cc-exit tls-ekm dyn-tls-crypt,tun-mtu 1500' (status=1)
Jun 6 17:57:27 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 PUSH: Received control message: 'PUSH_REQUEST'
Jun 6 17:57:28 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 Data Channel: cipher 'AES-256-GCM', peer-id: 0
Jun 6 17:57:28 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 Timers: ping 5, ping-restart 360
Jun 6 17:57:28 GT-AXE11000 ovpn-server1[8497]: client/[
MY_IP]:16640 Protocol options: protocol-flags cc-exit tls-ekm dyn-tls-crypt
The problem is that internet doesn't work and i can't access the router. The weirdest thing that i have noticed is that when i was trying to access the router WebUI from the phone and was with it logged in on my pc, the page was "laggin", like unresponsive. I close the tab on the phone and the page on the pc loads and goes back to normal. Same happens in a macbook with internet from phone 5G hotspot.
More info:
-IPv6 disabled on modem (bridge mode) and router.
-WebUI access only in https on port 8443.
-I have added no firewall rules myself.
-Tried everything from restarting the ovpn server, reseting to default, rebooting the router, restarting "dnsmasq" and "httpd" services in scMerlin addon page, and all sorts of mixes in between these.
-Only recently i've installed Skynet. Tried temporarily disabling it and done the above with same results.
-No errors or anything in system log or skynet log.
-If i'm on the router wifi and connect to the vpn, everything works fine, the WebUI opens normally and doens't "freezes" the page on the pc.
Tried configuring the second ovpn server and noticed that this error popped when going up "kernel: [ERROR pktrunner] runnerUcast_inetaddr_event,181: Could not rdpa_system_ipv4_host_address_table_add ret=-3" BUT the server goes up fine and i connect to it aswell, but with the same problems.
When disabling it, this error popps "kernel: [ERROR pktrunner] runnerUcast_inetaddr_event,190: Could not rdpa_system_ipv4_host_address_table_find ret=-5".
Don't know what this means but there aren't any other problems or error messages of any type.
Everything was working fine until last week when i did a complete reset of the router, but to be precise i was only connecting to the vpn from wifi connections from both phone and macbook (not using hotspot) as far as i remember. I'm going to a friends house tomorrow and will try from his wifi and then will update this post.
Finally, set up the Wireguard server and it works perfectly on my phone 5G and macbook using phone 5G hotspot.