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

    Pfsense 2.3 static client IP

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 4 Posters 4.7k 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.
    • H
      hazly92
      last edited by

      Hi,

      Same goes to me. Still unable to set static IP for my openvpn client. I did follow what shown on the website but seems not working though.

      https://fastinetserver.wordpress.com/2013/03/09/pfsense-openvpn-static-ip-for-clients/

      any other ideas? :'(

      1 Reply Last reply Reply Quote 0
      • M
        MRH
        last edited by

        using a client specific override was the way it used to work in version <2.3 - as per your link - and that method used to work ok.

        1 Reply Last reply Reply Quote 0
        • H
          hazly92
          last edited by

          @MRH:

          using a client specific override was the way it used to work in version <2.3 - as per your link - and that method used to work ok.

          are those method work for windows client also?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            what is not working? This is pretty straight forward…  So you see my client got 10.0.8.2, I then added an override all I put in was the clients CN and in the advanced tab did a push for the IP and mask..

            And bingo that is what it got... Why are you wanting to use net 30??  If your wanting to set a specific IP?

            clientoverride.png
            clientoverride.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • H
              hazly92
              last edited by

              @johnpoz:

              what is not working? This is pretty straight forward…  So you see my client got 10.0.8.2, I then added an override all I put in was the clients CN and in the advanced tab did a push for the IP and mask..

              And bingo that is what it got... Why are you wanting to use net 30??  If your wanting to set a specific IP?

              I dont know which step im doing it wrong. but as i know i followed it correctly.

              failed.JPG
              failed.JPG_thumb

              1 Reply Last reply Reply Quote 0
              • S
                SometimesAdmin
                last edited by

                Maybe this will help someone:

                I have a client specific override to give a static IP to a contractor and it was working great with pfsense 2.2.6.  We just upgraded to 2.3.0 and it broke my client specific override, but everyone else was connecting just fine.  The VPN client was giving this error:

                ERROR: –ip-win32 dynamic [offset] : offset is outside of –ifconfig subnet

                The solution was to change the way I pushed the static IP.  What USED to work was this (under advanced settings in the CSO):

                ifconfig-push 10.40.5.242 10.40.5.241

                After the upgrade this no longer works.  What does seem to work is changing the setting to this:

                ifconfig-push 10.40.5.242 255.255.255.0

                I'm not a networking professional, I just wear the IT hat when something has to be done so I'm not sure if this is a good or bad thing to do, but it eliminated the error above and my client now gets a static IP like they used to.

                1 Reply Last reply Reply Quote 0
                • M
                  MRH
                  last edited by

                  For fixed client ip with ver 2.3  (in this example client  10.10.10.10) adding client specific override

                  Tunnel network:
                  10.10.10.8/30

                  Advanced:
                  ifconfig-push 10.10.10.10 255.255.255.252

                  works ok.

                  Was hoping this was covered in the originally generated config which had ifconfig 10.10.10.10 10.10.10.9 - without needing the additional override.

                  1 Reply Last reply Reply Quote 0
                  • H
                    hazly92
                    last edited by

                    @SometimesAdmin:

                    Maybe this will help someone:

                    I have a client specific override to give a static IP to a contractor and it was working great with pfsense 2.2.6.  We just upgraded to 2.3.0 and it broke my client specific override, but everyone else was connecting just fine.  The VPN client was giving this error:

                    ERROR: –ip-win32 dynamic [offset] : offset is outside of –ifconfig subnet

                    The solution was to change the way I pushed the static IP.  What USED to work was this (under advanced settings in the CSO):

                    ifconfig-push 10.40.5.242 10.40.5.241

                    After the upgrade this no longer works.  What does seem to work is changing the setting to this:

                    ifconfig-push 10.40.5.242 255.255.255.0

                    I'm not a networking professional, I just wear the IT hat when something has to be done so I'm not sure if this is a good or bad thing to do, but it eliminated the error above and my client now gets a static IP like they used to.

                    no luck for me  :'( . still failed to do so. btw how do you get that error message? using "Show Status" on client openvpn gui?

                    1 Reply Last reply Reply Quote 0
                    • S
                      SometimesAdmin
                      last edited by

                      It's in the log file on the client.  On Windows, you can right-click the OpenVPN client icon and select view log.  You can change the logging level in the config file.

                      1 Reply Last reply Reply Quote 0
                      • H
                        hazly92
                        last edited by

                        based on my log. everything seem fine.  :'(

                        log.JPG
                        log.JPG_thumb

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