{"id":20410857,"url":"https://github.com/ates/netspire-iptraffic","last_synced_at":"2025-10-18T19:59:45.036Z","repository":{"id":616325,"uuid":"254971","full_name":"ates/netspire-iptraffic","owner":"ates","description":"The IPTraffic module for serving VPN customers","archived":false,"fork":false,"pushed_at":"2012-08-07T09:30:57.000Z","size":263,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-23T03:50:36.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"athoune/broadcast-event-source","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ates.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-07-19T13:22:24.000Z","updated_at":"2017-04-18T15:24:36.000Z","dependencies_parsed_at":"2022-07-07T14:59:56.587Z","dependency_job_id":null,"html_url":"https://github.com/ates/netspire-iptraffic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fnetspire-iptraffic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fnetspire-iptraffic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fnetspire-iptraffic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ates%2Fnetspire-iptraffic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ates","download_url":"https://codeload.github.com/ates/netspire-iptraffic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231918573,"owners_count":18445746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T05:48:43.428Z","updated_at":"2025-10-18T19:59:39.976Z","avatar_url":"https://github.com/ates.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"The IPTraffic module for serving VPN customers\n==============================================\n\nFeatures:\n\n* RADIUS authentication\n* Realtime traffic calculation using [Netflow](http://en.wikipedia.org/wiki/Netflow) v5 as a traffic source\n* Flexible tariffs (subnet rules, time rules)\n* Using PostgreSQL database for the storing users, tariff plans, RADIUS attributes and sessions\n* It's easy to add your own backends\n\nConfiguration\n-------------\n\nThe following modules should be added to the netspire.conf file:\n\n    {mod_iptraffic, [{tariffs, \"tariffs.conf\"}, {session_timeout, 60}, {delay_stop, 5}, {disconnect_on_shutdown, yes}]}\n\nThe default value of the **session_timeout** option is 60 seconds and may be ommited.\n\nThe ***delay_stop*** option is used to delay stopping of the session to receive all data from netflow sensor after the session closing (After receiving Accounting-Stop packet).\nThe default value of the ***delay_stop*** option is 5 seconds and and may be ommited.\n\nThe ***disconnect_on_shutdown*** option is used to specify is need to disconnect clients from NAS in case of application shutdown.\nThe default value of the ***disconnect_on_shutdown*** option is yes and may be ommited.\n\nYou MUST set **Acct-Interim-Interval** RADIUS attribute for client. This attribute is required to prolong session and it's value MUST be significantly less than **session_timeout**.\nNote that if Netspire does not receiving interim updates from NAS via RADIUS, sessions will be marked as *expired* and closed, regardless of real state on NAS.\n\nBe aware about **Acct-Interim-Interval** radius attribute limitation for Linux pppd. It should be no less then 60 seconds.\n\nAlso you need to load SQL schema objects from schema.sql file to the already created database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fates%2Fnetspire-iptraffic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fates%2Fnetspire-iptraffic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fates%2Fnetspire-iptraffic/lists"}