Captive Portal / Post to Facebook to Login



  • 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?


  • Banned



  • 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…



  • 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.



  • And me!

    Is Google + any easier to include?

    Thanks

    Roofus



  • 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...



  • 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.



  • @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?



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

    eny progress?



  • @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"
    


  • Any Progess in this?


Log in to reply