I would like to log the IP source:port → target IP:port and datetime when i do a MASQUERADE on an outgoing port and outgoing connection.
I would like if it is possible to log this and if i can log this outside mikrotik, like to syslog or something.
I would log this information to store for about 5 years.
In a scenario where i share the public ip address behind a NAT with many others, i would like to be able to identify the user when i am asked to identify who accessed a specific website at this time with this source port and target port. Like mentioned above.
Im not sure what conection you want to log but here is example …
I will show you how I loging incoming nated conections to my server on port 443 to file …
First set logging