Netgate SG-1000 microFirewall

Author Topic: Captive Portal / Post to Facebook to Login  (Read 5199 times)

0 Members and 1 Guest are viewing this topic.

Offline LennySh

  • Newbie
  • *
  • Posts: 19
  • Karma: +3/-0
  • Eat, Sleep, Drink, IT
    • View Profile
Captive Portal / Post to Facebook to Login
« on: June 25, 2015, 07:31:36 pm »
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?

Offline doktornotor

  • Hero Member
  • *****
  • Posts: 8553
  • Karma: +962/-278
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Do NOT PM for help!

Offline LennySh

  • Newbie
  • *
  • Posts: 19
  • Karma: +3/-0
  • Eat, Sleep, Drink, IT
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #2 on: June 26, 2015, 09:01:19 am »
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...

Offline elementalwindx

  • Full Member
  • ***
  • Posts: 231
  • Karma: +0/-0
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #3 on: June 26, 2015, 12:01:37 pm »
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.

Offline Roofus

  • Jr. Member
  • **
  • Posts: 39
  • Karma: +1/-0
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #4 on: June 26, 2015, 01:38:06 pm »
And me!

Is Google + any easier to include?


Thanks

Roofus

Offline LennySh

  • Newbie
  • *
  • Posts: 19
  • Karma: +3/-0
  • Eat, Sleep, Drink, IT
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #5 on: June 26, 2015, 02:41:09 pm »
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...

Offline LennySh

  • Newbie
  • *
  • Posts: 19
  • Karma: +3/-0
  • Eat, Sleep, Drink, IT
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #6 on: June 26, 2015, 07:33:59 pm »
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.

Offline almomdegal

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #7 on: August 01, 2015, 02:38:14 pm »
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?

Offline unlimited1981

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #8 on: March 09, 2016, 05:57:15 am »
yes lenny you have posts on every single topic about this matter but you still havent provide any info

eny progress?

Offline jellex

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #9 on: August 18, 2017, 01:36:57 am »
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

Code: [Select]
# whois -h whois.radb.net -- '-i origin AS32934' | grep ^route | grep -v route6 | grep -v "/24"

Offline tohil

  • Jr. Member
  • **
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: Captive Portal / Post to Facebook to Login
« Reply #10 on: January 25, 2018, 04:13:10 am »
Any Progess in this?