VPN can not bind to IP Aliase.

  • Hi,

    I can not bind my OpenVPN server to an IP Alias associated with my WAN interface. The server throws this error in the openvpn.log file

    TCP/UDP: Socket bind failed on local address X.X.X.X:1194: Can't assign requested address

    I am using BT (UK) ISP to provide the WAN interface via PPPOE and a Draytek V120 v2. BT assign the WAN interface with a dynamic IP, and i have mapped my static IP pool as IP Alias's linked to the WAN on pfsense. BT route everything addressed to my static pool via the dynamic address they assign via PPP. So as a result i need to use IP Alias addresses, since the dynamic IP is subject to change.

    However the VIPs will not bind to the openvpn service. If i assign the primary (dynamic) WAN interface to the openvpn server that works fine, similarly if i assign any physical interface address (LAN or WAN) and the drop down "any" that works fine. It just appears to be the VIP's that do not bind.

    Any help would be appreciated.

    the system is;

    2.0.3-RELEASE (i386)
    built on Fri Apr 12 10:22:21 EDT 2013
    FreeBSD 8.1-RELEASE-p13

  • Some further info.

    The address assigned to the WAN interface is as follows;

    inet –> netmask 0xffffffff

    The my static address pool is a different network and mask

    (BT Static IP Pool. First three octets replaced with A.B.C)
    Subnet Size:  8
    Subnet Mask:
    User IP Range Start:  A.B.C.25
    User IP Range End:  A.B.C.29
    IP Addr(Base):  A.B.C.24
    IP Addr(End):  A.B.C.31
    Default Gateway:  A.B.C.30

    From the above i have created aliases for the "user range" and the GW. All with /29 masks.  is this correct?

  • Hi did you ever get this working?

    I am trying myself to get this working (open vpn and IP Alias) but no luck so far.

Log in to reply