Bu program tarafından gerçekleştirilen işlevler:
- Kaynak MAC, kaynak IP, hedef IP, protokol, kaynak bağlantı noktası, hedef bağlantı noktası, gelen arabirim, giden arabirim, paket boyutunu kaydedebilir.
- Nat tablo alanları tutarlı olduğu sürece özelleştirilebilir ve veritabanına kaydedilebilir.
Add firewall rules:
/ip firewall filter add action=log chain=forward
#The red IP address is changed to the address of the computer running this program
/system logging action add name=SyslogServer remote= 192.168.11.100 target=remote
/syslog add action=SyslogServer issues=security wall of information
Note: The computer or server running this program must open UDP port 514, otherwise it will not receive data.
MySQL table structure (table name cannot be changed):
-- auto-generated definition
create table nat
(
id int(255) auto_increment
primary key,
date date time default '0000-00-00 00:00:00' is not null,
mac varchar(17) empty
comment 'mac address',
srcip varchar(15) blank
comment 'source IP',
srcprot varchar(5) blank
comment 'source port',
dstip varchar(15) blank
comment 'target IP',
dstprot varchar(5) blank
comment 'destination port',
int_in varchar( 255) blank
comment 'incoming interface',
int_out varchar(255) blank
comment 'outgoing interface',
proto varchar(255) empty
comment 'protocol',
datalen varchar(5) empty
comment 'packet size'
);