How to modify the login page?



  • Dear All,
    I am new to the amaizing pfsense, and I would like to say my specail thanks to all the people that worked hand in hand to come out with this great open source product.

    However, I am trying to setup one pfsense on my simple network, and I would like to modify the logon page "index.php" file by adding some logos, and instructions without hosting an external page.

    In order to access the PFSense file system, I need to use FTP client. Unfortunately, I am not able to get FTP connected successfully. It fails. I tried to play around but I couldn't come with a positive result.

    So my question is how can I access the pfsense file system using any FTP client like "WS_FTP" in order to get my modification get it done?

    Your help is much appreciated.

    Regards
    Bassam



  • your login page should be in html format

    just copy the code from the pfsense captive portal page and paste in into your personalized web page

    you don't need any FTP client

    for logos, you should call files in your html page : captiveportal-logo.gif for example
    and then upload your files using the pfsense webinterface : captive portal / files

    note that you can also use php in your captive portal page

    Chady



  • hi,

    if u do manage how to create a login page could you please send it to me, i need to change my login page, the sentece showing makes me look funny to use it to my clients.

    hadi57



  • @hadi57:

    hi,

    if u do manage how to create a login page could you please send it to me, i need to change my login page, the sentece showing makes me look funny to use it to my clients.

    hadi57

    Where is the problem? Just try to logon. When you see the logonpage view the sourcecode and save it on your local machine. Edit it until it fits your needs and upload it again. It's simple like that.



  • hi

    it worked fine thanks hoba



  • Great  :)



  • Ok I have done it too, I used SFTP client with the root/ <guilogin password="">to access the pfsense file system and do the required customization.

    But my question now is how to fix the root password after we change it? I used the comand "passwd root" to change it successfully, but whenever I reboot the system, the password changes back to the web gui login password.

    keep the same password is considered a security threating and anyone could easly login to the file system and play with my costomization.

    So, is there any solution for this problem?

    Regards
    Bassam</guilogin>



  • canse the pasword true the webgui
    then its written to config.xml
    and set back to that when you reboot

    and never give some one youre root/gui pasword !!!



  • Why did you do it that complicated? You can upload the custum cp elements via the webgui? Also the rtoot password can be changed at system>general (root has the password of the webgui admin user).


Log in to reply