Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################################
- # Stargazer Configuration file #
- ################################################################################
- # LOG file name
- # Parameter: mandatory
- # Value: file path
- # Default: /var/log/stargazer.log
- LogFile = /var/log/stargazer.log
- # PID file name
- # Parameter: mandatory
- # Value: files path
- # Default: /var/run/stargazer.pid
- PIDFile = /var/run/stargazer.pid
- # Traffic classification rules
- # Parameter: mandatory
- # 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: mandatory
- # Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 minutes), 1/6 (every 10 minutes)
- # Default: 1/2
- DetailStatWritePeriod = 1/2
- # The time interval between writing summary user's statistics into the database
- # Parameter: mandatory
- # Values: 1 ... 1440 (minutes)
- # Default: 10
- StatWritePeriod = 10
- # Day of charging fee
- # Note: 0 - The last day of the month
- # Parameter: mandatory
- # Values: 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 users'account at 100 if DayFeeIsLastDay = yes
- # and at 200, if DayFeeIsLastDay = no
- # Parameter: mandatory
- # Values: yes, no
- # Default: no
- DayFeeIsLastDay = no
- # Defines the edge of the tariffication period.
- # It's a day of changing delayed tariffs and resetting summary user's statistics.
- # Parameter: mandatory
- # Values: 0 ... 31. 0 - The last day of the month
- # Default: 1
- DayResetTraff = 1
- # Defines whether to charge fee daily (yes) or monthly (no)
- # Parameter: mandatory
- # 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: mandatory
- # Values: yes, no
- # Default: no
- FreeMbAllowInet = no
- # Defines what will be written in the traffic cost in detail_stat.
- # User still has the prepaid traffic and WriteFreeMbTraffCost = no,
- # then the traffic cost willn't be written in detail_stat.
- # User doestn't have prepaid traffic and WriteFreeMbTraffCost = no,
- # then the traffic cost will be written in detail_stat.
- # When WriteFreeMbTraffCost = yes value of the traffic cost will be recorded in any case.
- # Parameter: mandatory
- # 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: mandatory
- # Values:
- <DirNames>
- DirName0 = Internet
- DirName1 =
- DirName2 =
- DirName3 =
- DirName4 =
- DirName5 =
- DirName6 =
- DirName7 =
- DirName8 =
- DirName9 =
- </DirNames>
- # 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
- # Values: 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!
- # Values: 0 ... 2 ^ 32
- # Default: 5555
- # ExecMsgKey = 5555
- # The path to directory with server modules
- ModulesPath = /usr/lib/stg
- # Directory where the "monitor" files are located.
- # A blank file will be created in this directory. The modification time of this file
- # will be changed about once a minute. If server crashes or some of server component hang,
- # the file 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
- # 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
- <StoreModule store_files>
- # Working server directory, provides data on tariffs, users, administrators, etc.
- WorkDir = /var/stargazer
- # Owner, group and permissions of the files of user statistics (stat)
- ConfOwner = root
- ConfGroup = stargazer
- ConfMode = 600
- # Owner, group and permissions on user configuration files (conf)
- StatOwner = root
- StatGroup = stargazer
- StatMode = 640
- # Owner, group and permissions for user log files (log)
- UserLogOwner = root
- UserLogGroup = stargazer
- UserLogMode = 640
- </StoreModule>
- #<StoreModule store_firebird>
- # # Database server address
- # # Parameter: mandatory
- # # Values: ?
- # # Default: localhost
- # server=localhost
- #
- # # Path to the database on the server or its alias
- # # Parameter: mandatory
- # # Values: file path
- # # Default: /var/stg/stargazer.fdb
- # database=/var/stg/stargazer.fdb
- #
- # # Database username
- # # Parameter: mandatory
- # # Values: ?
- # # Default: stg
- # user = stg
- #
- # # Database password
- # # Parameter: mandatory
- # # Values: ?
- # # 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
- #</StoreModule>
- #<StoreModule store_postgresql>
- # # Database server address
- # # Parameter: mandatory
- # # Values: ?
- # # Default: localhost
- # server=localhost
- #
- # # Database name
- # # Parameter: mandatory
- # # Values: ?
- # # Default: stargazer
- # database=stargazer
- #
- # # Database username
- # # Parameter: mandatory
- # # Values: ?
- # # Default: stg
- # user=stg
- #
- # # Database password
- # # Parameter: mandatory
- # # Values: ?
- # # Default: 123456
- # password=123456
- #</StoreModule>
- #<StoreModule store_mysql>
- # # Database server address
- # # Parameter: mandatory
- # # Values: ?
- # # Default: localhost
- # dbhost = localhost
- #
- # # Database name
- # # Parameter: mandatory
- # # Values: ?
- # # Default: stg
- # dbname = stg
- #
- # # Database username
- # # Parameter: mandatory
- # # Values: ?
- # # Default: stg
- # dbuser = stg
- #
- # # Database password
- # # Parameter: mandatory
- # # Values: ?
- # # Default: 123456
- # rootdbpass = 123456
- #</StoreModule>
- ################################################################################
- ################################################################################
- # Other modules
- <Modules>
- # Authorization plugin Always Online (mod_auth_ao.so) preferences
- # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
- # Full module name — mod_auth_ao.so
- <Module auth_ao>
- </Module>
- # Authorization plugin InetAccess (mod_auth_ia.so) preferences
- # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
- # Full module name — mod_auth_ia.so
- <Module auth_ia>
- # Port on which accepts the request from the authorizer
- # Values: 1 ... 65534
- # Default: 5555
- Port = 5555
- # The time between sending a query to the user whether he is alive
- # and update statistics (seconds)
- # Values: 5 ... 600
- # Default: 60
- UserDelay = 60
- # Timeout for the user. If during this time authorizer
- # does not respond, the user will be disconnected
- # Values: 15 ... 1200
- # Default: 210
- UserTimeout = 210
- # This option specifies that the program will be transmitted from the server InetAccess
- # as a prepaid traffic residue
- # Values:
- # FreeMb = 0 — amount of free megabytes in terms of cost 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 — 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: 0
- FreeMb = 0
- </Module>
- # Configuration module SgConfig (mod_conf_sg.so) preferences
- # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
- <Module conf_sg>
- # Port on which the server interacts with configurator
- # Values: 1 ... 65535
- # Default: 5555
- Port = 5555
- </Module>
- # Traffic capture module "mod_cap_ether.so" preferences
- # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
- # <Module cap_ether>
- # </Module>
- # Traffic capture module "mod_cap_nf.so" preferences
- # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
- ################################################################################
- # Прочие модули
- <Modules>
- # Traffic capture module "mod_cap_nf.so" preferences
- # Receives information about the traffic on the protocol NetFlow
- # Notes: TCPPort and UDPPort can have the same value.
- <Module cap_nf>
- # Port for the TCP-connections
- # Values: 0 ... 65536
- # Default: 421111
- #TCPPort = 42111
- # Port for the UDP-connections
- # Values: 0 ... 65536
- # Default: 421111
- UDPPort = 42111
- </Module>
- <IncludeFile "conf-enabled.d/*.conf">
- </IncludeFile>
- </Modules>
- ################################################################################
- <Module cap_nf>
- TCPPort=9996 #Nomer slushaemogo tcp porta
- UDPPort=9996 #Nomer slushaemogo udp porta
- </Module>
- # User ping module (mod_ping.so) preferences
- # The second parameter - the name of the module without mod_ at the beginning and. so in the end
- # <Module ping>
- #
- # Time in seconds between pings of the same user
- # Values: 10 ... 3600
- # Default: 15
- # PingDelay = 15
- #
- # </Module>
- </Modules>
- ################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement