I can't connect vpn from my home wifi

I can’t connect to the VPN using my home Wi-Fi(ISP Airtel India), but I’m an enterprise Pritunl customer. When I switch to my mobile network, the VPN works. How can I fix this problem?

Get the service and profile logs from the top right menu.

service logs

[2024-10-21 00:23:00][INFO] ▶ profile: Connecting ◆ device_auth=false ◆ disable_dns=false ◆ disable_gateway=false ◆ dynamic_firewall=false ◆ force_connect=false ◆ force_dns=false ◆ geo_sort="" ◆ mode="ovpn" ◆ profile_id="gs466ffmepscofvq" ◆ reconnect=true ◆ sso_auth=false
[2024-10-21 00:24:07][INFO] ▶ utils: Restore DNS
[2024-10-21 00:24:07][INFO] ▶ profile: Profile exit, reconnecting ◆ profile_id="gs466ffmepscofvq"
[2024-10-21 00:24:07][INFO] ▶ profile: Reconnecting ◆ profile_id="gs466ffmepscofvq"
[2024-10-21 00:24:08][INFO] ▶ profile: Disconnected ◆ profile_id="gs466ffmepscofvq"
[2024-10-21 00:24:08][INFO] ▶ profile: Connecting ◆ device_auth=false ◆ disable_dns=false ◆ disable_gateway=false ◆ dynamic_firewall=false ◆ force_connect=false ◆ force_dns=false ◆ geo_sort="" ◆ mode="ovpn" ◆ profile_id="gs466ffmepscofvq" ◆ reconnect=true ◆ sso_auth=false
[2024-10-21 00:24:09][INFO] ▶ utils: Restore DNS

profile logs

2024-10-21 00:23:01 OpenVPN 2.6.12 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH/RECVDA] [AEAD]
2024-10-21 00:23:01 library versions: OpenSSL 3.3.2 3 Sep 2024, LZO 2.10
2024-10-21 00:23:01 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2024-10-21 00:23:01 TCP/UDP: Preserving recently used remote address: [AF_INET]34.79.34.115:18567
2024-10-21 00:23:01 UDPv4 link local: (not bound)
2024-10-21 00:23:01 UDPv4 link remote: [AF_INET]34.79.34.115:18567
2024-10-21 00:23:01 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2024-10-21 00:23:02 VERIFY SCRIPT OK: depth=1, O=658d032809a5f70377675102, CN=658d032809a5f70377675106
2024-10-21 00:23:02 NOTE: --mute triggered...
2024-10-21 00:23:02 8 variation(s) on previous 3 message(s) suppressed by --mute
2024-10-21 00:23:02 [658d032a09a5f70377675114] Peer Connection Initiated with [AF_INET]34.79.34.115:18567
2024-10-21 00:23:04 Opened utun device utun4
2024-10-21 00:23:04 /sbin/ifconfig utun4 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2024-10-21 00:23:04 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
2024-10-21 00:23:04 /sbin/ifconfig utun4 192.168.226.3 192.168.226.3 netmask 255.255.255.0 mtu 1500 up
add net 192.168.226.0: gateway 192.168.226.3
2024-10-21 00:23:04 /tmp/pritunl/gs466ffmepscofvq-block.sh utun4 1500 0 192.168.226.3 255.255.255.0 init
add net 10.116.139.139: gateway 192.168.226.1
add net 10.151.0.17: gateway 192.168.226.1
add net 10.151.0.22: gateway 192.168.226.1
add net 10.151.0.23: gateway 192.168.226.1
add net 10.151.0.36: gateway 192.168.226.1
add net 10.151.0.4: gateway 192.168.226.1
add net 10.151.0.43: gateway 192.168.226.1
add net 10.151.0.5: gateway 192.168.226.1
add net 10.151.0.50: gateway 192.168.226.1
add net 10.151.0.53: gateway 192.168.226.1
add net 10.151.0.56: gateway 192.168.226.1
add net 10.54.125.131: gateway 192.168.226.1
add net 10.61.16.0: gateway 192.168.226.1
add net 10.61.24.0: gateway 192.168.226.1
add net 10.61.28.0: gateway 192.168.226.1
add net 10.61.32.0: gateway 192.168.226.1
add net 10.61.36.0: gateway 192.168.226.1
add net 10.61.4.0: gateway 192.168.226.1
add net 10.61.8.0: gateway 192.168.226.1
add net 10.61.8.51: gateway 192.168.226.1
add net 34.125.215.90: gateway 192.168.226.1
add net 8.8.8.8: gateway 192.168.226.1
dhcp-option DNS 8.8.8.8
2024-10-21 00:23:04 Initialization Sequence Completed
2024-10-21 00:23:04 Data Channel: cipher 'AES-128-GCM', peer-id: 1, compression: 'stub'
2024-10-21 00:23:04 NOTE: --mute triggered...
2024-10-21 00:24:04 1 variation(s) on previous 3 message(s) suppressed by --mute
2024-10-21 00:24:04 [658d032a09a5f70377675114] Inactivity timeout (--ping-exit), exiting
2024-10-21 00:24:04 /tmp/pritunl/gs466ffmepscofvq-down.sh utun4 1500 0 192.168.226.3 255.255.255.0 init
delete net 10.116.139.139: gateway 192.168.226.1
delete net 10.151.0.17: gateway 192.168.226.1
delete net 10.151.0.22: gateway 192.168.226.1
delete net 10.151.0.23: gateway 192.168.226.1
delete net 10.151.0.36: gateway 192.168.226.1
delete net 10.151.0.4: gateway 192.168.226.1
delete net 10.151.0.43: gateway 192.168.226.1
delete net 10.151.0.5: gateway 192.168.226.1
delete net 10.151.0.50: gateway 192.168.226.1
delete net 10.151.0.53: gateway 192.168.226.1
delete net 10.151.0.56: gateway 192.168.226.1
delete net 10.54.125.131: gateway 192.168.226.1
delete net 10.61.16.0: gateway 192.168.226.1
delete net 10.61.24.0: gateway 192.168.226.1
delete net 10.61.28.0: gateway 192.168.226.1
delete net 10.61.32.0: gateway 192.168.226.1
delete net 10.61.36.0: gateway 192.168.226.1
delete net 10.61.4.0: gateway 192.168.226.1
delete net 10.61.8.0: gateway 192.168.226.1
delete net 10.61.8.51: gateway 192.168.226.1
delete net 34.125.215.90: gateway 192.168.226.1
delete net 8.8.8.8: gateway 192.168.226.1
2024-10-21 00:24:07 Closing TUN/TAP interface
2024-10-21 00:24:07 /tmp/pritunl/gs466ffmepscofvq-block.sh utun4 1500 0 192.168.226.3 255.255.255.0 init
2024-10-21 00:24:07 SIGTERM[soft,ping-exit] received, process exiting
2024-10-21 00:24:09 OpenVPN 2.6.12 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH/RECVDA] [AEAD]
2024-10-21 00:24:09 library versions: OpenSSL 3.3.2 3 Sep 2024, LZO 2.10
2024-10-21 00:24:09 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2024-10-21 00:24:09 TCP/UDP: Preserving recently used remote address: [AF_INET]34.79.34.115:18567
2024-10-21 00:24:09 UDPv4 link local: (not bound)
2024-10-21 00:24:09 UDPv4 link remote: [AF_INET]34.79.34.115:18567
2024-10-21 00:24:09 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2024-10-21 00:24:10 VERIFY SCRIPT OK: depth=1, O=658d032809a5f70377675102, CN=658d032809a5f70377675106
2024-10-21 00:24:10 NOTE: --mute triggered...
2024-10-21 00:24:10 8 variation(s) on previous 3 message(s) suppressed by --mute
2024-10-21 00:24:10 [658d032a09a5f70377675114] Peer Connection Initiated with [AF_INET]34.79.34.115:18567
2024-10-21 00:24:11 Opened utun device utun4
2024-10-21 00:24:11 /sbin/ifconfig utun4 delete
ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2024-10-21 00:24:11 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
2024-10-21 00:24:11 /sbin/ifconfig utun4 192.168.226.3 192.168.226.3 netmask 255.255.255.0 mtu 1500 up
add net 192.168.226.0: gateway 192.168.226.3
2024-10-21 00:24:11 /tmp/pritunl/gs466ffmepscofvq-block.sh utun4 1500 0 192.168.226.3 255.255.255.0 init
add net 10.116.139.139: gateway 192.168.226.1
add net 10.151.0.17: gateway 192.168.226.1
add net 10.151.0.22: gateway 192.168.226.1
add net 10.151.0.23: gateway 192.168.226.1
add net 10.151.0.36: gateway 192.168.226.1
add net 10.151.0.4: gateway 192.168.226.1
add net 10.151.0.43: gateway 192.168.226.1
add net 10.151.0.5: gateway 192.168.226.1
add net 10.151.0.50: gateway 192.168.226.1
add net 10.151.0.53: gateway 192.168.226.1
add net 10.151.0.56: gateway 192.168.226.1
add net 10.54.125.131: gateway 192.168.226.1
add net 10.61.16.0: gateway 192.168.226.1
add net 10.61.24.0: gateway 192.168.226.1
add net 10.61.28.0: gateway 192.168.226.1
add net 10.61.32.0: gateway 192.168.226.1
add net 10.61.36.0: gateway 192.168.226.1
add net 10.61.4.0: gateway 192.168.226.1
add net 10.61.8.0: gateway 192.168.226.1
add net 10.61.8.51: gateway 192.168.226.1
add net 34.125.215.90: gateway 192.168.226.1
add net 8.8.8.8: gateway 192.168.226.1
dhcp-option DNS 8.8.8.8
2024-10-21 00:24:12 Initialization Sequence Completed
2024-10-21 00:24:12 Data Channel: cipher 'AES-128-GCM', peer-id: 2, compression: 'stub'
2024-10-21 00:24:12 NOTE: --mute triggered...

