Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.93 KB | None | 0 0
  1. ################################################################################
  2. # Stargazer Configuration file #
  3. ################################################################################
  4.  
  5. # LOG file name
  6. # Parameter: mandatory
  7. # Value: file path
  8. # Default: /var/log/stargazer.log
  9. LogFile = /var/log/stargazer.log
  10.  
  11. # PID file name
  12. # Parameter: mandatory
  13. # Value: files path
  14. # Default: /var/run/stargazer.pid
  15. PIDFile = /var/run/stargazer.pid
  16.  
  17. # Traffic classification rules
  18. # Parameter: mandatory
  19. # Value: file path
  20. # Default: /etc/stargazer/rules
  21. Rules = /etc/stargazer/rules
  22.  
  23. # The time interval between writing detailed user's statistics into the database
  24. # Note: With a large number of users this value should be increased,
  25. # since writting into the database can take a long time.
  26. # Parameter: mandatory
  27. # Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 minutes), 1/6 (every 10 minutes)
  28. # Default: 1/2
  29. DetailStatWritePeriod = 1/2
  30.  
  31. # The time interval between writing summary user's statistics into the database
  32. # Parameter: mandatory
  33. # Values: 1 ... 1440 (minutes)
  34. # Default: 10
  35. StatWritePeriod = 10
  36.  
  37. # Day of charging fee
  38. # Note: 0 - The last day of the month
  39. # Parameter: mandatory
  40. # Values: 0 ... 31
  41. # Default: 1
  42. DayFee = 1
  43.  
  44. # Fee charged at the last (yes) or first (no) day of tariffication period.
  45. # Defines how the fee will be charged in the transition to the new tariff.
  46. # User has tariff A with fee 100. Changing it to tariff B with fee 200
  47. # will result in charging users'account at 100 if DayFeeIsLastDay = yes
  48. # and at 200, if DayFeeIsLastDay = no
  49. # Parameter: mandatory
  50. # Values: yes, no
  51. # Default: no
  52. DayFeeIsLastDay = no
  53.  
  54. # Defines the edge of the tariffication period.
  55. # It's a day of changing delayed tariffs and resetting summary user's statistics.
  56. # Parameter: mandatory
  57. # Values: 0 ... 31. 0 - The last day of the month
  58. # Default: 1
  59. DayResetTraff = 1
  60.  
  61. # Defines whether to charge fee daily (yes) or monthly (no)
  62. # Parameter: mandatory
  63. # Values: yes, no
  64. # Default: no
  65. SpreadFee = no
  66.  
  67. # Defines whether the user can access the internet if it has no cash,
  68. # but remained prepaid traffic
  69. # Parameter: mandatory
  70. # Values: yes, no
  71. # Default: no
  72. FreeMbAllowInet = no
  73.  
  74. # Defines what will be written in the traffic cost in detail_stat.
  75. # User still has the prepaid traffic and WriteFreeMbTraffCost = no,
  76. # then the traffic cost willn't be written in detail_stat.
  77. # User doestn't have prepaid traffic and WriteFreeMbTraffCost = no,
  78. # then the traffic cost will be written in detail_stat.
  79. # When WriteFreeMbTraffCost = yes value of the traffic cost will be recorded in any case.
  80. # Parameter: mandatory
  81. # Values: yes, no
  82. # Default: yes
  83. WriteFreeMbTraffCost = yes
  84.  
  85. # Charge a full monthly fee even if user was "frozen" a part of the tariffication period
  86. # Parameter: optional
  87. # Values: yes, no
  88. # Default: no
  89. FullFee = yes
  90.  
  91. # Allow user to see and use a full cash (yes) or hide a part of it (no) for the next fee charge
  92. # Parameter: optional
  93. # Values: yes, no
  94. # Default: yes
  95. # ShowFeeInCash=yes
  96.  
  97. # The names of directions. Direction without names will not appear in
  98. # authorizer and configurator.
  99. # Note: Names consisting of several words should be quoted
  100. # Parameter: mandatory
  101. # Values:
  102. <DirNames>
  103. DirName0 = Internet
  104. DirName1 =
  105. DirName2 =
  106. DirName3 =
  107. DirName4 =
  108. DirName5 =
  109. DirName6 =
  110. DirName7 =
  111. DirName8 =
  112. DirName9 =
  113. </DirNames>
  114.  
  115. # Amount of stg-exec processes.
  116. # These processes are responsible for the execution of scripts OnConnect, OnDisconnect, etc.
  117. # Amount of processes means how many scripts can be executed simultaneously.
  118. # Recommend to leave 1 to avoid errors when executing scripts
  119. # Values: 1 ... 1024
  120. # Default: 1
  121. ExecutersNum = 1
  122.  
  123. # Message queue identifier for the script executer.
  124. # It may be changed if there're a needs to run multiple copies of stargazer.
  125. # Warning: If you do not understand it, do not touch this setting!
  126. # Values: 0 ... 2 ^ 32
  127. # Default: 5555
  128. # ExecMsgKey = 5555
  129.  
  130. # The path to directory with server modules
  131. ModulesPath = /usr/lib/stg
  132.  
  133. # Directory where the "monitor" files are located.
  134. # A blank file will be created in this directory. The modification time of this file
  135. # will be changed about once a minute. If server crashes or some of server component hang,
  136. # the file will stop refreshing, and on this basis we can define the failure of the server
  137. # and if necessary restart. If option is omitted or blank, the monitoring is not performed.
  138. # Parameter: optional
  139. # Value: file path
  140. # Default: /var/stargazer/monitor
  141. #MonitorDir=/var/stargazer/monitor
  142.  
  143. ################################################################################
  144. # Store module
  145. # Configure the module that works with the database server
  146.  
  147. # Option - the name of the module without 'mod_' at the beginning and '.so' in the end
  148. # ie full name of the module mod_store_files.so
  149. <StoreModule store_files>
  150.  
  151. # Working server directory, provides data on tariffs, users, administrators, etc.
  152. WorkDir = /var/stargazer
  153.  
  154. # Owner, group and permissions of the files of user statistics (stat)
  155. ConfOwner = root
  156. ConfGroup = stargazer
  157. ConfMode = 600
  158.  
  159. # Owner, group and permissions on user configuration files (conf)
  160. StatOwner = root
  161. StatGroup = stargazer
  162. StatMode = 640
  163.  
  164. # Owner, group and permissions for user log files (log)
  165. UserLogOwner = root
  166. UserLogGroup = stargazer
  167. UserLogMode = 640
  168.  
  169. </StoreModule>
  170.  
  171. #<StoreModule store_firebird>
  172. # # Database server address
  173. # # Parameter: mandatory
  174. # # Values: ?
  175. # # Default: localhost
  176. # server=localhost
  177. #
  178. # # Path to the database on the server or its alias
  179. # # Parameter: mandatory
  180. # # Values: file path
  181. # # Default: /var/stg/stargazer.fdb
  182. # database=/var/stg/stargazer.fdb
  183. #
  184. # # Database username
  185. # # Parameter: mandatory
  186. # # Values: ?
  187. # # Default: stg
  188. # user = stg
  189. #
  190. # # Database password
  191. # # Parameter: mandatory
  192. # # Values: ?
  193. # # Default: 123456
  194. # password = 123456
  195. #
  196. # # The transaction isolation level
  197. # # Parameter: optional
  198. # # Values: concurrency, dirtyread, readcommitted, consistency
  199. # # Defalt: concurrency
  200. # isolationLevel = concurrency
  201. #
  202. # # Responding to lock (optional, defaults to wait):
  203. # # Parameter: optional
  204. # # Values: wait, nowait
  205. # # Defalt: wait
  206. # lockResolution = wait
  207. #</StoreModule>
  208.  
  209. #<StoreModule store_postgresql>
  210. # # Database server address
  211. # # Parameter: mandatory
  212. # # Values: ?
  213. # # Default: localhost
  214. # server=localhost
  215. #
  216. # # Database name
  217. # # Parameter: mandatory
  218. # # Values: ?
  219. # # Default: stargazer
  220. # database=stargazer
  221. #
  222. # # Database username
  223. # # Parameter: mandatory
  224. # # Values: ?
  225. # # Default: stg
  226. # user=stg
  227. #
  228. # # Database password
  229. # # Parameter: mandatory
  230. # # Values: ?
  231. # # Default: 123456
  232. # password=123456
  233. #</StoreModule>
  234.  
  235. #<StoreModule store_mysql>
  236. # # Database server address
  237. # # Parameter: mandatory
  238. # # Values: ?
  239. # # Default: localhost
  240. # dbhost = localhost
  241. #
  242. # # Database name
  243. # # Parameter: mandatory
  244. # # Values: ?
  245. # # Default: stg
  246. # dbname = stg
  247. #
  248. # # Database username
  249. # # Parameter: mandatory
  250. # # Values: ?
  251. # # Default: stg
  252. # dbuser = stg
  253. #
  254. # # Database password
  255. # # Parameter: mandatory
  256. # # Values: ?
  257. # # Default: 123456
  258. # rootdbpass = 123456
  259. #</StoreModule>
  260.  
  261. ################################################################################
  262.  
  263. ################################################################################
  264. # Other modules
  265.  
  266. <Modules>
  267.  
  268. # Authorization plugin Always Online (mod_auth_ao.so) preferences
  269. # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
  270. # Full module name — mod_auth_ao.so
  271. <Module auth_ao>
  272. </Module>
  273.  
  274. # Authorization plugin InetAccess (mod_auth_ia.so) preferences
  275. # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
  276. # Full module name — mod_auth_ia.so
  277. <Module auth_ia>
  278.  
  279. # Port on which accepts the request from the authorizer
  280. # Values: 1 ... 65534
  281. # Default: 5555
  282. Port = 5555
  283.  
  284. # The time between sending a query to the user whether he is alive
  285. # and update statistics (seconds)
  286. # Values: 5 ... 600
  287. # Default: 60
  288. UserDelay = 60
  289.  
  290. # Timeout for the user. If during this time authorizer
  291. # does not respond, the user will be disconnected
  292. # Values: 15 ... 1200
  293. # Default: 210
  294. UserTimeout = 210
  295.  
  296. # This option specifies that the program will be transmitted from the server InetAccess
  297. # as a prepaid traffic residue
  298. # Values:
  299. # FreeMb = 0 — amount of free megabytes in terms of cost zero direction
  300. # FreeMb = 1 — amount of free megabytes in terms of cost of the first direction
  301. # FreeMb = 1 — amount of free megabytes in terms of cost of the first direction
  302. # FreeMb = 2 — amount of free megabytes in terms of cost of the second direction
  303. # ........................
  304. # FreeMb = 9 — amount of free megabytes in terms of cost of the ninth direction
  305. # FreeMb = cash - amount of money for which the user can download for free
  306. # FreeMb = none - no transfer
  307. # Default: 0
  308. FreeMb = 0
  309. </Module>
  310.  
  311. # Configuration module SgConfig (mod_conf_sg.so) preferences
  312. # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
  313. <Module conf_sg>
  314.  
  315. # Port on which the server interacts with configurator
  316. # Values: 1 ... 65535
  317. # Default: 5555
  318. Port = 5555
  319. </Module>
  320.  
  321. # Traffic capture module "mod_cap_ether.so" preferences
  322. # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
  323. # <Module cap_ether>
  324. # </Module>
  325.  
  326. # Traffic capture module "mod_cap_nf.so" preferences
  327. # The second parameter is the name of the module without 'mod_' at the beginning and '.so' in the end
  328.  
  329.  
  330.  
  331. ################################################################################
  332. # Прочие модули
  333.  
  334. <Modules>
  335. # Traffic capture module "mod_cap_nf.so" preferences
  336. # Receives information about the traffic on the protocol NetFlow
  337. # Notes: TCPPort and UDPPort can have the same value.
  338. <Module cap_nf>
  339. # Port for the TCP-connections
  340. # Values: 0 ... 65536
  341. # Default: 421111
  342. #TCPPort = 42111
  343.  
  344. # Port for the UDP-connections
  345. # Values: 0 ... 65536
  346. # Default: 421111
  347. UDPPort = 42111
  348.  
  349. </Module>
  350.  
  351. <IncludeFile "conf-enabled.d/*.conf">
  352. </IncludeFile>
  353.  
  354. </Modules>
  355. ################################################################################
  356.  
  357.  
  358.  
  359. <Module cap_nf>
  360. TCPPort=9996 #Nomer slushaemogo tcp porta
  361. UDPPort=9996 #Nomer slushaemogo udp porta
  362. </Module>
  363.  
  364. # User ping module (mod_ping.so) preferences
  365. # The second parameter - the name of the module without mod_ at the beginning and. so in the end
  366. # <Module ping>
  367. #
  368. # Time in seconds between pings of the same user
  369. # Values: 10 ... 3600
  370. # Default: 15
  371. # PingDelay = 15
  372. #
  373. # </Module>
  374.  
  375. </Modules>
  376. ################################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement