Hi
actually can be log output of a srcnat rule ?
for instance :
chain=srcnat action=src-nat to-addresses=172.16.20.20 protocol=tcp dstaddress=20.20.20.20 dstport=443
I want to log the all about of the this specific srcnat rule and send them to a syslog server
there is a way to do this ?
obvious instructions is not helped !!! i want something different
its can be down with a script ?
thanks a lot
Create an entry directly above the srcnat rule and use Action=log. Create a log prefix for this rule (example: srcnatlog).
In System>Logging>Actions, create an action for your syslog server. For example, you could give it a name like syslog, use type=remote and enter your syslog IP and port.
Next, in System>Logging, create a new rule. Topic can be left blank, but under prefix type in your log prefix you created earlier for the srcnat rule, then specify your new syslog action in the action field (in my example, we called it syslog so action=syslog).
Once that’s in place, it should start sending information to your syslog server.