any update @zach

It’s disconnecting on the first ping after connection. Try updating the server as documented in update OpenVPN documentation, switch to TCP and lower MTU to 1300.

@zach why I need to update openvpn instead of pritunl server.

@zach
I updated OpenVPN on the server and restarted the Pritunl service using the systemctl command. However, I still can’t see the MTU configuration in the advanced settings.

current version details

OpenVPN 2.6.12 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] [DCO]
library versions: OpenSSL 1.1.1f  31 Mar 2020, LZO 2.10
DCO version: N/A
Originally developed by James Yonan
Copyright (C) 2002-2024 OpenVPN Inc <sales@openvpn.net>
Compile time defines: enable_async_push=no enable_comp_stub=no enable_crypto_ofb_cfb=yes enable_dco=auto enable_dco_arg=auto enable_debug=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_iproute2=no enable_libtool_lock=yes enable_lz4=yes enable_lzo=yes enable_maintainer_mode=no enable_management=yes enable_pam_dlopen=no enable_pedantic=no enable_pkcs11=yes enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_shared=yes enable_shared_with_static_runtimes=no enable_silent_rules=no enable_small=no enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=yes enable_werror=no enable_win32_dll=yes enable_wolfssl_options_h=yes enable_x509_alt_username=yes with_aix_soname=aix with_crypto_library=openssl with_gnu_ld=yes with_mem_check=no with_openssl_engine=auto with_sysroot=no

pritunl version
pritunl v1.32.3732.84

That’s the top right global settings. Open the servers tab and click on the name of the server to open the server settings. Change the protocol to TCP and Connection MTU 1300.