I would like to curl the output diag_ipsec.php
But I have serious problem with this.
I tried to login from command line with wget - no result I can only get a config file (I trying the suggested script I found in pfsense doc)
I try to login using cookies
I tried to login and first get the __csrf_magic
None one of this worked well.