Hello all and @Sukchan Lee <acetcom(a)gmail.com>om>,
I was thinking about one way to generate traffic accounting from the LTE
users of the Open5GS.
I'm rearching something using the iptables (in Linux), in this link we can
check a way to generate some traffic account in the linux:
https://catonmat.net/traffic-accounting-with-iptables
I'm thinking about writing a code, where the PGW adds a new line in
iptables with the IP/IPv6 address (TRAFFIC_ACCT_IN and TRAFFIC_ACCT_OUT)
when a new session is added and remove the same line when the session is
ended, with this the counter will restart, being able to use an external
program to get this information about the traffic sent and received by a
given user.
The bad from this idea is that this code only will work correctly in a
Linux box.
Does anyone have any other suggestions?
Thanks
Romeu Medeiros