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

    Captive Portal / Post to Facebook to Login

    Scheduled Pinned Locked Moved Captive Portal
    11 Posts 8 Posters 7.0k 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.
    • L
      lennysh
      last edited by

      Hello,

      I've created all the pages needed (and they work outside of pfsense) to login to Facebook, post to the users wall while tagging a place, and then returning to captive portal to grant access to the internet. My only issue is the fact that I can't get captive portal to allow Facebook traffic prior to granting access (the client doesn't want traffic allowed until after a successful post to their wall). I've tried various IP allowances, as well as a Facebook host allowance (Facebook.com).  Doesn't matter what I add in there, it just will not allow the traffic.

      Anyone have any ideas?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        http://bgp.he.net/search?search%5Bsearch%5D=facebook&commit=Search

        Good luck.  ::)

        1 Reply Last reply Reply Quote 0
        • L
          lennysh
          last edited by

          Well, I started adding some of those CIDR ranges in the allowed IP listing, and can now login to facebook, but it craps out before it finishes posting to their wall.  hopefully when I get the rest of the ranges in, it'll be a complete working captive portal.

          Thanks!  I ended up using your link and WHOIS to find the ranges I needed to add.  Couldn't finish adding them though before having to leave for work, but as soon as I get home, it's on like donkey kong! lol

          Thanks again…

          1 Reply Last reply Reply Quote 0
          • E
            elementalwindx
            last edited by

            Definitely subscribing to this thread. :) Hope you make it work 100%. I'd love to try this. It will help my Rotary International project greatly.

            1 Reply Last reply Reply Quote 0
            • R
              Roofus
              last edited by

              And me!

              Is Google + any easier to include?

              Thanks

              Roofus

              1 Reply Last reply Reply Quote 0
              • L
                lennysh
                last edited by

                I kind of doubt it…  It might be worse...  I can only image the number of IP address Google has, and I kind of doubt there's a list of ones it uses only for Google+.  I'll definitely look into it though regardless of the outcome of this project.  I have high hopes that I can get the portal working.  Like I said, the files themselves work, just go to figure out a way to allow Facebook traffic, once that's done, it's a complete project.

                I'm already testing it on one of my VLANS at home...

                1 Reply Last reply Reply Quote 0
                • L
                  lennysh
                  last edited by

                  OK, finally got Facebook put outside of the portal, but have run into a snag I can't fix unless I change the design. You see, I Facebook app is required and since I asked for publish permissions, the app had to get approved and Facebook isn't going to approve it because I didn't give the user an option to post to their page or not, plus I'm not even allowed to populate the message content at all. The only way they'll approve it is if I either remove the publish permission, or give the user complete control on the post and give them an opt out for posting. Not to mention, the app requires the full path to the return address, and local IPS aren't allowed for entry. So even if I got the rest working, I can't have it return to the internal page after logging in which it's currently doing to show them the terms of service, and the successfully connected message.

                  So I guess I have to totally rework my design to be able to get it approved by Facebook, and doesn't look like I'll be able to achieve what my client (and I) wants.

                  1 Reply Last reply Reply Quote 0
                  • A
                    almomdegal
                    last edited by

                    @LennySh:

                    OK, finally got Facebook put outside of the portal, but have run into a snag I can't fix unless I change the design. You see, I Facebook app is required and since I asked for publish permissions, the app had to get approved and Facebook isn't going to approve it because I didn't give the user an option to post to their page or not, plus I'm not even allowed to populate the message content at all. The only way they'll approve it is if I either remove the publish permission, or give the user complete control on the post and give them an opt out for posting. Not to mention, the app requires the full path to the return address, and local IPS aren't allowed for entry. So even if I got the rest working, I can't have it return to the internal page after logging in which it's currently doing to show them the terms of service, and the successfully connected message.

                    So I guess I have to totally rework my design to be able to get it approved by Facebook, and doesn't look like I'll be able to achieve what my client (and I) wants.

                    Hi lenny, any development in this matter?

                    1 Reply Last reply Reply Quote 0
                    • U
                      unlimited1981
                      last edited by

                      yes lenny you have posts on every single topic about this matter but you still havent provide any info

                      eny progress?

                      1 Reply Last reply Reply Quote 0
                      • J
                        jellex
                        last edited by

                        @LennySh:

                        Hello,

                        I've created all the pages needed (and they work outside of pfsense) to login to Facebook, post to the users wall while tagging a place, and then returning to captive portal to grant access to the internet. My only issue is the fact that I can't get captive portal to allow Facebook traffic prior to granting access (the client doesn't want traffic allowed until after a successful post to their wall). I've tried various IP allowances, as well as a Facebook host allowance (Facebook.com).  Doesn't matter what I add in there, it just will not allow the traffic.

                        Anyone have any ideas?

                        FYI; to get all Facebook IP ranges

                        # whois -h whois.radb.net -- '-i origin AS32934' | grep ^route | grep -v route6 | grep -v "/24"
                        
                        1 Reply Last reply Reply Quote 0
                        • T
                          tohil
                          last edited by

                          Any Progess in this?

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