asn_script.conf 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #######################################################################
  2. ## Configuration file for ASN-IPFire-Script v0.8.1 (asn_ipfire.sh)
  3. #######################################################################
  4. #######################################################################
  5. ## This configuration is optional. Without a configuration file, the
  6. ## script will use the default values from the script header.
  7. ## The default values from the script are shown here.
  8. #######################################################################
  9. #**********************************************************************
  10. # Select the download tool to be used: wget or curl. Default value is
  11. # wget
  12. #**********************************************************************
  13. #downloadtool=wget
  14. #**********************************************************************
  15. # Timeout in seconds for availability check (-c|--check) of ASN and
  16. # Network sources
  17. #**********************************************************************
  18. #timeout=30
  19. #**********************************************************************
  20. # Path to IPFire customnetworks|customgroups.
  21. #**********************************************************************
  22. #customnetworks=/var/ipfire/fwhosts/customnetworks
  23. #customgroups=/var/ipfire/fwhosts/customgroups
  24. #**********************************************************************
  25. # Remark for IPFire customnetworks|customgroups. This is shown in
  26. # IPfire and used to identify entries made by asn_ipfire.sh.
  27. #**********************************************************************
  28. #auto_remark="entry by asn_ipfire.sh"
  29. #**********************************************************************
  30. # Optional examples, not predefined in the script.
  31. # Location and names of iptable, afwall or nft, which can be used in
  32. # the output line.
  33. #*********************************************************************
  34. #iptables_path="/sbin/iptables"
  35. #afwall_path="/system/bin/iptables"
  36. #nft_path="/usr/bin/nft"
  37. #**********************************************************************
  38. # Define custom output file format, special substitutions are:
  39. # %network%, %company%, %number%. These variables are dynamically
  40. # set by the script.
  41. # The first one shown below is the default format. The others are
  42. # examples for iptables, afwall and nftables
  43. #**********************************************************************
  44. #outputline="%network%"
  45. #outputline="$iptables_path -A OUTPUT -d %network% -j REJECT # %company% Nr.%number%"
  46. #outputline="$afwall_path -A \"afwall\" -d %network% -j REJECT"
  47. #outputline="$nft_path add rule ip filter OUTPUT ip daddr %network% counter reject"
  48. #**********************************************************************
  49. # Location and name of the output file (-o | --outfile )
  50. #**********************************************************************
  51. #output_file="asn_result.lst"
  52. #**********************************************************************
  53. # Location and name of the temporary source files, needed for sources
  54. # cidr-report and bgplookingglass.
  55. #**********************************************************************
  56. #temp1="asn_cidrreport.tmp"
  57. #temp2="asn_bglooking.tmp"
  58. #**********************************************************************
  59. # Location and name of the tool: iprange. (optional)
  60. #**********************************************************************
  61. #iprange_path="iprange/iprange_amd64" # default
  62. #iprange_path="iprange/iprange_arm64"
  63. #**********************************************************************
  64. # Location and name of the local files, used as local ASN and/or
  65. # network sources.
  66. #
  67. # Line format of the local_asn_file: 'ASN Company' or vice versa
  68. # (e.g. 'AS1234 CompanyA' or 'CompanyA AS1234')
  69. #
  70. # Line format of the local_net_file: 'network ASN' or vice versa
  71. # (e.g. '1.2.3.4/24 AS5678' or 'AS5678 1.2.3.4/24')
  72. #**********************************************************************
  73. #local_asn_file="local_asn.list"
  74. #local_net_file="local_net.list"
  75. #**********************************************************************
  76. # Enable/disable ASN sources: Remove leading hashes (#) to enable
  77. # additional ASN_sources. Also remove the hashes of 1st and last line.
  78. # Deactivation of a default source must be done inside the script head.
  79. # ASN_local # local source (local_asn_file)
  80. # ASN_cidrreport # cidr-report.org
  81. # ASN_bgplookingglass # bgplookingglass.com
  82. # ASN_bgpview # bgpview.io (white spaces in company names not supported)
  83. # ASN_bgphenet # bgp.he.net (not supported due to js requirement)
  84. #**********************************************************************
  85. #getASNfromCOMPANY=( \
  86. # ASN_local \
  87. # ASN_cidrreport \
  88. ## ASN_bgplookingglass \
  89. ## ASN_bgpview \
  90. ###ASN_bgphenet \
  91. #)
  92. #**********************************************************************
  93. # Enable/disable network sources: Remove leading hashes (#) to enable
  94. # additional NET_sources. Also remove the hashes of 1st and last line.
  95. # Deactivation of a default source must be done inside the script head.
  96. # NET_local # local source (local_net_file)
  97. # NET_ripe # stat.ripe.net
  98. # NET_ipinfo # ipinfo.io
  99. # NET_bgpview # bgpview.io
  100. # NET_radb # whois.radb.net (use only if you know what you are doing. query results may be wrong!)
  101. #**********************************************************************
  102. #getNETfromASN=( \
  103. # NET_local \
  104. # NET_ripe \
  105. ## NET_ipinfo \
  106. ## NET_bgpview \
  107. ## NET_radb \
  108. #)