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

    Intergrating pfsense with a payment system

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 5 Posters 1.5k 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.
    • O
      OpenWifi
      last edited by

      Hello again guys, need your help...I run a Wisp Setup in my area and i use pfsense as my firewall gateway router. Since i provide internet to most of the households in my area, i did create an Alias called "BlockList" where i add customers that have not paid for the service yet . Once they pay for the service i remove them from the list manually, which means everytime someone pays i have to login into pfsense and remove him and vice versa. My question....Is there anyway i could intergrate my payment system to pfsense, so that when someone pays then the process is automatic ?

      NollipfSenseN 1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        You could have that alias pull from an external source (URL alias) and have that list updated by a payment engine of some kind.
        Or maybe some sort of authentication via Radius with that tied into payment.

        Steve

        O 1 Reply Last reply Reply Quote 0
        • NollipfSenseN
          NollipfSense @OpenWifi
          last edited by

          @OpenWifi Just had to say reading the subject with "pfSense and payment system" got me nervous...LOL!โ˜บ

          pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
          pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            That wouldn't involve pfSense at all in most cases. Usually that kind of setup would be handled at Layer 2 with RADIUS, and your L2 gear would check with RADIUS if the user connection is OK before allowing it through. Your payment system may already expose that information via RADIUS or it may have some method of RADIUS integration.

            Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • O
              OpenWifi @stephenw10
              last edited by

              @stephenw10 to be honest, i ein't that much of a techy, so i do not understand

              GertjanG 1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by stephenw10

                Ok, well if you're looking for some easy packaged payment system there isn't one I'm afraid. ๐Ÿ˜‰ Some development work is involved here however you choose to go.

                Steve

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @OpenWifi
                  last edited by

                  @OpenWifi said in Intergrating pfsense with a payment system:

                  so i do not understand

                  What you do understand is that a "payment system" are just two words for a huge concept.
                  Is money send over by bank draft ? Pay-pal ? Do you accept credit cards ? Is some one actually maintaining a list that lists cash income ? Hundreds of other situations exists.

                  Just an easy example : Check your Paypal account. See what is needed if you want to integrate a "payment system" into your web site, as a couple of billion sites do these days.

                  Your 'site' (some web site running on a 5 $ private server on the net) could be as simple as an authentication page, a connection to Paypal - and a list or database with up to date payment info. Let them identify themselves with some user ID that you combine with there known MAC address.

                  Then, a small script file on pfSense (side) that runs for - say - every 5 minutes, and searches for new records.
                  If there are any found AND the MAC is actually present in the pfSense blocked MAC list, then remove it.

                  True, these are not the days like the '70 or '80, where every body wrote BASIC one lines to automate whatever and anything.
                  Note that the advised age to learn and use the "PHP language" is 6 years .... so understand that no University grade, neither high school is needed here. It is accessible to everybody.

                  THe thing is : some glue software neds to be created to hook up your two systems : pfSense and the non-defined "payment system". As usual, this will costs you some abcd $, or some hours of your time. Keep in mind that both systems are evolving so better learn to handle this setup ourself so you can adapt an already working system yourself - or be ready to pay again.

                  So, up to you :
                  Stay with the current system,
                  Or you automatize it.
                  ( A known non often said issue is that both take equal time - the latter is fun, the first is not, so the choice isn't hard ^^ )

                  Btw : The most easy solution is already mentioned my yourself :

                  i did create an Alias called "BlockList" where i add customers that have not paid for the service yet

                  So, add a rule to your sales conditions : Clients that are late with payment and got disconnected have to pay an extra "handling fee" (for your time). Quiet normal these days - stop paying your electricity, and you will pay "re connect charges" become some on has to re connect you again.

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

                  NollipfSenseN 1 Reply Last reply Reply Quote 1
                  • NollipfSenseN
                    NollipfSense @Gertjan
                    last edited by

                    @Gertjan Very well presented, thank you for sharing!

                    pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                    pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

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