i have a openwrt with tun1 interface (chilli) and eth0.2 interface (wan). Chilli (tun1) assign an ip 10.1.0.2 to a device connected (wifi or router lan). With:
Quote:
iptables -I FORWARD -i tun1 -p tcp -j LOG
|
i can send to server all the logs of this tun1 interfaces, but in syslog server file i found more row with same and consecutive DST ip, for example:
Quote:
IN=tun1 OUT=eth0.2 MAC= SRC=10.1.0.2 DST=139.59.212.125
IN=tun1 OUT=eth0.2 MAC= SRC=10.1.0.2 DST=139.59.212.125
IN=tun1 OUT=eth0.2 MAC= SRC=10.1.0.2 DST=216.58.198.45
IN=tun1 OUT=eth0.2 MAC= SRC=10.1.0.2 DST=216.58.198.45
IN=tun1 OUT=eth0.2 MAC= SRC=10.1.0.2 DST=216.58.198.45
IN=tun1 OUT=eth0.2 MAC= SRC=10.1.0.2 DST=216.58.198.45
IN=tun1 OUT=eth0.2 MAC= SRC=10.1.0.2 DST=216.58.198.45
|
for each destination IP, i would send to server only log of the first connection (not duplicated). is possible?
thank you