• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

OpenVPN client error : "write UDPv4: Permission denied"

Scheduled Pinned Locked Moved OpenVPN
4 Posts 4 Posters 447 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z
    zeca
    last edited by Jun 6, 2024, 2:16 PM

    Hello,

    I'm having issues trying to connect the OpenVPN client. The logs for OpenVPN suggest that there is some rule in place blocking the VPN client.

    Jun 6 15:51:30 	openvpn 	60337 	write UDPv4: Permission denied (fd=5,code=13)
    Jun 6 15:51:14 	openvpn 	60337 	write UDPv4: Permission denied (fd=5,code=13)
    Jun 6 15:51:06 	openvpn 	60337 	write UDPv4: Permission denied (fd=5,code=13)
    Jun 6 15:51:02 	openvpn 	60337 	write UDPv4: Permission denied (fd=5,code=13)
    Jun 6 15:51:00 	openvpn 	60337 	write UDPv4: Permission denied (fd=5,code=13)
    Jun 6 15:51:00 	openvpn 	60337 	UDPv4 link remote: [AF_INET]143.244.39.7:1198
    Jun 6 15:51:00 	openvpn 	60337 	UDPv4 link local (bound): [AF_INET]10.153.30.8:0
    Jun 6 15:51:00 	openvpn 	60337 	TCP/UDP: Preserving recently used remote address: [AF_INET]143.244.39.7:1198
    Jun 6 15:51:00 	openvpn 	60337 	NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    Jun 6 15:50:50 	openvpn 	60337 	SIGUSR1[soft,ping-restart] received, process restarting
    Jun 6 15:50:50 	openvpn 	60337 	[UNDEF] Inactivity timeout (--ping-restart), restarting
    Jun 6 15:50:19 	openvpn 	60337 	write UDPv4: Permission denied (fd=5,code=13)
    Jun 6 15:50:03 	openvpn 	60337 	write UDPv4: Permission denied (fd=5,code=13) 
    

    On the other hand this is a 2.7.2 fresh install, with no additional packages such as snort or suricata installed (as in this thread). I also have experimented with the firewall rules without success.

    Any ideas of what might be going on here?

    G M 2 Replies Last reply Jul 4, 2024, 1:06 PM Reply Quote 0
    • T
      ToTalChaos1010
      last edited by Jul 4, 2024, 11:57 AM

      Just noticed this myself perusing the logs after having some VPN connectivity issues. You get this figured out?

      1 Reply Last reply Reply Quote 0
      • G
        Gertjan @zeca
        last edited by Jul 4, 2024, 1:06 PM

        @zeca said in OpenVPN client error : "write UDPv4: Permission denied":

        write UDPv4: Permission denied

        Google "OpenVPN client write UDPv4: Permission denied"

        This one is on top : openvpn client misbehaving (for me) but many others exist, as the issue is not really a pfSense thing, but more a 'connection broken' thing.

        As this is a client, it will take the initiative to connect to the "OpenVPN server" so the 'write' == sending info, is plausible.

        The connection was signaled as "up" to the OpenVPN process but, you might have guessed it : it wasn't.
        Be aware : the connection means here : the entire thing, up until and included the OpenVPN server. If anywhere on the road something fails, you'll get "write errors" as the tunnel is now broken.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • M
          melik2k3 @zeca
          last edited by Jul 18, 2024, 1:01 PM

          @zeca
          ive got same problem
          i ask google for help and found this topic https://redmine.pfsense.org/issues/7240?tab=history
          after snort uninstall my openvpn client could connect with no issues

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            [[user:consent.lead]]
            [[user:consent.not_received]]