how to convert pf-table into csv

Yavuz Maşlak yavuz.maslak at netiletisim.net
Fri Sep 9 21:16:04 UTC 2016


İ have a dynamic pf-table  as below;

  

 

10.10.231.230

        Cleared:     Fri Sep  9 22:55:53 2016

        In/Block:    [ Packets: 0                  Bytes: 0
]

        In/Pass:     [ Packets: 33455              Bytes: 2796398
]

        Out/Block:   [ Packets: 0                  Bytes: 0
]

        Out/Pass:    [ Packets: 3068               Bytes: 4350822
]

   10.10.231.234

        Cleared:     Fri Sep  9 23:33:18 2016

        In/Block:    [ Packets: 0                  Bytes: 0
]

        In/Pass:     [ Packets: 26585              Bytes: 2262193
]

        Out/Block:   [ Packets: 0                  Bytes: 0
]

        Out/Pass:    [ Packets: 11709              Bytes: 16738469
]

 

 

İ want to convert it to csv format  something like that ;

 

Let it begin an ip address and go on its statistics ;

10.10.231.234, Cleared:     Fri Sep  9 23:33:18 2016, In/Pass:     [
Packets: 26585              Bytes: 2262193

 

How can i do that ?

 

 



More information about the freebsd-pf mailing list