From c1a020a6bf83da0186278491af2d0bfa8d917b44 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 22 Feb 2011 13:01:28 +0200 Subject: [PATCH] Configuration files translated into english --- .../stargazer/conf-available.d/mod_ao.conf | 2 +- .../conf-available.d/mod_cap_bpf.conf | 12 +- .../conf-available.d/mod_cap_divert.conf | 10 +- .../conf-available.d/mod_cap_nf.conf | 17 + .../stargazer/conf-available.d/mod_ia.conf | 49 +- .../stargazer/conf-available.d/mod_ping.conf | 9 +- .../conf-available.d/mod_radius.conf | 27 ++ .../conf-available.d/mod_remote_script.conf | 54 ++- .../stargazer/conf-available.d/mod_rpc.conf | 10 + .../stargazer/conf-available.d/mod_sg.conf | 9 +- .../conf-available.d/store_files.conf | 31 ++ .../conf-available.d/store_firebird.conf | 37 ++ .../conf-available.d/store_mysql.conf | 25 + .../conf-available.d/store_postgresql.conf | 25 + .../inst/freebsd/etc/stargazer/stargazer.conf | 429 +++++++----------- .../stargazer/conf-available.d/mod_ao.conf | 2 +- .../conf-available.d/mod_cap_ether.conf | 7 +- .../conf-available.d/mod_cap_ipq.conf | 6 +- .../conf-available.d/mod_cap_nf.conf | 17 + .../stargazer/conf-available.d/mod_ia.conf | 49 +- .../stargazer/conf-available.d/mod_ping.conf | 9 +- .../conf-available.d/mod_radius.conf | 27 ++ .../conf-available.d/mod_remote_script.conf | 54 ++- .../stargazer/conf-available.d/mod_rpc.conf | 10 + .../stargazer/conf-available.d/mod_sg.conf | 9 +- .../conf-available.d/store_files.conf | 31 ++ .../conf-available.d/store_firebird.conf | 37 ++ .../conf-available.d/store_mysql.conf | 25 + .../conf-available.d/store_postgresql.conf | 25 + .../inst/linux/etc/stargazer/stargazer.conf | 429 +++++++----------- 30 files changed, 853 insertions(+), 630 deletions(-) create mode 100644 projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_nf.conf create mode 100644 projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_files.conf create mode 100644 projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_firebird.conf create mode 100644 projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_mysql.conf create mode 100644 projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_postgresql.conf create mode 100644 projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_nf.conf create mode 100644 projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf create mode 100644 projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf create mode 100644 projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_mysql.conf create mode 100644 projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_postgresql.conf diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ao.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ao.conf index 903f4477..08926e95 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ao.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ao.conf @@ -1,3 +1,3 @@ -# îÁÓÔÒÏÊËÉ ÐÌÁÇÉÎÁ Á×ÔÏÒÉÚÁÃÉÉ Always Online "mod_auth_ao.so" +# Enable the authorization module Always Online "mod_auth_ao.so" diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_bpf.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_bpf.conf index a5b5923f..e6016474 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_bpf.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_bpf.conf @@ -1,8 +1,8 @@ -# íÏÄÕÌØ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ "mod_cap_bpf.so" -# äÌÑ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ ÉÓÐÏÌØÚÕÅÔÓÑ Berkeley Packet Filter +# Enable the traffic capture module "mod_cap_ipq.so" using Berkeley Packet Filter - # éÎÔÅÒÆÅÊÓ(Ù) ÎÁ ËÏÔÏÒÏÍ ÎÕÖÎÏ ÐÒÏÉÚ×ÏÄÉÔØ ÐÏÄÓÞÅÔ ÔÒÁÆÉËÁ - iface = rl0 - iface = rl1 - iface = dc0 + # Define interface(s) for traffic capture + iface = rl0 + iface = rl1 + iface = dc0 + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_divert.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_divert.conf index 4a7089db..d280e40d 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_divert.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_divert.conf @@ -1,6 +1,8 @@ -# íÏÄÕÌØ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ "mod_cap_divert.so" -# äÌÑ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ ÉÓÐÏÌØÚÕÀÔÓÑ Divert-ÓÏËÅÔÙ +# Enable the traffic capture module "mod_cap_divert.so" using Divert-sockets - # ðÏÒÔ ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÔÒÁÆÉËÁ - #Port = 15701 + # Port for traffic + # Parameter: required + # Value: 1 ... 65535 + # Default: 15701 + Port = 15701 diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_nf.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_nf.conf new file mode 100644 index 00000000..97e38fb6 --- /dev/null +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_cap_nf.conf @@ -0,0 +1,17 @@ +# Enable the traffic capture module "mod_cap_ipq.so" using NetFlow protocol + + # Port for TCP connections + # Note: Parameters TCPPort and UDPPort can be equal + # Parameter: optional + # Value: 1 ... 65534 + # Default: 9997 + #TCPPort = 9997 + + # Port for UDP connections + # Note: Parameters TCPPort and UDPPort can be equal + # Parameter: optional + # Value: 1 ... 65536 + # Default: 9997 + UDPPort = 9997 + + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ia.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ia.conf index 9cd1da82..fb1c4cde 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ia.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ia.conf @@ -1,29 +1,38 @@ -# îÁÓÔÒÏÊËÉ ÐÌÁÇÉÎÁ Á×ÔÏÒÉÚÁÃÉÉ InetAccess "mod_auth_ia.so" +# Enable the authorization module InetAccess "mod_auth_ia.so" - # ðÏÒÔ ÎÁ ËÏÔÏÒÏÍ ÐÒÉÎÉÍÁÀÔÓÑ ÏÂÒÁÝÅÎÉÑ ÏÔ Á×ÔÏÒÉÚÁÔÏÒÁ - # úÎÁÞÅÎÉÑ: 1...65534 + # Port on which the server interacts with authorizator + # Parameter: required + # Value: 1 ... 65534 + # Default: 5555 Port = 5555 - # ÷ÒÅÍÑ ÍÅÖÄÕ ÐÏÓÙÌËÁÍÉ ÚÁÐÒÏÓÁ ÐÏÌØÚÏ×ÁÔÅÌÀ ÖÉ× ÌÉ ÏÎ - # É ÏÂÎÏ×ÌÅÎÉÅÍ ÄÁÎÎÙÈ ÓÔÁÔÉÓÔÉËÉ (ÓÅËÕÎÄÙ) - # úÎÁÞÅÎÉÑ: 5...600 - UserDelay = 15 + # The time interval between sending an alive query to the user + # and updating statistics + # Parameter: required + # Values: 5 ... 600 (seconds) + # Default: 60 + UserDelay = 60 - #ôÁÊÍÁÕÔ ÄÌÑ ÐÏÌØÚÏ×ÁÔÅÌÑ. åÓÌÉ × ÔÅÞÅÎÉÅ ÜÔÏÇÏ ×ÒÅÍÅÎÉ Á×ÔÏÒÉÚÁÔÏÒ - #ÎÅ ÏÔ×ÅÞÁÅÔ, ÐÏÌØÚÏ×ÁÔÅÌØ ÂÕÄÅÔ ÏÔËÌÀÞÅÎ - # úÎÁÞÅÎÉÑ: 15...1200 + # User timeout. If authorizer does not respond during this time, + # the user will be disconnected + # Parameter: required + # Values: 5 ... 600 + # Default: 60 UserTimeout = 65 - # üÔÏÔ ÐÁÒÁÍÅÔÒ ÏÐÒÅÄÅÌÑÅÔ ÞÔÏ ÂÕÄÅÔ ÐÅÒÅÄÁ×ÁÔØÓÑ ÐÒÏÇÒÁÍÍÅ InetAccess ÏÔ ÓÅÒ×ÅÒÁ - # ËÁË ÏÔÓÔÁÔÏË ÐÒÅÄÏÐÌÁÞÅÎÎÏÇÏ ÔÒÁÆÉËÁ - # úÎÁÞÅÎÉÑ: - # FreeMb = 0 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÎÕÌÅ×ÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = 1 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÐÅÒ×ÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = 2 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ×ÔÏÒÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = 3 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÔÒÅÔØÅÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ + # Define which information will be transmitted from the server to InetAccess + # as a residue of prepaid traffic + # FreeMb = 0 — amount of free megabytes in terms of cost of zero direction + # FreeMb = 1 — amount of free megabytes in terms of cost of the first direction + # FreeMb = 1 — amount of free megabytes in terms of cost of the first direction + # FreeMb = 2 — amount of free megabytes in terms of cost of the second direction # ........................ - # FreeMb = 9 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÄÅ×ÑÔÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = cash - ËÏÌ-×Ï ÄÅÎÅÇ ÎÁ ËÏÔÏÒÙÅ ÀÚÅÒ ÍÏÖÅÔ ÂÅÓÐÌÁÔÎÏ ËÁÞÁÔØ - # FreeMb = none - ÎÉÞÅÇÏ ÎÅ ÐÅÒÅÄÁ×ÁÔØ + # FreeMb = 9 — amount of free megabytes in terms of cost of the ninth direction + # FreeMb = cash - amount of money for which the user can download for free + # FreeMb = none - no transfer + # Default: cash + # Parameter: required + # Values: different, see above + # Default: cash FreeMb = cash diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ping.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ping.conf index ef6a3b51..ec823fc5 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ping.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_ping.conf @@ -1,6 +1,9 @@ -# îÁÓÔÒÏÊËÉ ÍÏÄÕÌÑ ÐÉÎÇÕÀÝÅÇÏ ÐÏÌØÚÏ×ÁÔÅÌÅÊ "mod_ping.so" +# Enable the module that pings users "mod_ping.so" - # ÷ÒÅÍÑ, × ÓÅËÕÎÄÁÈ, ÍÅÖÄÕ ÐÉÎÇÁÍÉ ÏÄÎÏÇÏ É ÔÏÇÏ ÖÅ ÐÏÌØÚÏ×ÁÔÅÌÑ - # úÎÁÞÅÎÉÑ: 10...3600 + # The time interval between pings + # Parameter: required + # Value: 10 ... 3600 (seconds) + # Default: 15 PingDelay = 15 + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_radius.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_radius.conf index cfce24a8..00aeaa56 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_radius.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_radius.conf @@ -1,7 +1,34 @@ +# Enable the interaction module for FreeRADIUS "mod_radius.so" + # FreeRADIUS password + # Parameter: required + # Values: any, supported by software + # Default: 123456 Password = 123456 + + # FreeRADIUS server + # Parameter: required + # Values: IP address or DNS name + # Default: 127.0.0.1 ServerIP = 127.0.0.1 + + # FreeRADIUS port + # Parameter: required + # Value: 1 ... 65535 + # Default: 6666 Port = 6666 + + # List of services for which will be carried out FreeRADIUS authentication + # Note: Parameter can be blank + # Parameter: required + # Value: any, supported by software + # Default: Login-User AuthServices = Login-User + + # List of services for which will be carried out FreeRADIUS Accounting + # Note: Parameter can be blank + # Parameter: required + # Value: any, supported by software + # Default: Framed-User AcctServices = Framed-User diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_remote_script.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_remote_script.conf index 9a65042d..6fff4924 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_remote_script.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_remote_script.conf @@ -1,31 +1,43 @@ -# îÁÓÔÒÏÊËÉ ÍÏÄÕÌÑ ÄÌÑ ÕÄÁÌÅÎÎÏÇÏ ×ÙÐÏÌÎÅÎÉÑ ÓËÒÉÐÔÏ× OnConnect É -# OnDisconnect "mod_remote_script.so" +# Enable the module for remote execution of scripts OnConnect and OnDisconnect "mod_remote_script.so" - # ÷ÒÅÍÑ, × ÓÅËÕÎÄÁÈ, ÍÅÖÄÕ ÐÏÓÙÌËÁÍÉ ÐÏÄÔ×ÅÒÖÄÅÎÉÊ, ÔÏÇÏ, ÞÔÏ ÐÏÌØÚÏ×ÁÔÅÌØ - # ×Ó£ ÅÝÅ ÏÎÌÁÊÎ - # úÎÁÞÅÎÉÑ: 10...600 + # The time interval between sending confirmations that the user is online + # Parametr: required + # Values: 10 ... 600 (seconds) + # Default: 60 SendPeriod = 15 - # óÏÏÔ×ÅÔÓÔ×ÉÅ ÐÏÄÓÅÔÅÊ, × ËÏÔÏÒÏÊ ÎÁÈÏÄÉÔÓÑ ÐÏÌØÚÏ×ÁÔÅÌØ É - # ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÇÏ ÒÏÕÔÅÒÁ. æÏÒÍÁÔ ÆÁÊÌÁ: <ÐÏÄÓÅÔØ> <ÒÏÕÔÅÒ1> <ÒÏÕÔÅÒ2>... - # ðÒÉÍÅÒ ÓÏÄÅÒÖÉÍÏÇÏ ÆÁÊÌÁ: - #192.168.1.0/24 192.168.1.7 192.168.1.8 - #192.168.2.0/24 192.168.2.5 192.168.2.6 192.168.2.7 - #192.168.3.0/24 192.168.3.5 - #192.168.4.0/24 192.168.4.5 + # Define mapping between subnet(s) and remote server(s) + # File format: ... + # Example: + # 192.168.1.0/24 192.168.1.7 192.168.1.8 + # 192.168.2.0/24 192.168.2.5 192.168.2.6 192.168.2.7 + # 192.168.3.0/24 192.168.3.5 + # 192.168.4.0/24 192.168.4.5 + # Parametr: required + # Values: filename + # Default: subnets SubnetFile = subnets - # ðÁÒÏÌØ ÄÌÑ ÛÉÆÒÏ×ÁÎÉÑ ÐÁËÅÔÏ× ÍÅÖÄÕ stg-ÓÅÒ×ÅÒÏÍ É ÓÅÒ×ÅÒÏÍ, - # ×ÙÐÏÌÎÑÀÝÉÍ ÓËÒÉÐÔÙ + # The password to encrypt packets between the stg-server and remote server + # Parameter: required + # Values: any + # Default: 123456 Password = 123456 - # üÔÏÔ ÐÁÒÁÍÅÔÒ ÏÐÒÅÄÅÌÑÅÔ ËÁËÉÅ ÐÁÒÁÍÅÔÒÙ ÐÏÌØÚÏ×ÁÔÅÌÑ ÐÅÒÅÄÁÀÔÓÑ - # ÎÁ ÕÄÁÌÅÎÎÙÊ ÓÅÒ×ÅÒ - # Cash, FreeMb, Passive, Disabled, AlwaysOnline, TariffName, NextTariff, Address, - # Note, Group, Email, RealName, Credit, EnabledDirs, Userdata0...Userdata9 - UserParams=Cash Tariff EnabledDirs + # Define which user parameters are transferred to a remote server in addition to + # other parameters that transfered by default (ID, IP, Login, Cash, Dirs). + # Note: Parameter can be blank. + # Parameter: required + # Values: Cash, FreeMb, Passive, Disabled, AlwaysOnline, TariffName, + # NextTariff, Address, Note, Group, Email, RealName, Credit, EnabledDirs, + # Userdata0...Userdata9 + # Default: Cash Tariff EnabledDirs + UserParams = Cash Tariff EnabledDirs - # ðÏÒÔ ÐÏ ËÏÔÏÒÏÍÕ ÓÅÒ×ÅÒ ÏÔÓÙÌÁÅÔ ÓÏÏÂÝÅÎÉÑ ÎÁ ÒÏÕÔÅÒ - # úÎÁÞÅÎÉÑ: 1...65535 + # Port on which the server interacts with remote server + # Parameter: required + # Value: 1...65535 + # Default: 9999 Port = 9999 + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_rpc.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_rpc.conf index fb0d53a6..eacf7391 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_rpc.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_rpc.conf @@ -1,4 +1,14 @@ +# Enable the configuration module ConfRPC "mod_conf_rpc.so" + # Port on which the server interacts with configurator + # Parameter: required + # Value: 1...65535 + # Default: Port = 8080 + + # Session timeout + # Parameter: required + # Value: any numeric + # Default: 1800 CookieTimeout = 1800 diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_sg.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_sg.conf index bca3d746..1931a121 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_sg.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/mod_sg.conf @@ -1,6 +1,9 @@ -# îÁÓÔÒÏÊËÉ ÍÏÄÕÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ SgConfig "mod_conf_sg.so" +# Enable the configuration module SgConfig "mod_conf_sg.so" - # ðÏÒÔ ÐÏ ËÏÔÏÒÏÍÕ ÓÅÒ×ÅÒ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÅÔ Ó ËÏÎÆÉÇÕÒÁÔÏÒÏÍ - # úÎÁÞÅÎÉÑ: 1...65535 + # Port on which the server interacts with configurator + # Parameter: required + # Value: 1...65535 + # Default: 5555 Port = 5555 + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_files.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_files.conf new file mode 100644 index 00000000..e9c5bc5d --- /dev/null +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_files.conf @@ -0,0 +1,31 @@ +# Option - the name of the module without 'mod_' at the beginning and '.so' +# in the end ie full name of the module mod_store_files.so + + + # Working server directory, provides data on tariffs, users, administrators. + # Parameter: required + # Value: directory path + WorkDir = /var/stargazer + + # Owner, group and permissions of the files of user statistics (stat) + # Parameter: required + # Values: any, supported by OS + ConfOwner = root + ConfGroup = stargazer + ConfMode = 600 + + # Owner, group and permissions on user configuration files (conf) + # Parameter: required + # Values: any, supported by OS + StatOwner = root + StatGroup = stargazer + StatMode = 640 + + # Owner, group and permissions for user log files (log) + # Parameter: required + # Values: any, supported by OS + UserLogOwner = root + UserLogGroup = stargazer + UserLogMode = 640 + + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_firebird.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_firebird.conf new file mode 100644 index 00000000..837889e3 --- /dev/null +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_firebird.conf @@ -0,0 +1,37 @@ + + # Database server address + # Parameter: required + # Value: IP address or DNS name + # Default: localhost + server = localhost + + # Path to the database on the server or its alias + # Parameter: required + # Value: file path + # Default: /var/stg/stargazer.fdb + database = /var/stg/stargazer.fdb + + # Database username + # Parameter: required + # Value: any, supported by database + # Default: stg + user = stg + + # Database password + # Parameter: required + # Value: any, supported by database + # Default: 123456 + password = 123456 + + # The transaction isolation level + # Parameter: optional + # Values: concurrency, dirtyread, readcommitted, consistency + # Defalt: concurrency + isolationLevel = concurrency + + # Responding to lock (optional, defaults to wait): + # Parameter: optional + # Values: wait, nowait + # Defalt: wait + lockResolution = wait + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_mysql.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_mysql.conf new file mode 100644 index 00000000..af540661 --- /dev/null +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_mysql.conf @@ -0,0 +1,25 @@ + + # Database server address + # Parameter: required + # Value: IP address or DNS name + # Default: localhost + dbhost = localhost + + # Database name + # Parameter: required + # Value: any, supported by database + # Default: stg + dbname = stg + + # Database username + # Parameter: required + # Value: any, supported by database + # Default: stg + dbuser = stg + + # Database password + # Parameter: required + # Value: any, supported by database + # Default: 123456 + rootdbpass = 123456 + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_postgresql.conf b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_postgresql.conf new file mode 100644 index 00000000..1b0aaf4c --- /dev/null +++ b/projects/stargazer/inst/freebsd/etc/stargazer/conf-available.d/store_postgresql.conf @@ -0,0 +1,25 @@ + + # Database server address + # Parameter: required + # Value: IP address or DNS name + # Default: localhost + server = localhost + + # Database name + # Parameter: required + # Value: any, supported by database + # Default: stargazer + database = stargazer + + # Database username + # Parameter: mandatory + # Value: any, supported by database + # Default: stg + user = stg + + # Database password + # Parameter: required + # Value: any, supported by database + # Default: 123456 + password = 123456 + diff --git a/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf b/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf index 36f147fd..5c0693c4 100644 --- a/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf +++ b/projects/stargazer/inst/freebsd/etc/stargazer/stargazer.conf @@ -1,258 +1,171 @@ -################################################################################ -# æÁÊÌ ÎÁÓÔÒÏÅË ÓÅÒ×ÅÒÁ stargazer # -################################################################################ - - - -# éÍÑ ÌÏÇ-ÆÁÊÌÁ ËÕÄÁ ÐÉÛÕÔÓÑ ÓÏÂÙÔÉÑ -LogFile = /var/log/stargazer.log - - - -# éÍÑ PID-ÆÁÊÌÁ ËÕÄÁ ÐÉÛÅÔÓÑ ÉÄÅÎÔÉÆÉËÁÔÏÒ ÐÒÏÃÅÓÓÁ -# ðÏ ÕÍÏÌÞÁÎÉÀ /var/run/pid -PIDFile = /var/run/stargazer.pid - - - -# éÍÑ ÆÁÊÌÁ × ËÏÔÏÒÏÍ ÏÐÒÅÄÅÌÑÀÔÓÑ ÐÒÁ×ÉÌÁ ÐÏÄÓÞÅÔÁ ÔÒÁÆÉËÁ -Rules = /etc/stargazer/rules - - - -# ÷ÒÅÍÑ ÞÅÒÅÚ ËÏÔÏÒÏÅ ÐÉÛÅÔÓÑ d âä ÄÅÔÁÌØÎÁÑ ÓÔÁÔÉÓÔÉËÁ ÐÏÌØÚÏ×ÁÔÅÌÑ -# úÎÁÞÅÎÉÑ: 1, 1/2, 1/4, 1/6. -# 1 - ÒÁÚ × ÞÁc, 1/2 - ÒÁÚ × ÐÏÌ ÞÁÓÁ, 1/4 - ÒÁÚ × 15 ÍÉÎ, 1/6 - ÒÁÚ × 10 ÍÉÎ -DetailStatWritePeriod=1/6 - - - -# ðÅÒÉÏÄÉÞÎÏÓÔØ ÚÁÐÉÓÉ ÚÁÐÉÓÉ × âä ÉÎÆÏÒÍÁÃÉÉ Ï ÓÔÁÔÉÓÔÉËÅ ÐÏÌØÚÏ×ÁÔÅÌÑ (ÍÉÎÕÔÙ) -# ðÒÉ ÂÏÌØÛÏÍ ËÏÌ-×Å ÐÏÌØÚÏ×ÁÔÅÌÅÊ ÜÔÕ ×ÅÌÉÞÉÎÕ ÓÔÏÉÔ Õ×ÅÌÉÞÉÔØ, Ô.Ë. -# ÚÁÐÉÓØ × âä ÍÏÖÅÔ ÚÁÎÉÍÁÔØ ÄÌÉÔÅÌØÎÏÅ ×ÒÅÍÑ. -# úÎÁÞÅÎÉÑ: 1...1440 (ÍÉÎÕÔÙ) -StatWritePeriod = 10 - - - -# äÅÎØ ÓÎÑÔÉÑ ÁÂÏÎÐÌÁÔÙ -# úÎÁÞÅÎÉÑ: 0...31. 0 - ðÏÓÌÅÄÎÉÊ ÄÅÎØ ÍÅÓÑÃÁ -DayFee = 1 - - - -# áÂÏÎÐÌÁÔÁ ÓÎÉÍÁÅÔÓÑ × ÐÏÓÌÅÄÎÉÊ (yes) ÉÌÉ ÐÅÒ×ÙÊ (no) ÄÅÎØ ÕÞÅÔÎÏÇÏ ÐÅÒÉÏÄÁ. -# üÔÏ ×ÌÉÑÅÔ ÎÁ ÔÏ, ËÁË ÂÕÄÅÔ ÓÎÑÔÁ ÁÂÏÎÐÌÁÔÁ (áð) ÐÒÉ ÐÅÒÅÈÏÄÅ ÎÁ ÎÏ×ÙÊ ÔÁÒÉÆ. -# åÓÌÉ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÂÙÌ ÔÁÒÉÆ A Ó áð=100 É ÏÎ ÈÏÞÅÔ ÐÅÒÅÊÔÉ ÎÁ ÔÁÒÉÆ B Ó áð=200, -# ÔÏ ÐÒÉ ÐÅÒÅÈÏÄÅ ÎÁ ÎÏ×ÙÊ ÔÁÒÉÆ ÓÏ ÓÞÅÔÁ ÐÏÌØÚÏ×ÁÔÅÌÑ ÓÎÉÍÅÔÓÑ 100, ÅÓÌÉ -# DayFeeIsLastDay = yes É 200, ÅÓÌÉ DayFeeIsLastDay = no -DayFeeIsLastDay = yes - - - -# äÅÎØ ÓÂÒÏÓÁ ÄÁÎÎÙÈ Ï ÔÒÁÆÉËÅ ÚÁ ÍÅÓÑÃ É ÄÅÎØ ÐÅÒÅÈÏÄÁ ÐÏÌØÚÏ×ÁÔÅÌÅÊ ÎÁ ÎÏ×ÙÅ ÔÁÒÉÆÙ -# úÎÁÞÅÎÉÑ: 0...31. 0 - ðÏÓÌÅÄÎÉÊ ÄÅÎØ ÍÅÓÑÃÁ -DayResetTraff = 1 - - - -# "òÁÚÍÁÚÁÎÎÏÅ" ÓÎÑÔÉÅ ÁÂÏÎÐÌÁÔÙ. óÎÑÔÉÅ áð ÎÅ ÒÁÚ × ÍÅÓÑÃ, Á ËÁÖÄÙÊ -# ÄÅÎØ 1/30 ÉÌÉ 1/31 ÞÁÓÔÉ áð -# úÎÁÞÅÎÉÑ: yes, no -SpreadFee = no - - - -# äÁÎÎÁÑ ÏÐÃÉÑ ÏÐÒÅÄÅÌÑÅÔ ÍÏÖÅÔ ÌÉ ÐÏÌØÚÏ×ÁÔÅÌØ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ × ÉÎÔÅÒÅÎÔ -# ÅÓÌÉ Õ ÎÅÇÏ ÎÁ ÓÞÅÔÕ ÎÅÔ ÄÅÎÅÇ, ÎÏ ÏÓÔÁÌÓÑ ÐÒÅÄÏÐÌÁÞÅÎÎÙÊ ÔÒÁÆÉË -# úÎÁÞÅÎÉÑ: yes, no -FreeMbAllowInet = no - - - -# üÔÁ ÏÐÃÉÑ ÏÐÒÅÄÅÌÑÅÔ ÞÔÏ ÂÕÄÅÔ ÐÉÓÁÔØÓÑ × ÓÔÏÉÍÏÓÔØ ÔÒÁÆÉËÁ × detail_stat. -# åÓÌÉ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÅÝÅ ÅÓÔØ ÐÒÅÄÏÐÌÁÞÅÎÎÙÊ ÔÒÁÆÉË É WriteFreeMbTraffCost = no, -# ÔÏ × detail_stat ÓÔÏÉÍÏÓÔØ ÂÕÄÅÔ 0. åÓÌÉ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÕÖÅ ÎÅÔ -# ÐÒÅÄÏÐÌÁÞÅÎÎÏÇÏ ÔÒÁÆÉËÁ É WriteFreeMbTraffCost = no, ÔÏ × detail_stat -# ÂÕÄÅÔ ÚÁÐÉÓÁÎÁ ÓÔÏÉÏÓÔØ ÔÒÁÆÉËÁ. ðÒÉ WriteFreeMbTraffCost = yes ÓÔÏÉÍÏÓÔØ -# ÔÒÁÆÉËÁ ÂÕÄÅÔ ÚÁÐÉÓÁÎÁ × ÌÀÂÏÍ ÓÌÕÞÁÅ. -WriteFreeMbTraffCost = no - - - -# îÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ. õËÁÚÙ×ÁÅÔ ÓÎÉÍÁÔØ ÐÏÌÎÕÀ ÁÂÏÎÐÌÁÔÕ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÄÁÖÅ -# ÅÓÌÉ ÏÎ ÂÙÚ ÚÁÍÏÒÏÖÅÎ ÔÏÌØËÏ ÞÁÓÔØ ÕÞÅÔÎÏÇÏ ÐÅÒÉÏÄÁ. -# ðÏ ÕÍÏÌÞÁÎÉÀ ÕÓÔÁÎÏ×ÌÅÎ × no -# FullFee=no - -# îÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ ÕËÁÚÙ×ÁÀÝÉÊ ÐÏËÁÚÙ×ÁÔØ ÎÁ ÓÞÅÔÕ É ÐÏÚ×ÏÌÑÔØ -# ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÌØÚÏ×ÁÔÅÌÀ ÁÂÏÎÐÌÁÔÕ. ðÏ ÕÍÏÌÞÁÎÉÀ ÕÓÔÁÎÏ×ÌÅÎ × yes -# ShowFeeInCash=yes - - - -# îÁÚ×ÁÎÉÑ ÎÁÐÒÁ×ÌÅÎÉÊ. îÁÐÒÁ×ÌÅÎÉÑ ÂÅÚ ÎÁÚ×ÁÎÉÊ ÎÅ ÂÕÄÕÔ ÏÔÏÂÒÁÖÁÔØÓÑ × -# Á×ÔÏÒÉÚÁÔÏÒÅ É ËÏÎÆÉÇÕÒÁÔÏÒÅ. îÁÚ×ÁÎÉÑ ÓÏÓÔÏÑÝÉÅ ÉÚ ÎÅÓËÏÌØËÉÈ ÓÌÏ× ÄÏÌÖÎÙ -# ÂÙÔØ ×ÚÑÔÙ × ËÁ×ÙÞËÉ - - DirName0 = ìÏËÁÌØ - DirName1 = çÏÒÏÄ - DirName2 = íÉÒ - DirName3 = - DirName4 = - DirName5 = "ìÏËÁÌØÎÙÅ ÉÇÒÙ" - DirName6 = - DirName7 = - DirName8 = - DirName9 = - - - - -# ëÏÌ-×Ï ÚÁÐÕÓËÁÅÍÙÈ ÐÒÏÃÅÓÓÏ× stg-exec. -# üÔÉ ÐÒÏÃÅÓÓÙ ÏÔ×ÅÞÁÀÔ ÚÁ ×ÙÐÏÌÎÅÎÉÅ ÓËÒÉÐÔÏ× OnConnect, OnDisconnect, ... -# ëÏÌ-×Ï ÐÒÏÃÅÓÓÏ× ÏÚÎÁÞÁÅÔ ÓËÏÌØËÏ ÓËÒÉÐÔÏ× ÍÏÇÕÔ ×ÙÐÏÌÎÑÔÓÑ ÏÄÎÏ×ÒÅÍÅÎÎÏ. -# úÎÁÞÅÎÉÑ: 1...1024 -ExecutersNum = 1 - - - -# Message Key ÄÌÑ stg-exec. -# éÄÅÎÔÉÆÉËÁÔÏÒ ÏÞÅÒÅÄÉ ÓÏÏÂÝÅÎÉÊ ÄÌÑ ×ÙÐÏÌÎÑÔÅÌÑ ÓËÒÉÐÔÏ×. -# åÇÏ ÉÚÍÅÎÅÎÉÅ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔÓÑ ÅÓÌÉ ÅÓÔØ ÎÅÏÂÈÏÄÉÍÏÓÔØ ÚÁÐÕÓÔÉÔØ ÎÅÓËÏÌØËÏ -# ÜËÚÅÍÐÌÑÒÏ× stg. åÓÌÉ ×Ù ÎÅ ÐÏÎÉÍÁÅÔÅ, ÞÔÏ ÜÔÏ, ÎÅ ÔÒÏÇÁÊÔÅ ÜÔÏÔ ÐÁÒÁÍÅÔÒ! -# úÎÁÞÅÎÉÑ: 0...2^32 -# úÎÁÞÅÎÉÅ ÐÏ ÕÍÏÌÞÁÎÉÀ: 5555 -# ExecMsgKey = 5555 - - - -# ðÕÔØ Ë ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÎÁÈÏÄÑÔÓÑ ÍÏÄÕÌÉ ÓÅÒ×ÅÒÁ -ModulesPath = /usr/lib/stg - -# ïÐÒÅÄÅÌÑÅÔ ÄÉÒÅËÔÏÒÉÀ, × ËÏÔÏÒÏÊ ÂÕÄÕÔ ÎÁÈÏÄÉÔÓÑ ÆÁÊÌÙ "ÍÏÎÉÔÏÒÁ" -# ÒÁÂÏÔÙ ÓÅÒ×ÅÒÁ. ÷ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ ÂÕÄÕÔ ÓÏÚÄÁÎÙ ÐÕÓÔÙÅ ÆÁÊÌÙ, ×ÒÅÍÑ -# ÍÏÄÉÆÉËÁÃÉÉ ËÏÔÏÒÙÈ ÂÕÄÅÔ ÍÅÎÑÔØÓÑ ÐÒÉÍÅÒÎÏ ÒÁÚ × ÍÉÎÕÔÕ. åÓÌÉ ËÁËÏÊ-ÔÏ -# ËÏÍÐÏÎÅÎÔ ÓÅÒ×ÅÒÁ ÚÁ×ÉÓÎÅÔ, ÆÁÊÌ(Ù) ÐÅÒÅÓÔÁÎÅÔ ÏÂÎÏ×ÌÑÔÓÑ, É ÐÏ ÜÔÏÍÕ -# ÐÒÉÚÎÁËÕ ÍÏÖÎÏ ÏÐÒÅÄÅÌÉÔØ ÓÂÏÊ × ÒÁÂÏÔÅ ÓÅÒ×ÅÒÁ É ÐÒÉ ÎÁÄÏÂÎÏÓÔÉ -# ÐÅÒÅÚÁÐÕÓÔÉÔØ. åÓÌÉ ÐÁÒÁÍÅÔÒ ÎÅ ÕËÁÚÁÎ ÉÌÉ ÐÕÓÔÏÊ, ÍÏÎÉÔÏÒÉÎÇ ÐÒÏÉÚ×ÏÄÉÔÓÑ -# ÎÅ ÂÕÄÅÔ. ðÁÒÁÍÅÔÒ ÎÅ Ñ×ÌÑÅÔÓÑ ÏÂÑÚÁÔÅÌØÎÙÍ, ÐÏ ÕÍÏÌÞÁÎÉÀ ÐÕÓÔÏÊ. -#MonitorDir=/var/stargazer/monitor - -################################################################################ -# Store module -# îÁÓÔÒÏÊËÉ ÐÌÁÇÉÎÁ ÒÁÂÏÔÁÀÝÅÇÏ Ó âä ÓÅÒ×ÅÒÁ - -# ðÁÒÁÍÅÔÒ - ÜÔÏ ÉÍÑ ÍÏÄÕÌÑ ÂÅÚ mod_ × ÎÁÞÁÌÅ É .so × ËÏÎÃÅ -# ô.Å. ÐÏÌÎÏÅ ÉÍÑ ÍÏÄÕÌÑ mod_store_files.so - - - # òÁÂÏÞÁÑ ÄÉÒÅËÔÏÒÉÑ ÓÅÒ×ÅÒÁ, ÔÕÔ ÓÏÄÅÒÖÁÔÓÑ ÄÁÎÎÙÅ Ï ÔÁÒÉÆÁÈ, ÐÏÌØÚÏ×ÁÔÅÌÑÈ, - # ÁÄÍÉÎÉÓÔÒÁÔÏÒÁÈ É Ô.Ä. - WorkDir = /var/stargazer - - - # ÷ÌÁÄÅÌÅÃ, ÇÒÕÐÐÁ É ÐÒÁ×Á ÄÏÓÔÕÐÁ ÎÁ ÆÁÊÌÙ ÓÔÁÔÉÓÔÉËÉ (stat) ÐÏÌØÚÏ×ÁÔÅÌÑ - ConfOwner = root - ConfGroup = wheel - ConfMode = 600 - - - # ÷ÌÁÄÅÌÅÃ, ÇÒÕÐÐÁ É ÐÒÁ×Á ÄÏÓÔÕÐÁ ÎÁ ÆÁÊÌÙ ËÏÎÆÉÇÕÒÁÃÉÉ (conf) ÐÏÌØÚÏ×ÁÔÅÌÑ - StatOwner = root - StatGroup = wheel - StatMode = 640 - - # ÷ÌÁÄÅÌÅÃ, ÇÒÕÐÐÁ É ÐÒÁ×Á ÄÏÓÔÕÐÁ ÎÁ ÌÏÇ-ÆÁÊÌÙ (log) ÐÏÌØÚÏ×ÁÔÅÌÑ - UserLogOwner = root - UserLogGroup = wheel - UserLogMode = 640 - - # õÄÁÌÑÔØ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ ÐÏÓÌÅ ÕÓÐÅÛÎÏÊ ÚÁÐÉÓÉ conf/stat - # úÎÁÞÅÎÉÑ: yes, no - # ðÏ ÕÍÏÌÞÁÎÉÀ: yes - # RemoveBak = yes - - # ÷ÏÓÓÔÁÎÁ×ÌÉ×ÁÔØ ÆÁÊÌÙ conf/stat ÉÚ ÒÅÚÅÒ×ÎÙÈ ËÏÐÉÊ ÐÒÉ ÏÛÉÂËÅ ÞÔÅÎÉÑ - # úÎÁÞÅÎÉÑ: yes, no - # ðÏ ÕÍÏÌÞÁÎÉÀ: no - # ReadBak = no - - - -# -# # áÄÒÅÓ ÓÅÒ×ÅÒÁ âä -# server=localhost -# -# # ðÕÔØ Ë âä ÎÁ ÓÅÒ×ÅÒÅ ÉÌÉ ÅÅ ÁÌÉÁÓ -# database=/var/stg/stargazer.fdb -# -# # éÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# user=stg -# -# # ðÁÒÏÌØ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# password=123456 -# -# # õÒÏ×ÅÎØ ÉÚÏÌÑÃÉÉ ÔÒÁÎÚÁÃÉÊ (ÎÅ ÏÂÑÚÁÔÅÌØÎÏ, ÐÏ ÕÍÏÌÞÁÎÉÀ oncurrency): -# # concurrency -# # dirtyRead -# # readCommitted -# # consistency -# isolationLevel=concurrency -# -# # äÅÊÓÔ×ÉÑ ÐÒÉ ÂÌÏËÉÒÏ×ËÁÈ (ÎÅ ÏÂÑÚÁÔÅÌØÎÏ, ÐÏ ÕÍÏÌÞÁÎÉÀ wait): -# # wait -# # noWait -# lockResolution=wait -# - -# -# # áÄÒÅÓ ÓÅÒ×ÅÒÁ âä -# server=localhost -# -# # éÍÑ âä -# database=stargazer -# -# # éÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# user=stg -# -# # ðÁÒÏÌØ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# password=123456 -# - -# -# # éÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# dbuser = stg -# -# # ðÁÒÏÌØ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# rootdbpass = 123456 -# -# # éÍÑ âä ÎÁ ÓÅÒ×ÅÒÅ -# dbname = stg -# -# # áÄÒÅÓ ÓÅÒ×ÅÒÁ âä -# dbhost = localhost -# - -################################################################################ -# ðÒÏÞÉÅ ÍÏÄÕÌÉ - - - # íÏÄÕÌØ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ "mod_cap_nf.so" - # ðÒÉÎÉÍÁÅÔ ÉÎÆÏÒÍÁÃÉÀ Ï ÔÒÁÆÉËÅ ÐÏ ÐÒÏÔÏËÏÌÕ NetFlow - - # TCPPort - ÐÏÒÔ ÄÌÑ TCP-ÓÏÅÄÉÎÅÎÉÊ - #TCPPort = 42111 - - # UDPPort - ÐÏÒÔ ÄÌÑ UDP-ÓÏÅÄÉÎÅÎÉÊ - UDPPort = 42111 - - # íÏÇÕÔ ÉÍÅÔØ ÓÏ×ÐÁÄÁÀÝÉÅ ÚÎÁÞÅÎÉÑ. - # åÓÌÉ ÐÁÒÁÍÅÔÒ ÎÅ ÕËÁÚÁÎ - ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ÐÏÒÔ ÎÅ "ÐÒÏÓÌÕÛÉ×ÁÅÔÓÑ". - - - - - - -################################################################################ +################################################################################ +# Stargazer Configuration file # +################################################################################ + +# LOG file name +# Parameter: required +# Value: file path +# Default: /var/log/stargazer.log +LogFile = /var/log/stargazer.log + +# PID file name +# Parameter: optional +# Value: file path +# Default: /var/run/stargazer.pid +PIDFile = /var/run/stargazer.pid + +# Traffic classification rules +# Parameter: required +# Value: file path +# Default: /etc/stargazer/rules +Rules = /etc/stargazer/rules + +# The time interval between writing detailed user's statistics into the database +# Note: With a large number of users this value should be increased, +# since writting into the database can take a long time. +# Parameter: required +# Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 m), 1/6 (every 10 m) +# Default: 1/2 +DetailStatWritePeriod = 1/2 + +# The time interval between writing summary user's statistics into the database +# Parameter: optional +# Value: 1 ... 1440 (minutes) +# Default: 10 +StatWritePeriod = 10 + +# Day of charging fee +# Note: 0 - The last day of the month +# Parameter: required +# Value: 0 ... 31 +# Default: 1 +DayFee = 1 + +# Fee charged at the last (yes) or first (no) day of tariffication period. +# Defines how the fee will be charged in the transition to the new tariff. +# User has tariff A with fee 100. Changing it to tariff B with fee 200 +# will result in charging user's account at 100 if DayFeeIsLastDay = yes +# and at 200, if DayFeeIsLastDay = no +# Parameter: required +# Values: yes, no +# Default: no +DayFeeIsLastDay = no + +# Day of changing delayed tariffs and resetting summary user's statistics. +# Defines the edge of the tariffication period. +# Parameter: required +# Value: 0 ... 31. 0 - The last day of the month +# Default: 1 +DayResetTraff = 1 + +# Defines whether to charge fee daily (yes) or monthly (no) +# Parameter: required +# Values: yes, no +# Default: no +SpreadFee = no + +# Defines whether the user can access the internet if it has no cash, +# but remained prepaid traffic +# Parameter: required +# Values: yes, no +# Default: no +FreeMbAllowInet = no + +# Defines what will be written in the traffic cost in detail_stat. +# If user still has the prepaid traffic and WriteFreeMbTraffCost = no, +# then the traffic cost willn't be written in detail_stat. +# If user doestn't have prepaid traffic and WriteFreeMbTraffCost = no, +# then the traffic cost will be written in detail_stat. +# When WriteFreeMbTraffCost = yes the traffic cost will be recorded in any case. +# Parameter: required +# Values: yes, no +# Default: yes +WriteFreeMbTraffCost = yes + +# Charge a full monthly fee even if user was "frozen" a part +# of the tariffication period +# Parameter: optional +# Values: yes, no +# Default: no +FullFee = yes + +# Allow user to see and use a full cash (yes) or hide a part of it (no) +# for the next fee charge +# Parameter: optional +# Values: yes, no +# Default: yes +# ShowFeeInCash=yes + +# The names of directions. Direction without names will not appear in +# authorizer and configurator. +# Note: Names consisting of several words should be quoted +# Parameter: optional +# Values: + + DirName0 = Internet + DirName1 = + DirName2 = + DirName3 = + DirName4 = + DirName5 = + DirName6 = + DirName7 = + DirName8 = + DirName9 = + + +# Amount of stg-exec processes. +# These processes are responsible for the execution of scripts OnConnect, +# OnDisconnect, etc. +# Amount of processes means how many scripts can be executed simultaneously. +# Recommend to leave 1 to avoid errors when executing scripts +# Parameter: optional +# Value: 1 ... 1024 +# Default: 1 +ExecutersNum = 1 + +# Message queue identifier for the script executer. +# It may be changed if there're a needs to run multiple copies of stargazer. +# Warning: If you do not understand it, do not touch this setting! +# Parameter: optional +# Value: 0 ... 2 ^ 32 +# Default: 5555 +# ExecMsgKey = 5555 + +# The path to directory with server modules +# Parameter: required +# Value: directory path +# Default: /usr/lib/stg +ModulesPath = /usr/lib/stg + +# Directory where the "monitor" files are located. +# A blank files will be created in this directory. The modification time of such +# files will be changed about once a minute. If server crashes or some of server +# component hang, the files will stop refreshing, and on this basis we can define +# the failure of the server and if necessary restart. +# If option is omitted or blank, the monitoring is not performed. +# Parameter: optional +# Value: file path +# Default: /var/stargazer/monitor +#MonitorDir=/var/stargazer/monitor + +################################################################################ +# Store module +# Configure the module that works with the database server + +# Warning: Only one store module could be used at the same time! + + + + + +################################################################################ +# Other modules + + + + + + + +################################################################################ diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ao.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ao.conf index 903f4477..08926e95 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ao.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ao.conf @@ -1,3 +1,3 @@ -# îÁÓÔÒÏÊËÉ ÐÌÁÇÉÎÁ Á×ÔÏÒÉÚÁÃÉÉ Always Online "mod_auth_ao.so" +# Enable the authorization module Always Online "mod_auth_ao.so" diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ether.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ether.conf index 93b3224b..29f1e2f4 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ether.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ether.conf @@ -1,5 +1,4 @@ -# íÏÄÕÌØ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ "mod_cap_ether.so" -# äÌÑ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ ÉÓÐÏÌØÚÕÀÔÓÑ Packet-ÓÏËÅÔÙ - - # íÏÄÕÌØ ÂÅÚ ÐÁÒÁÍÅÔÒÏ× +# Enable the traffic capture module "mod_cap_ether.so" using Packet-sockets + + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ipq.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ipq.conf index 89a24518..b78076ec 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ipq.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_ipq.conf @@ -1,5 +1,3 @@ -# íÏÄÕÌØ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ "mod_cap_ipq.so" -# äÌÑ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ ÉÓÐÏÌØÚÕÅÔÓÑ ÍÅÈÁÎÉÚÍ IP Queueing - - # íÏÄÕÌØ ÂÅÚ ÐÁÒÁÍÅÔÒÏ× +# Enable the traffic capture module "mod_cap_ipq.so" using mechanism of IP Queueing + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_nf.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_nf.conf new file mode 100644 index 00000000..97e38fb6 --- /dev/null +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_cap_nf.conf @@ -0,0 +1,17 @@ +# Enable the traffic capture module "mod_cap_ipq.so" using NetFlow protocol + + # Port for TCP connections + # Note: Parameters TCPPort and UDPPort can be equal + # Parameter: optional + # Value: 1 ... 65534 + # Default: 9997 + #TCPPort = 9997 + + # Port for UDP connections + # Note: Parameters TCPPort and UDPPort can be equal + # Parameter: optional + # Value: 1 ... 65536 + # Default: 9997 + UDPPort = 9997 + + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ia.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ia.conf index 9cd1da82..fb1c4cde 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ia.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ia.conf @@ -1,29 +1,38 @@ -# îÁÓÔÒÏÊËÉ ÐÌÁÇÉÎÁ Á×ÔÏÒÉÚÁÃÉÉ InetAccess "mod_auth_ia.so" +# Enable the authorization module InetAccess "mod_auth_ia.so" - # ðÏÒÔ ÎÁ ËÏÔÏÒÏÍ ÐÒÉÎÉÍÁÀÔÓÑ ÏÂÒÁÝÅÎÉÑ ÏÔ Á×ÔÏÒÉÚÁÔÏÒÁ - # úÎÁÞÅÎÉÑ: 1...65534 + # Port on which the server interacts with authorizator + # Parameter: required + # Value: 1 ... 65534 + # Default: 5555 Port = 5555 - # ÷ÒÅÍÑ ÍÅÖÄÕ ÐÏÓÙÌËÁÍÉ ÚÁÐÒÏÓÁ ÐÏÌØÚÏ×ÁÔÅÌÀ ÖÉ× ÌÉ ÏÎ - # É ÏÂÎÏ×ÌÅÎÉÅÍ ÄÁÎÎÙÈ ÓÔÁÔÉÓÔÉËÉ (ÓÅËÕÎÄÙ) - # úÎÁÞÅÎÉÑ: 5...600 - UserDelay = 15 + # The time interval between sending an alive query to the user + # and updating statistics + # Parameter: required + # Values: 5 ... 600 (seconds) + # Default: 60 + UserDelay = 60 - #ôÁÊÍÁÕÔ ÄÌÑ ÐÏÌØÚÏ×ÁÔÅÌÑ. åÓÌÉ × ÔÅÞÅÎÉÅ ÜÔÏÇÏ ×ÒÅÍÅÎÉ Á×ÔÏÒÉÚÁÔÏÒ - #ÎÅ ÏÔ×ÅÞÁÅÔ, ÐÏÌØÚÏ×ÁÔÅÌØ ÂÕÄÅÔ ÏÔËÌÀÞÅÎ - # úÎÁÞÅÎÉÑ: 15...1200 + # User timeout. If authorizer does not respond during this time, + # the user will be disconnected + # Parameter: required + # Values: 5 ... 600 + # Default: 60 UserTimeout = 65 - # üÔÏÔ ÐÁÒÁÍÅÔÒ ÏÐÒÅÄÅÌÑÅÔ ÞÔÏ ÂÕÄÅÔ ÐÅÒÅÄÁ×ÁÔØÓÑ ÐÒÏÇÒÁÍÍÅ InetAccess ÏÔ ÓÅÒ×ÅÒÁ - # ËÁË ÏÔÓÔÁÔÏË ÐÒÅÄÏÐÌÁÞÅÎÎÏÇÏ ÔÒÁÆÉËÁ - # úÎÁÞÅÎÉÑ: - # FreeMb = 0 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÎÕÌÅ×ÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = 1 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÐÅÒ×ÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = 2 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ×ÔÏÒÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = 3 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÔÒÅÔØÅÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ + # Define which information will be transmitted from the server to InetAccess + # as a residue of prepaid traffic + # FreeMb = 0 — amount of free megabytes in terms of cost of zero direction + # FreeMb = 1 — amount of free megabytes in terms of cost of the first direction + # FreeMb = 1 — amount of free megabytes in terms of cost of the first direction + # FreeMb = 2 — amount of free megabytes in terms of cost of the second direction # ........................ - # FreeMb = 9 - ËÏÌ-×Ï ÂÅÓÐÌÁÔÎÙÈ ÍÅÇÁÂÁÊÔ × ÐÒÅÓÞÅÔÅ ÎÁ ÃÅÎÕ ÄÅ×ÑÔÏÇÏ ÎÁÐÒÁ×ÌÅÎÉÑ - # FreeMb = cash - ËÏÌ-×Ï ÄÅÎÅÇ ÎÁ ËÏÔÏÒÙÅ ÀÚÅÒ ÍÏÖÅÔ ÂÅÓÐÌÁÔÎÏ ËÁÞÁÔØ - # FreeMb = none - ÎÉÞÅÇÏ ÎÅ ÐÅÒÅÄÁ×ÁÔØ + # FreeMb = 9 — amount of free megabytes in terms of cost of the ninth direction + # FreeMb = cash - amount of money for which the user can download for free + # FreeMb = none - no transfer + # Default: cash + # Parameter: required + # Values: different, see above + # Default: cash FreeMb = cash diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ping.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ping.conf index ef6a3b51..ec823fc5 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ping.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_ping.conf @@ -1,6 +1,9 @@ -# îÁÓÔÒÏÊËÉ ÍÏÄÕÌÑ ÐÉÎÇÕÀÝÅÇÏ ÐÏÌØÚÏ×ÁÔÅÌÅÊ "mod_ping.so" +# Enable the module that pings users "mod_ping.so" - # ÷ÒÅÍÑ, × ÓÅËÕÎÄÁÈ, ÍÅÖÄÕ ÐÉÎÇÁÍÉ ÏÄÎÏÇÏ É ÔÏÇÏ ÖÅ ÐÏÌØÚÏ×ÁÔÅÌÑ - # úÎÁÞÅÎÉÑ: 10...3600 + # The time interval between pings + # Parameter: required + # Value: 10 ... 3600 (seconds) + # Default: 15 PingDelay = 15 + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_radius.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_radius.conf index cfce24a8..00aeaa56 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_radius.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_radius.conf @@ -1,7 +1,34 @@ +# Enable the interaction module for FreeRADIUS "mod_radius.so" + # FreeRADIUS password + # Parameter: required + # Values: any, supported by software + # Default: 123456 Password = 123456 + + # FreeRADIUS server + # Parameter: required + # Values: IP address or DNS name + # Default: 127.0.0.1 ServerIP = 127.0.0.1 + + # FreeRADIUS port + # Parameter: required + # Value: 1 ... 65535 + # Default: 6666 Port = 6666 + + # List of services for which will be carried out FreeRADIUS authentication + # Note: Parameter can be blank + # Parameter: required + # Value: any, supported by software + # Default: Login-User AuthServices = Login-User + + # List of services for which will be carried out FreeRADIUS Accounting + # Note: Parameter can be blank + # Parameter: required + # Value: any, supported by software + # Default: Framed-User AcctServices = Framed-User diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf index 9a65042d..6fff4924 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_remote_script.conf @@ -1,31 +1,43 @@ -# îÁÓÔÒÏÊËÉ ÍÏÄÕÌÑ ÄÌÑ ÕÄÁÌÅÎÎÏÇÏ ×ÙÐÏÌÎÅÎÉÑ ÓËÒÉÐÔÏ× OnConnect É -# OnDisconnect "mod_remote_script.so" +# Enable the module for remote execution of scripts OnConnect and OnDisconnect "mod_remote_script.so" - # ÷ÒÅÍÑ, × ÓÅËÕÎÄÁÈ, ÍÅÖÄÕ ÐÏÓÙÌËÁÍÉ ÐÏÄÔ×ÅÒÖÄÅÎÉÊ, ÔÏÇÏ, ÞÔÏ ÐÏÌØÚÏ×ÁÔÅÌØ - # ×Ó£ ÅÝÅ ÏÎÌÁÊÎ - # úÎÁÞÅÎÉÑ: 10...600 + # The time interval between sending confirmations that the user is online + # Parametr: required + # Values: 10 ... 600 (seconds) + # Default: 60 SendPeriod = 15 - # óÏÏÔ×ÅÔÓÔ×ÉÅ ÐÏÄÓÅÔÅÊ, × ËÏÔÏÒÏÊ ÎÁÈÏÄÉÔÓÑ ÐÏÌØÚÏ×ÁÔÅÌØ É - # ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÇÏ ÒÏÕÔÅÒÁ. æÏÒÍÁÔ ÆÁÊÌÁ: <ÐÏÄÓÅÔØ> <ÒÏÕÔÅÒ1> <ÒÏÕÔÅÒ2>... - # ðÒÉÍÅÒ ÓÏÄÅÒÖÉÍÏÇÏ ÆÁÊÌÁ: - #192.168.1.0/24 192.168.1.7 192.168.1.8 - #192.168.2.0/24 192.168.2.5 192.168.2.6 192.168.2.7 - #192.168.3.0/24 192.168.3.5 - #192.168.4.0/24 192.168.4.5 + # Define mapping between subnet(s) and remote server(s) + # File format: ... + # Example: + # 192.168.1.0/24 192.168.1.7 192.168.1.8 + # 192.168.2.0/24 192.168.2.5 192.168.2.6 192.168.2.7 + # 192.168.3.0/24 192.168.3.5 + # 192.168.4.0/24 192.168.4.5 + # Parametr: required + # Values: filename + # Default: subnets SubnetFile = subnets - # ðÁÒÏÌØ ÄÌÑ ÛÉÆÒÏ×ÁÎÉÑ ÐÁËÅÔÏ× ÍÅÖÄÕ stg-ÓÅÒ×ÅÒÏÍ É ÓÅÒ×ÅÒÏÍ, - # ×ÙÐÏÌÎÑÀÝÉÍ ÓËÒÉÐÔÙ + # The password to encrypt packets between the stg-server and remote server + # Parameter: required + # Values: any + # Default: 123456 Password = 123456 - # üÔÏÔ ÐÁÒÁÍÅÔÒ ÏÐÒÅÄÅÌÑÅÔ ËÁËÉÅ ÐÁÒÁÍÅÔÒÙ ÐÏÌØÚÏ×ÁÔÅÌÑ ÐÅÒÅÄÁÀÔÓÑ - # ÎÁ ÕÄÁÌÅÎÎÙÊ ÓÅÒ×ÅÒ - # Cash, FreeMb, Passive, Disabled, AlwaysOnline, TariffName, NextTariff, Address, - # Note, Group, Email, RealName, Credit, EnabledDirs, Userdata0...Userdata9 - UserParams=Cash Tariff EnabledDirs + # Define which user parameters are transferred to a remote server in addition to + # other parameters that transfered by default (ID, IP, Login, Cash, Dirs). + # Note: Parameter can be blank. + # Parameter: required + # Values: Cash, FreeMb, Passive, Disabled, AlwaysOnline, TariffName, + # NextTariff, Address, Note, Group, Email, RealName, Credit, EnabledDirs, + # Userdata0...Userdata9 + # Default: Cash Tariff EnabledDirs + UserParams = Cash Tariff EnabledDirs - # ðÏÒÔ ÐÏ ËÏÔÏÒÏÍÕ ÓÅÒ×ÅÒ ÏÔÓÙÌÁÅÔ ÓÏÏÂÝÅÎÉÑ ÎÁ ÒÏÕÔÅÒ - # úÎÁÞÅÎÉÑ: 1...65535 + # Port on which the server interacts with remote server + # Parameter: required + # Value: 1...65535 + # Default: 9999 Port = 9999 + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_rpc.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_rpc.conf index fb0d53a6..eacf7391 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_rpc.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_rpc.conf @@ -1,4 +1,14 @@ +# Enable the configuration module ConfRPC "mod_conf_rpc.so" + # Port on which the server interacts with configurator + # Parameter: required + # Value: 1...65535 + # Default: Port = 8080 + + # Session timeout + # Parameter: required + # Value: any numeric + # Default: 1800 CookieTimeout = 1800 diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_sg.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_sg.conf index bca3d746..1931a121 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_sg.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/mod_sg.conf @@ -1,6 +1,9 @@ -# îÁÓÔÒÏÊËÉ ÍÏÄÕÌÑ ËÏÎÆÉÇÕÒÁÃÉÉ SgConfig "mod_conf_sg.so" +# Enable the configuration module SgConfig "mod_conf_sg.so" - # ðÏÒÔ ÐÏ ËÏÔÏÒÏÍÕ ÓÅÒ×ÅÒ ×ÚÁÉÍÏÄÅÊÓÔ×ÕÅÔ Ó ËÏÎÆÉÇÕÒÁÔÏÒÏÍ - # úÎÁÞÅÎÉÑ: 1...65535 + # Port on which the server interacts with configurator + # Parameter: required + # Value: 1...65535 + # Default: 5555 Port = 5555 + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf new file mode 100644 index 00000000..e9c5bc5d --- /dev/null +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_files.conf @@ -0,0 +1,31 @@ +# Option - the name of the module without 'mod_' at the beginning and '.so' +# in the end ie full name of the module mod_store_files.so + + + # Working server directory, provides data on tariffs, users, administrators. + # Parameter: required + # Value: directory path + WorkDir = /var/stargazer + + # Owner, group and permissions of the files of user statistics (stat) + # Parameter: required + # Values: any, supported by OS + ConfOwner = root + ConfGroup = stargazer + ConfMode = 600 + + # Owner, group and permissions on user configuration files (conf) + # Parameter: required + # Values: any, supported by OS + StatOwner = root + StatGroup = stargazer + StatMode = 640 + + # Owner, group and permissions for user log files (log) + # Parameter: required + # Values: any, supported by OS + UserLogOwner = root + UserLogGroup = stargazer + UserLogMode = 640 + + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf new file mode 100644 index 00000000..837889e3 --- /dev/null +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_firebird.conf @@ -0,0 +1,37 @@ + + # Database server address + # Parameter: required + # Value: IP address or DNS name + # Default: localhost + server = localhost + + # Path to the database on the server or its alias + # Parameter: required + # Value: file path + # Default: /var/stg/stargazer.fdb + database = /var/stg/stargazer.fdb + + # Database username + # Parameter: required + # Value: any, supported by database + # Default: stg + user = stg + + # Database password + # Parameter: required + # Value: any, supported by database + # Default: 123456 + password = 123456 + + # The transaction isolation level + # Parameter: optional + # Values: concurrency, dirtyread, readcommitted, consistency + # Defalt: concurrency + isolationLevel = concurrency + + # Responding to lock (optional, defaults to wait): + # Parameter: optional + # Values: wait, nowait + # Defalt: wait + lockResolution = wait + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_mysql.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_mysql.conf new file mode 100644 index 00000000..af540661 --- /dev/null +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_mysql.conf @@ -0,0 +1,25 @@ + + # Database server address + # Parameter: required + # Value: IP address or DNS name + # Default: localhost + dbhost = localhost + + # Database name + # Parameter: required + # Value: any, supported by database + # Default: stg + dbname = stg + + # Database username + # Parameter: required + # Value: any, supported by database + # Default: stg + dbuser = stg + + # Database password + # Parameter: required + # Value: any, supported by database + # Default: 123456 + rootdbpass = 123456 + diff --git a/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_postgresql.conf b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_postgresql.conf new file mode 100644 index 00000000..1b0aaf4c --- /dev/null +++ b/projects/stargazer/inst/linux/etc/stargazer/conf-available.d/store_postgresql.conf @@ -0,0 +1,25 @@ + + # Database server address + # Parameter: required + # Value: IP address or DNS name + # Default: localhost + server = localhost + + # Database name + # Parameter: required + # Value: any, supported by database + # Default: stargazer + database = stargazer + + # Database username + # Parameter: mandatory + # Value: any, supported by database + # Default: stg + user = stg + + # Database password + # Parameter: required + # Value: any, supported by database + # Default: 123456 + password = 123456 + diff --git a/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf b/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf index 36f147fd..5c0693c4 100644 --- a/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf +++ b/projects/stargazer/inst/linux/etc/stargazer/stargazer.conf @@ -1,258 +1,171 @@ -################################################################################ -# æÁÊÌ ÎÁÓÔÒÏÅË ÓÅÒ×ÅÒÁ stargazer # -################################################################################ - - - -# éÍÑ ÌÏÇ-ÆÁÊÌÁ ËÕÄÁ ÐÉÛÕÔÓÑ ÓÏÂÙÔÉÑ -LogFile = /var/log/stargazer.log - - - -# éÍÑ PID-ÆÁÊÌÁ ËÕÄÁ ÐÉÛÅÔÓÑ ÉÄÅÎÔÉÆÉËÁÔÏÒ ÐÒÏÃÅÓÓÁ -# ðÏ ÕÍÏÌÞÁÎÉÀ /var/run/pid -PIDFile = /var/run/stargazer.pid - - - -# éÍÑ ÆÁÊÌÁ × ËÏÔÏÒÏÍ ÏÐÒÅÄÅÌÑÀÔÓÑ ÐÒÁ×ÉÌÁ ÐÏÄÓÞÅÔÁ ÔÒÁÆÉËÁ -Rules = /etc/stargazer/rules - - - -# ÷ÒÅÍÑ ÞÅÒÅÚ ËÏÔÏÒÏÅ ÐÉÛÅÔÓÑ d âä ÄÅÔÁÌØÎÁÑ ÓÔÁÔÉÓÔÉËÁ ÐÏÌØÚÏ×ÁÔÅÌÑ -# úÎÁÞÅÎÉÑ: 1, 1/2, 1/4, 1/6. -# 1 - ÒÁÚ × ÞÁc, 1/2 - ÒÁÚ × ÐÏÌ ÞÁÓÁ, 1/4 - ÒÁÚ × 15 ÍÉÎ, 1/6 - ÒÁÚ × 10 ÍÉÎ -DetailStatWritePeriod=1/6 - - - -# ðÅÒÉÏÄÉÞÎÏÓÔØ ÚÁÐÉÓÉ ÚÁÐÉÓÉ × âä ÉÎÆÏÒÍÁÃÉÉ Ï ÓÔÁÔÉÓÔÉËÅ ÐÏÌØÚÏ×ÁÔÅÌÑ (ÍÉÎÕÔÙ) -# ðÒÉ ÂÏÌØÛÏÍ ËÏÌ-×Å ÐÏÌØÚÏ×ÁÔÅÌÅÊ ÜÔÕ ×ÅÌÉÞÉÎÕ ÓÔÏÉÔ Õ×ÅÌÉÞÉÔØ, Ô.Ë. -# ÚÁÐÉÓØ × âä ÍÏÖÅÔ ÚÁÎÉÍÁÔØ ÄÌÉÔÅÌØÎÏÅ ×ÒÅÍÑ. -# úÎÁÞÅÎÉÑ: 1...1440 (ÍÉÎÕÔÙ) -StatWritePeriod = 10 - - - -# äÅÎØ ÓÎÑÔÉÑ ÁÂÏÎÐÌÁÔÙ -# úÎÁÞÅÎÉÑ: 0...31. 0 - ðÏÓÌÅÄÎÉÊ ÄÅÎØ ÍÅÓÑÃÁ -DayFee = 1 - - - -# áÂÏÎÐÌÁÔÁ ÓÎÉÍÁÅÔÓÑ × ÐÏÓÌÅÄÎÉÊ (yes) ÉÌÉ ÐÅÒ×ÙÊ (no) ÄÅÎØ ÕÞÅÔÎÏÇÏ ÐÅÒÉÏÄÁ. -# üÔÏ ×ÌÉÑÅÔ ÎÁ ÔÏ, ËÁË ÂÕÄÅÔ ÓÎÑÔÁ ÁÂÏÎÐÌÁÔÁ (áð) ÐÒÉ ÐÅÒÅÈÏÄÅ ÎÁ ÎÏ×ÙÊ ÔÁÒÉÆ. -# åÓÌÉ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÂÙÌ ÔÁÒÉÆ A Ó áð=100 É ÏÎ ÈÏÞÅÔ ÐÅÒÅÊÔÉ ÎÁ ÔÁÒÉÆ B Ó áð=200, -# ÔÏ ÐÒÉ ÐÅÒÅÈÏÄÅ ÎÁ ÎÏ×ÙÊ ÔÁÒÉÆ ÓÏ ÓÞÅÔÁ ÐÏÌØÚÏ×ÁÔÅÌÑ ÓÎÉÍÅÔÓÑ 100, ÅÓÌÉ -# DayFeeIsLastDay = yes É 200, ÅÓÌÉ DayFeeIsLastDay = no -DayFeeIsLastDay = yes - - - -# äÅÎØ ÓÂÒÏÓÁ ÄÁÎÎÙÈ Ï ÔÒÁÆÉËÅ ÚÁ ÍÅÓÑÃ É ÄÅÎØ ÐÅÒÅÈÏÄÁ ÐÏÌØÚÏ×ÁÔÅÌÅÊ ÎÁ ÎÏ×ÙÅ ÔÁÒÉÆÙ -# úÎÁÞÅÎÉÑ: 0...31. 0 - ðÏÓÌÅÄÎÉÊ ÄÅÎØ ÍÅÓÑÃÁ -DayResetTraff = 1 - - - -# "òÁÚÍÁÚÁÎÎÏÅ" ÓÎÑÔÉÅ ÁÂÏÎÐÌÁÔÙ. óÎÑÔÉÅ áð ÎÅ ÒÁÚ × ÍÅÓÑÃ, Á ËÁÖÄÙÊ -# ÄÅÎØ 1/30 ÉÌÉ 1/31 ÞÁÓÔÉ áð -# úÎÁÞÅÎÉÑ: yes, no -SpreadFee = no - - - -# äÁÎÎÁÑ ÏÐÃÉÑ ÏÐÒÅÄÅÌÑÅÔ ÍÏÖÅÔ ÌÉ ÐÏÌØÚÏ×ÁÔÅÌØ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ × ÉÎÔÅÒÅÎÔ -# ÅÓÌÉ Õ ÎÅÇÏ ÎÁ ÓÞÅÔÕ ÎÅÔ ÄÅÎÅÇ, ÎÏ ÏÓÔÁÌÓÑ ÐÒÅÄÏÐÌÁÞÅÎÎÙÊ ÔÒÁÆÉË -# úÎÁÞÅÎÉÑ: yes, no -FreeMbAllowInet = no - - - -# üÔÁ ÏÐÃÉÑ ÏÐÒÅÄÅÌÑÅÔ ÞÔÏ ÂÕÄÅÔ ÐÉÓÁÔØÓÑ × ÓÔÏÉÍÏÓÔØ ÔÒÁÆÉËÁ × detail_stat. -# åÓÌÉ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÅÝÅ ÅÓÔØ ÐÒÅÄÏÐÌÁÞÅÎÎÙÊ ÔÒÁÆÉË É WriteFreeMbTraffCost = no, -# ÔÏ × detail_stat ÓÔÏÉÍÏÓÔØ ÂÕÄÅÔ 0. åÓÌÉ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÕÖÅ ÎÅÔ -# ÐÒÅÄÏÐÌÁÞÅÎÎÏÇÏ ÔÒÁÆÉËÁ É WriteFreeMbTraffCost = no, ÔÏ × detail_stat -# ÂÕÄÅÔ ÚÁÐÉÓÁÎÁ ÓÔÏÉÏÓÔØ ÔÒÁÆÉËÁ. ðÒÉ WriteFreeMbTraffCost = yes ÓÔÏÉÍÏÓÔØ -# ÔÒÁÆÉËÁ ÂÕÄÅÔ ÚÁÐÉÓÁÎÁ × ÌÀÂÏÍ ÓÌÕÞÁÅ. -WriteFreeMbTraffCost = no - - - -# îÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ. õËÁÚÙ×ÁÅÔ ÓÎÉÍÁÔØ ÐÏÌÎÕÀ ÁÂÏÎÐÌÁÔÕ Õ ÐÏÌØÚÏ×ÁÔÅÌÑ ÄÁÖÅ -# ÅÓÌÉ ÏÎ ÂÙÚ ÚÁÍÏÒÏÖÅÎ ÔÏÌØËÏ ÞÁÓÔØ ÕÞÅÔÎÏÇÏ ÐÅÒÉÏÄÁ. -# ðÏ ÕÍÏÌÞÁÎÉÀ ÕÓÔÁÎÏ×ÌÅÎ × no -# FullFee=no - -# îÅÏÂÑÚÁÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ ÕËÁÚÙ×ÁÀÝÉÊ ÐÏËÁÚÙ×ÁÔØ ÎÁ ÓÞÅÔÕ É ÐÏÚ×ÏÌÑÔØ -# ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÌØÚÏ×ÁÔÅÌÀ ÁÂÏÎÐÌÁÔÕ. ðÏ ÕÍÏÌÞÁÎÉÀ ÕÓÔÁÎÏ×ÌÅÎ × yes -# ShowFeeInCash=yes - - - -# îÁÚ×ÁÎÉÑ ÎÁÐÒÁ×ÌÅÎÉÊ. îÁÐÒÁ×ÌÅÎÉÑ ÂÅÚ ÎÁÚ×ÁÎÉÊ ÎÅ ÂÕÄÕÔ ÏÔÏÂÒÁÖÁÔØÓÑ × -# Á×ÔÏÒÉÚÁÔÏÒÅ É ËÏÎÆÉÇÕÒÁÔÏÒÅ. îÁÚ×ÁÎÉÑ ÓÏÓÔÏÑÝÉÅ ÉÚ ÎÅÓËÏÌØËÉÈ ÓÌÏ× ÄÏÌÖÎÙ -# ÂÙÔØ ×ÚÑÔÙ × ËÁ×ÙÞËÉ - - DirName0 = ìÏËÁÌØ - DirName1 = çÏÒÏÄ - DirName2 = íÉÒ - DirName3 = - DirName4 = - DirName5 = "ìÏËÁÌØÎÙÅ ÉÇÒÙ" - DirName6 = - DirName7 = - DirName8 = - DirName9 = - - - - -# ëÏÌ-×Ï ÚÁÐÕÓËÁÅÍÙÈ ÐÒÏÃÅÓÓÏ× stg-exec. -# üÔÉ ÐÒÏÃÅÓÓÙ ÏÔ×ÅÞÁÀÔ ÚÁ ×ÙÐÏÌÎÅÎÉÅ ÓËÒÉÐÔÏ× OnConnect, OnDisconnect, ... -# ëÏÌ-×Ï ÐÒÏÃÅÓÓÏ× ÏÚÎÁÞÁÅÔ ÓËÏÌØËÏ ÓËÒÉÐÔÏ× ÍÏÇÕÔ ×ÙÐÏÌÎÑÔÓÑ ÏÄÎÏ×ÒÅÍÅÎÎÏ. -# úÎÁÞÅÎÉÑ: 1...1024 -ExecutersNum = 1 - - - -# Message Key ÄÌÑ stg-exec. -# éÄÅÎÔÉÆÉËÁÔÏÒ ÏÞÅÒÅÄÉ ÓÏÏÂÝÅÎÉÊ ÄÌÑ ×ÙÐÏÌÎÑÔÅÌÑ ÓËÒÉÐÔÏ×. -# åÇÏ ÉÚÍÅÎÅÎÉÅ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔÓÑ ÅÓÌÉ ÅÓÔØ ÎÅÏÂÈÏÄÉÍÏÓÔØ ÚÁÐÕÓÔÉÔØ ÎÅÓËÏÌØËÏ -# ÜËÚÅÍÐÌÑÒÏ× stg. åÓÌÉ ×Ù ÎÅ ÐÏÎÉÍÁÅÔÅ, ÞÔÏ ÜÔÏ, ÎÅ ÔÒÏÇÁÊÔÅ ÜÔÏÔ ÐÁÒÁÍÅÔÒ! -# úÎÁÞÅÎÉÑ: 0...2^32 -# úÎÁÞÅÎÉÅ ÐÏ ÕÍÏÌÞÁÎÉÀ: 5555 -# ExecMsgKey = 5555 - - - -# ðÕÔØ Ë ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÎÁÈÏÄÑÔÓÑ ÍÏÄÕÌÉ ÓÅÒ×ÅÒÁ -ModulesPath = /usr/lib/stg - -# ïÐÒÅÄÅÌÑÅÔ ÄÉÒÅËÔÏÒÉÀ, × ËÏÔÏÒÏÊ ÂÕÄÕÔ ÎÁÈÏÄÉÔÓÑ ÆÁÊÌÙ "ÍÏÎÉÔÏÒÁ" -# ÒÁÂÏÔÙ ÓÅÒ×ÅÒÁ. ÷ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ ÂÕÄÕÔ ÓÏÚÄÁÎÙ ÐÕÓÔÙÅ ÆÁÊÌÙ, ×ÒÅÍÑ -# ÍÏÄÉÆÉËÁÃÉÉ ËÏÔÏÒÙÈ ÂÕÄÅÔ ÍÅÎÑÔØÓÑ ÐÒÉÍÅÒÎÏ ÒÁÚ × ÍÉÎÕÔÕ. åÓÌÉ ËÁËÏÊ-ÔÏ -# ËÏÍÐÏÎÅÎÔ ÓÅÒ×ÅÒÁ ÚÁ×ÉÓÎÅÔ, ÆÁÊÌ(Ù) ÐÅÒÅÓÔÁÎÅÔ ÏÂÎÏ×ÌÑÔÓÑ, É ÐÏ ÜÔÏÍÕ -# ÐÒÉÚÎÁËÕ ÍÏÖÎÏ ÏÐÒÅÄÅÌÉÔØ ÓÂÏÊ × ÒÁÂÏÔÅ ÓÅÒ×ÅÒÁ É ÐÒÉ ÎÁÄÏÂÎÏÓÔÉ -# ÐÅÒÅÚÁÐÕÓÔÉÔØ. åÓÌÉ ÐÁÒÁÍÅÔÒ ÎÅ ÕËÁÚÁÎ ÉÌÉ ÐÕÓÔÏÊ, ÍÏÎÉÔÏÒÉÎÇ ÐÒÏÉÚ×ÏÄÉÔÓÑ -# ÎÅ ÂÕÄÅÔ. ðÁÒÁÍÅÔÒ ÎÅ Ñ×ÌÑÅÔÓÑ ÏÂÑÚÁÔÅÌØÎÙÍ, ÐÏ ÕÍÏÌÞÁÎÉÀ ÐÕÓÔÏÊ. -#MonitorDir=/var/stargazer/monitor - -################################################################################ -# Store module -# îÁÓÔÒÏÊËÉ ÐÌÁÇÉÎÁ ÒÁÂÏÔÁÀÝÅÇÏ Ó âä ÓÅÒ×ÅÒÁ - -# ðÁÒÁÍÅÔÒ - ÜÔÏ ÉÍÑ ÍÏÄÕÌÑ ÂÅÚ mod_ × ÎÁÞÁÌÅ É .so × ËÏÎÃÅ -# ô.Å. ÐÏÌÎÏÅ ÉÍÑ ÍÏÄÕÌÑ mod_store_files.so - - - # òÁÂÏÞÁÑ ÄÉÒÅËÔÏÒÉÑ ÓÅÒ×ÅÒÁ, ÔÕÔ ÓÏÄÅÒÖÁÔÓÑ ÄÁÎÎÙÅ Ï ÔÁÒÉÆÁÈ, ÐÏÌØÚÏ×ÁÔÅÌÑÈ, - # ÁÄÍÉÎÉÓÔÒÁÔÏÒÁÈ É Ô.Ä. - WorkDir = /var/stargazer - - - # ÷ÌÁÄÅÌÅÃ, ÇÒÕÐÐÁ É ÐÒÁ×Á ÄÏÓÔÕÐÁ ÎÁ ÆÁÊÌÙ ÓÔÁÔÉÓÔÉËÉ (stat) ÐÏÌØÚÏ×ÁÔÅÌÑ - ConfOwner = root - ConfGroup = wheel - ConfMode = 600 - - - # ÷ÌÁÄÅÌÅÃ, ÇÒÕÐÐÁ É ÐÒÁ×Á ÄÏÓÔÕÐÁ ÎÁ ÆÁÊÌÙ ËÏÎÆÉÇÕÒÁÃÉÉ (conf) ÐÏÌØÚÏ×ÁÔÅÌÑ - StatOwner = root - StatGroup = wheel - StatMode = 640 - - # ÷ÌÁÄÅÌÅÃ, ÇÒÕÐÐÁ É ÐÒÁ×Á ÄÏÓÔÕÐÁ ÎÁ ÌÏÇ-ÆÁÊÌÙ (log) ÐÏÌØÚÏ×ÁÔÅÌÑ - UserLogOwner = root - UserLogGroup = wheel - UserLogMode = 640 - - # õÄÁÌÑÔØ ÒÅÚÅÒ×ÎÙÅ ËÏÐÉÉ ÐÏÓÌÅ ÕÓÐÅÛÎÏÊ ÚÁÐÉÓÉ conf/stat - # úÎÁÞÅÎÉÑ: yes, no - # ðÏ ÕÍÏÌÞÁÎÉÀ: yes - # RemoveBak = yes - - # ÷ÏÓÓÔÁÎÁ×ÌÉ×ÁÔØ ÆÁÊÌÙ conf/stat ÉÚ ÒÅÚÅÒ×ÎÙÈ ËÏÐÉÊ ÐÒÉ ÏÛÉÂËÅ ÞÔÅÎÉÑ - # úÎÁÞÅÎÉÑ: yes, no - # ðÏ ÕÍÏÌÞÁÎÉÀ: no - # ReadBak = no - - - -# -# # áÄÒÅÓ ÓÅÒ×ÅÒÁ âä -# server=localhost -# -# # ðÕÔØ Ë âä ÎÁ ÓÅÒ×ÅÒÅ ÉÌÉ ÅÅ ÁÌÉÁÓ -# database=/var/stg/stargazer.fdb -# -# # éÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# user=stg -# -# # ðÁÒÏÌØ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# password=123456 -# -# # õÒÏ×ÅÎØ ÉÚÏÌÑÃÉÉ ÔÒÁÎÚÁÃÉÊ (ÎÅ ÏÂÑÚÁÔÅÌØÎÏ, ÐÏ ÕÍÏÌÞÁÎÉÀ oncurrency): -# # concurrency -# # dirtyRead -# # readCommitted -# # consistency -# isolationLevel=concurrency -# -# # äÅÊÓÔ×ÉÑ ÐÒÉ ÂÌÏËÉÒÏ×ËÁÈ (ÎÅ ÏÂÑÚÁÔÅÌØÎÏ, ÐÏ ÕÍÏÌÞÁÎÉÀ wait): -# # wait -# # noWait -# lockResolution=wait -# - -# -# # áÄÒÅÓ ÓÅÒ×ÅÒÁ âä -# server=localhost -# -# # éÍÑ âä -# database=stargazer -# -# # éÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# user=stg -# -# # ðÁÒÏÌØ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# password=123456 -# - -# -# # éÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# dbuser = stg -# -# # ðÁÒÏÌØ ÐÏÌØÚÏ×ÁÔÅÌÑ âä -# rootdbpass = 123456 -# -# # éÍÑ âä ÎÁ ÓÅÒ×ÅÒÅ -# dbname = stg -# -# # áÄÒÅÓ ÓÅÒ×ÅÒÁ âä -# dbhost = localhost -# - -################################################################################ -# ðÒÏÞÉÅ ÍÏÄÕÌÉ - - - # íÏÄÕÌØ ÚÁÈ×ÁÔÁ ÔÒÁÆÉËÁ "mod_cap_nf.so" - # ðÒÉÎÉÍÁÅÔ ÉÎÆÏÒÍÁÃÉÀ Ï ÔÒÁÆÉËÅ ÐÏ ÐÒÏÔÏËÏÌÕ NetFlow - - # TCPPort - ÐÏÒÔ ÄÌÑ TCP-ÓÏÅÄÉÎÅÎÉÊ - #TCPPort = 42111 - - # UDPPort - ÐÏÒÔ ÄÌÑ UDP-ÓÏÅÄÉÎÅÎÉÊ - UDPPort = 42111 - - # íÏÇÕÔ ÉÍÅÔØ ÓÏ×ÐÁÄÁÀÝÉÅ ÚÎÁÞÅÎÉÑ. - # åÓÌÉ ÐÁÒÁÍÅÔÒ ÎÅ ÕËÁÚÁÎ - ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ÐÏÒÔ ÎÅ "ÐÒÏÓÌÕÛÉ×ÁÅÔÓÑ". - - - - - - -################################################################################ +################################################################################ +# Stargazer Configuration file # +################################################################################ + +# LOG file name +# Parameter: required +# Value: file path +# Default: /var/log/stargazer.log +LogFile = /var/log/stargazer.log + +# PID file name +# Parameter: optional +# Value: file path +# Default: /var/run/stargazer.pid +PIDFile = /var/run/stargazer.pid + +# Traffic classification rules +# Parameter: required +# Value: file path +# Default: /etc/stargazer/rules +Rules = /etc/stargazer/rules + +# The time interval between writing detailed user's statistics into the database +# Note: With a large number of users this value should be increased, +# since writting into the database can take a long time. +# Parameter: required +# Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 m), 1/6 (every 10 m) +# Default: 1/2 +DetailStatWritePeriod = 1/2 + +# The time interval between writing summary user's statistics into the database +# Parameter: optional +# Value: 1 ... 1440 (minutes) +# Default: 10 +StatWritePeriod = 10 + +# Day of charging fee +# Note: 0 - The last day of the month +# Parameter: required +# Value: 0 ... 31 +# Default: 1 +DayFee = 1 + +# Fee charged at the last (yes) or first (no) day of tariffication period. +# Defines how the fee will be charged in the transition to the new tariff. +# User has tariff A with fee 100. Changing it to tariff B with fee 200 +# will result in charging user's account at 100 if DayFeeIsLastDay = yes +# and at 200, if DayFeeIsLastDay = no +# Parameter: required +# Values: yes, no +# Default: no +DayFeeIsLastDay = no + +# Day of changing delayed tariffs and resetting summary user's statistics. +# Defines the edge of the tariffication period. +# Parameter: required +# Value: 0 ... 31. 0 - The last day of the month +# Default: 1 +DayResetTraff = 1 + +# Defines whether to charge fee daily (yes) or monthly (no) +# Parameter: required +# Values: yes, no +# Default: no +SpreadFee = no + +# Defines whether the user can access the internet if it has no cash, +# but remained prepaid traffic +# Parameter: required +# Values: yes, no +# Default: no +FreeMbAllowInet = no + +# Defines what will be written in the traffic cost in detail_stat. +# If user still has the prepaid traffic and WriteFreeMbTraffCost = no, +# then the traffic cost willn't be written in detail_stat. +# If user doestn't have prepaid traffic and WriteFreeMbTraffCost = no, +# then the traffic cost will be written in detail_stat. +# When WriteFreeMbTraffCost = yes the traffic cost will be recorded in any case. +# Parameter: required +# Values: yes, no +# Default: yes +WriteFreeMbTraffCost = yes + +# Charge a full monthly fee even if user was "frozen" a part +# of the tariffication period +# Parameter: optional +# Values: yes, no +# Default: no +FullFee = yes + +# Allow user to see and use a full cash (yes) or hide a part of it (no) +# for the next fee charge +# Parameter: optional +# Values: yes, no +# Default: yes +# ShowFeeInCash=yes + +# The names of directions. Direction without names will not appear in +# authorizer and configurator. +# Note: Names consisting of several words should be quoted +# Parameter: optional +# Values: + + DirName0 = Internet + DirName1 = + DirName2 = + DirName3 = + DirName4 = + DirName5 = + DirName6 = + DirName7 = + DirName8 = + DirName9 = + + +# Amount of stg-exec processes. +# These processes are responsible for the execution of scripts OnConnect, +# OnDisconnect, etc. +# Amount of processes means how many scripts can be executed simultaneously. +# Recommend to leave 1 to avoid errors when executing scripts +# Parameter: optional +# Value: 1 ... 1024 +# Default: 1 +ExecutersNum = 1 + +# Message queue identifier for the script executer. +# It may be changed if there're a needs to run multiple copies of stargazer. +# Warning: If you do not understand it, do not touch this setting! +# Parameter: optional +# Value: 0 ... 2 ^ 32 +# Default: 5555 +# ExecMsgKey = 5555 + +# The path to directory with server modules +# Parameter: required +# Value: directory path +# Default: /usr/lib/stg +ModulesPath = /usr/lib/stg + +# Directory where the "monitor" files are located. +# A blank files will be created in this directory. The modification time of such +# files will be changed about once a minute. If server crashes or some of server +# component hang, the files will stop refreshing, and on this basis we can define +# the failure of the server and if necessary restart. +# If option is omitted or blank, the monitoring is not performed. +# Parameter: optional +# Value: file path +# Default: /var/stargazer/monitor +#MonitorDir=/var/stargazer/monitor + +################################################################################ +# Store module +# Configure the module that works with the database server + +# Warning: Only one store module could be used at the same time! + + + + + +################################################################################ +# Other modules + + + + + + + +################################################################################ -- 2.43.2