<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Freediameter should be able to provide accounting so long as the ENB supports it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=400 style='width:300.0pt;border-collapse:collapse'><tr><td width=91 valign=top style='width:68.25pt;padding:1.2pt 1.2pt 1.2pt 1.2pt'><p class=MsoNormal><a href="http://www.ispsupplies.com/"><span style='font-family:"Verdana",sans-serif;text-decoration:none'><img border=0 width=90 height=90 style='width:.9416in;height:.9416in' id="Picture_x0020_1" src="cid:image001.png@01D5F715.EF753EF0" alt="ISP Supplies"></span></a><o:p></o:p></p></td><td width=10 style='width:7.5pt;padding:1.2pt 1.2pt 1.2pt 1.2pt'><p class=MsoNormal><span style='font-family:"Verdana",sans-serif'><img border=0 width=10 height=90 style='width:.1083in;height:.9416in' id="Picture_x0020_2" src="cid:image002.jpg@01D5F715.EF753EF0" alt="cid:image002.jpg@01D5B005.DEE3BE10"></span><o:p></o:p></p></td><td width="100%" style='width:100.0%;padding:1.2pt 1.2pt 1.2pt 1.2pt'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana",sans-serif;color:black'>David Peterson</span></b><span style='font-family:"Verdana",sans-serif'><br></span><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:black'>Senior Engineer</span><span style='font-family:"Verdana",sans-serif'><br></span><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:black'>855-947-7776 ext. 9214<br>c 419-706-7355<br></span>d 979-314-1305<br><span style='font-size:10.0pt;font-family:"Verdana",sans-serif;color:firebrick'><a href="https://www.ispsupplies.com/"><span style='color:#0563C1'>https://www.ispsupplies.com</span></a></span><span style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:black'> </span><a href="https://facebook.com/ispsupplies"><b><span style='font-size:8.0pt;font-family:"Verdana",sans-serif;text-decoration:none'><img border=0 width=21 height=21 style='width:.2166in;height:.2166in' id="Picture_x0020_3" src="cid:image003.png@01D5F715.EF753EF0" alt=Facebook></span></b></a><b><span style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:#BE1F24'> </span></b><a href="https://twitter.com/ispsupplies"><b><span style='font-size:8.0pt;font-family:"Verdana",sans-serif;text-decoration:none'><img border=0 width=21 height=21 style='width:.2166in;height:.2166in' id="Picture_x0020_4" src="cid:image004.png@01D5F715.EF753EF0" alt=Twitter></span></b></a><b><span style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:#BE1F24'> </span></b><a href="https://www.linkedin.com/company/isp-supplies/"><b><span style='font-size:8.0pt;font-family:"Verdana",sans-serif;text-decoration:none'><img border=0 width=21 height=21 style='width:.2166in;height:.2166in' id="Picture_x0020_5" src="cid:image005.png@01D5F715.EF753EF0" alt=LinkedIn></span></b></a><o:p></o:p></p></td></tr></table><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b>From:</b> nextepc <nextepc-bounces@lists.osmocom.org> <b>On Behalf Of </b>Romeu Medeiros<br><b>Sent:</b> Tuesday, March 10, 2020 7:15 PM<br><b>To:</b> nextepc@lists.osmocom.org<br><b>Subject:</b> Fwd: Open5GS Traffic Accounting<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Hello all and <a href="mailto:acetcom@gmail.com" target="_blank">@Sukchan Lee</a>,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I was thinking about one way to generate traffic accounting from the LTE users of the Open5GS.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>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: <a href="https://linkprotect.cudasvc.com/url?a=https%3a%2f%2fcatonmat.net%2ftraffic-accounting-with-iptables&c=E,1,ZKxJjlnvr8VrquW5xsLsd-4VFJTXkRqUpJMEXfM2Scd6cIgGCuhBauaqsmY5YZMdj99b315zy-6g83E2G2y8uCV6ixKelMseXuH94Vnai_vaevVOCijMbuor&typo=1" target="_blank">https://catonmat.net/traffic-accounting-with-iptables</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>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.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The bad from this idea is that this code only will work correctly in a Linux box.<br><br>Does anyone have any other suggestions?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Romeu Medeiros<o:p></o:p></p></div></div></div></div></div></body></html>