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

    FreeRadius: PPTP - RADIUS and client IP address

    Scheduled Pinned Locked Moved pfSense Packages
    68 Posts 14 Posters 67.4k 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.
    • S Offline
      sullrich
      last edited by

      That is not the proper sequence for sending patches.  Please read:

      http://wiki.pfsense.com/wikka.php?wakka=SubmittingPatches

      1 Reply Last reply Reply Quote 0
      • S Offline
        sbyoon
        last edited by

        Sorry, if the sequece was wrong. I checked the link but it does not meantion how to make patch. Could adv me how to make the patch?

        1 Reply Last reply Reply Quote 0
        • D Offline
          databeestje
          last edited by

          from the console.

          pkg_add -r diffutils
          rehash
          gdiff -urN <original file=""><new file="">And to put it into a file

          gdiff -urN <original file=""><new file="">> patch.txt

          Then you can download or fetch the file from the diagnostics menu.</new></original></new></original>

          1 Reply Last reply Reply Quote 0
          • S Offline
            sbyoon
            last edited by

            I'm confused. What is the difference between 'diff' and 'patch'?
            I've made the diff files with "diff -rub oldfile newfile > file.diff" and attached it this thread as requested by Hoba.

            I made the diff files as instructed in below link.
            http://forum.pfsense.org/index.php/topic,2972.0.html
            And I used the latest files from pfsense cvs and made the diff file with it.

            I think your instruction is also for just making diff files. Then, are diff and patch same thing?

            Now I attached the diff files again and am sending them to coreteam@pfsense.com as well.

            vpn.inc.diff.txt
            vpn_pptp.php.diff.txt
            freeradius.inc.diff.txt
            freeradius.xml.dif.txt

            1 Reply Last reply Reply Quote 0
            • S Offline
              sbyoon
              last edited by

              I sent the diff files for freeradius.inc and freeradius.xml that were made by jeroen before. But I think he has updated one which have more fuctions.

              1 Reply Last reply Reply Quote 0
              • G Offline
                Glasswalker
                last edited by

                Hey, I was following this thread hoping it would help with our current issues.

                I currently have pfsense using pptp and authenticating against our PDC (Win2k3 using microsoft internet authentication service) I know it's microsoft, but our entire company is AD driven and we need to integrate to a single directory service for centralization.

                anyway this works fine for authentication, but what we would really like is the ability to have granular firewall control to VPN users.

                So basically I am just checking, since microsoft's method also supports assigning static IPs to users, will this new code follow that, and actually assign the ip that radius tells it to? and if so, when will this feature be available to users?

                We are hoping to impliment some kind of granular VPN setup very soon, so if there is a way we can apply it (if I just need to apply diffs to the above mentioned code or what) let me know.

                Thanks!

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sullrich
                  last edited by

                  I have probed other devs and they are interested.

                  Please email me a final patch set to sullrich@gmail.com

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    databeestje
                    last edited by

                    currently interested in merging radius code, however lack of time prohibits me from merging it this month. Perhaps somewhere after mid march.

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      monideth
                      last edited by

                      Databeestje,

                      Any update on merging the radius code?

                      Regards,

                      Mon

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        databeestje
                        last edited by

                        Unfortunately I have not had the time at all to even look at it. There have been some other pressing matters I needed to take care of.

                        Also I have been a bit burned out recently the prevented me from participating in the project. As time permits i'll look at it.

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          monideth
                          last edited by

                          databeestje,

                          Thanks for the update. Sorry to hear you are so busy.

                          Can anybody else take on this responsibility? I would if I could but I can't! i.e. i'm just a mere mortal.

                          Regards,

                          Mon

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            monideth
                            last edited by

                            BUMP

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              monideth
                              last edited by

                              Any update on this - it has been quite a while now!

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                monideth
                                last edited by

                                BUMP

                                Any updates?

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  azmihamzah
                                  last edited by

                                  i saw great features being added to freeradius at some previous page. How can i add the diff files to my current freeradius files?

                                  Edited : nevermind, i just managed to change the code manually using console. Great job to great writers!

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    monideth
                                    last edited by

                                    azmihamzah,

                                    Sorry for being a bit stuupid - but can you (or anybody else) tell me how you exactly applied the patches/updated code?

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      monideth
                                      last edited by

                                      OK,

                                      I have the four diff files and have located where the files to be patched are on the pfsense server:

                                      /usr/local/pkg
                                      –------------------
                                      freeradius.inc
                                      freeradius.xml

                                      /usr/local/www

                                      vpn_pptp.php

                                      /etc/inc

                                      vpn.inc

                                      However, I don't know how to patch the files. The thread has information and links on how to make the diff files. but how do you actually apply/patch these  diff files? Can you copy the patch file to the pfsense server and run a command to perform the patch?

                                      Please can somebody provide some simple instructions on how to apply these patches.

                                      Cheers!

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        azmihamzah
                                        last edited by

                                        i just scp -ed to my box and edited those files manually, it took much time and concentration, but it works! I don't know the simpler method…

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          cybrsrfr
                                          last edited by

                                          I'm running PFSense 1.2 RC3. The diff files were a little out of date for 1.2 RC3 so I manually applied them. I'm attaching the modified files for anyone who is interested. To use them make sure you are running the same version of PFSense, enable SSH on PFSense, rename the files removing the '.txt' from the filename. Then use sftp to copy them onto your PFSense machine.

                                          I'm working on adding more features to FreeRadius and thought I should first start with the updates that have already been made up to this point. When I have completed the additions then I will create a diff and patch file.

                                          Best Regards to the PFSense team and users.

                                          freeradius.inc.txt
                                          freeradius.xml.txt
                                          vpn.inc.txt
                                          vpn_pptp.php.txt

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sullrich
                                            last edited by

                                            Please send me diffs of the files to coreteam@pfsense.com and I will get the changes commited.  Thanks for working on this.

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