OPNsense Forum

English Forums => General Discussion => Topic started by: nordado on April 12, 2022, 08:02:04 PM

Title: Logging POST requests
Post by: nordado on April 12, 2022, 08:02:04 PM
Hi everyone, nice to be part of this amazing community!

Any ideas or suggestions on how I could log the connections http post with the body of the message?

I logging all things and sending to elk plataform.

Thks people!
Title: Re: Logging POST requests
Post by: EdwinKM on April 12, 2022, 11:02:17 PM
The spelling mistakes do not matter. But please elaborate on what you exactly want to accomplish.
Title: Re: Logging POST requests
Post by: nordado on April 13, 2022, 12:11:42 AM
i using pfw to log all denied rules on wan ok, it`s cool. but on lan output, i using the zenarmor and zenarmos just logging the path of URI and nothing about body request.

I wanted ideas or improvements for me to be able to get these body from requests
Title: Re: Logging POST requests
Post by: EdwinKM on April 27, 2022, 10:09:09 PM
never used zenarmor. But note that 99% of the internet is encrypted nowadays (https). The only part the router can inspect is DNS requests and the SNI header (the domain, like: www.youtube.com). If you really want to inspect content you have to create a MitM setup and you have to add custom certificates to your browser.
You have to add those for ALL devices (phones/tablets/etc). In most cases not even possible.

If you really mean "http" then more should be possible to inspect.