Here's how to break the 1mb limit for captive portal file uploads
-
In case anyone else was interested – just comment out the highlighted code, like so:
http://i.imgur.com/3wrVBSo.png
The 1mb limit should really be optional… i'm at 2mb now and doing just fine ;p
As always, make a backup before you do stupid things, and if you update things may revert;)
-
You do realize it's an issue with the size of config.xml right?
Put your heave portal pages on a real web server and whitelist it in your portal.
-
You do realize it's an issue with the size of config.xml right?
Put your heave portal pages on a real web server and whitelist it in your portal.
Had no idea – what's the max size? I'd google it, but not sure if it's specific to pfs.
What you said sounds nice as well.. I may have to experiment. If I moved my files to a different server, I can still access uploaded files for captive portal right? Like http://pfsip:8000/captiveportal-blah.php ?
-
There is a lot that goes into the project, such as trying to keep the product functional on 256MB nodes.
You should fork pfSense, start your own project, and make millions. Call it pfDouche.
-
There is a lot that goes into the project, such as trying to keep the product functional on 256MB nodes.
You should fork pfSense, start your own project, and make millions. Call it pfDouche.
Quite possible. I do know that if I renamed it pfDouche and had it 100% cloned, minus the added 1mb extra (1mb limit? wtf?) file upload limit, people would use mine more than yours ;) this isn't the 90's anymore.
-
It's not mine.
And stop spamming all the various forums with your hacking posts. Nobody wants to see them. Keep them in develop. The rest of the forums are for helping people use the production system as it is.
-
It's not mine.
And stop spamming all the various forums with your hacking posts. Nobody wants to see them. Keep them in develop. The rest of the forums are for helping people use the production system as it is.
Not really hacking – more so fixes .. you are telling me you'd rather me not update my post if solved?? Who are you trying to help again? If someone searches and finds the 100% same problem I have, at least now they have an option ...
And ah I didn't notice a development section -- even still, it starts as a basic question .... when there's no answer, then yea a workaround is better than nothing, isn't it?
-
Hacking pfSense outside the GUI creates more problems for most than it solves. There's room for experimentation, sure, but it belongs in the development forum.
If you make changes outside the GUI:
Updates whack your changes
Reboots whack your changes
Saves using the GUI whack your changesFrom what I can tell, soundly-coded patches that are in line with the pfSense philosophy are graciously accepted as pull requests.
-
What you said sounds nice as well.. I may have to experiment. If I moved my files to a different server, I can still access uploaded files for captive portal right? Like http://pfsip:8000/captiveportal-blah.php ?
No. The uploaded portal login page (that fits in the 1MB limit) would refer to the outside web server for the heavy page assets.
You know, that sort of thing. -
What you said sounds nice as well.. I may have to experiment. If I moved my files to a different server, I can still access uploaded files for captive portal right? Like http://pfsip:8000/captiveportal-blah.php ?
No. The uploaded portal login page (that fits in the 1MB limit) would refer to the outside web server for the heavy page assets.
You know, that sort of thing.ahh… bulky stuff on outside server, got it
-
Dude, you realize this is a firewall, right? And the portal page is supposed to be a simple form for login/voucher input/click through some TOS. What on earth you cannot fit into 1MB?
-
Dude, you realize this is a firewall, right? And the portal page is supposed to be a simple form for login/voucher input/click through some TOS. What on earth you cannot fit into 1MB?
I'm turning into into an epic captive portal device instead of a firewall. You can call it whatever you want, but for me, it's PFCaptivePortalOfAwesome.