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

    Ifconfig: ioctl (SIOCAIFADDR): Destination address required

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 2.6k 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.
    • D
      dave2222
      last edited by

      Hi,

      I have setup OpenVPN using two vkt40e both running 2.1.5 each time the OpenVPN server starts it stops again.  I SSHed in and found that it was giving the following error:

      ifconfig: ioctl (SIOCAIFADDR): Destination address required

      I followed https://forum.pfsense.org/index.php?topic=38605.0 to setup the devices and the config files match.

      Any assistance would be very much appreciated

      1 Reply Last reply Reply Quote 0
      • B
        BeerCan
        last edited by

        Can you post the sanitized config files so we can see what is going on?

        BTW if you changed mode from tun to tap I found that the server needs a reboot before it works correctly.  Starting and stopping the service did not work, only a full reboot.

        1 Reply Last reply Reply Quote 0
        • D
          dave2222
          last edited by

          Thanks for the response BeerCan

          I have tried a full reboot with no luck.  :(

          The end result that I am tying to achieve is a site to site VPN where clients at both sites can communicate cross site.

          Here are the config files:

          Server

          
          dev ovpns1
          dev-type tap
          dev-node /dev/tap1
          writepid /var/run/openvpn_server1.pid
          #user nobody
          #group nobody
          script-security 3
          daemon
          keepalive 10 60
          ping-timer-rem
          persist-tun
          persist-key
          proto udp
          cipher AES-128-CBC
          up /usr/local/sbin/ovpn-linkup
          down /usr/local/sbin/ovpn-linkdown
          local 10.0.0.29
          engine cryptodev
          ifconfig 192.168.71.1 255.255.255.248
          lport 1194
          management /var/etc/openvpn/server1.sock unix
          push "route 192.168.70.0 255.255.255.0"
          route 192.168.72.0 255.255.255.0
          secret /var/etc/openvpn/server1.secret 
          
          

          Client

          
          dev ovpnc1
          dev-type tap
          dev-node /dev/tap1
          writepid /var/run/openvpn_client1.pid
          #user nobody
          #group nobody
          script-security 3
          daemon
          keepalive 10 60
          ping-timer-rem
          persist-tun
          persist-key
          proto udp
          cipher AES-128-CBC
          up /usr/local/sbin/ovpn-linkup
          down /usr/local/sbin/ovpn-linkdown
          local 10.0.0.33
          lport 0
          management /var/etc/openvpn/client1.sock unix
          remote 10.0.0.29 1194
          ifconfig 192.168.71.2 255.255.255.248
          route 192.168.0.70 255.255.255.0
          secret /var/etc/openvpn/client1.secret 
          
          
          1 Reply Last reply Reply Quote 0
          • D
            dave2222
            last edited by

            bump

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.