I had my firewall log with lines like this:
Jun 23 04:11:42 ibop2 kernel: POSTROUTINGIN= OUT=eth1
SRC="192.168.1.10" DST=10.1.1.25 LEN=44 TOS=0x00 PREC=0x00
TTL=127 ID=34696 DF PROTO=TCP SPT=2176 DPT=80 WINDOW=8192
RES=0x00 SYN URGP=0
I want to create a report using awk like this:
SRC DST SPT DPT
------------ ---------- ---- ----
192.168.1.10 10.1.1.25 2176 80
192.168.1.11 10.1.2.50 2553 21
...
Any ideas? Thanks.
Freddy Chavez.