Community discussions

MikroTik App
 
zapper
just joined
Topic Author
Posts: 4
Joined: Fri May 13, 2016 7:02 pm

Log Nat translations

Thu Dec 01, 2016 8:44 am

Here we are required to maintain the logs of the following parameters

1: Internal IP Address and port
2: NAT translated IP Address and port
3. Destination IP Address and port

How do i get these logs in routeros, perferably using syslog
 
TyBermea
newbie
Posts: 29
Joined: Mon Nov 02, 2015 3:18 am
Contact:

Re: Log Nat translations

Fri Dec 02, 2016 4:59 am

You could try this (or some netflow alternative).
/system logging action
add name=syslog remote=1.2.3.4 target=remote

/system logging
add action=syslog topics=firewall
add action=syslog topics=dhcp

/ip firewall nat
add action=log chain=srcnat
add action=log chain=dstnat