We are thinking how to accomplish this that is a good tip thanks Gertjan.
Not really sure how was it lost or how you assume to get more/better answers when you start a duplicate thread every couple of days. Stop abusing pfSense firewall as a generic webserver.
Sir, u don't even know what we are doing but u already again stop trying people to build a more rich firewall, we are not using pfsense as web server don't know where u get this info, we just want to connect to a external mysql server using php, we are building a app that is related to captiveportal, php-mysql is a old driver, the new one php-mysqli is the new and has better new functions that we use.
The firewall is very well check and rules to let just pass what we need no more.
The other thread was related to install php-mysqli, this is related to how to add php-mysqli to the base system.
But well thanks doktornotor for your advised.