123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- #######################################################################
- ## Configuration file for ASN-IPFire-Script v0.8.1 (asn_ipfire.sh)
- #######################################################################
- #######################################################################
- ## This configuration is optional. Without a configuration file, the
- ## script will use the default values from the script header.
- ## The default values from the script are shown here.
- #######################################################################
- #**********************************************************************
- # Select the download tool to be used: wget or curl. Default value is
- # wget
- #**********************************************************************
- #downloadtool=wget
- #**********************************************************************
- # Timeout in seconds for availability check (-c|--check) of ASN and
- # Network sources
- #**********************************************************************
- #timeout=30
- #**********************************************************************
- # Path to IPFire customnetworks|customgroups.
- #**********************************************************************
- #customnetworks=/var/ipfire/fwhosts/customnetworks
- #customgroups=/var/ipfire/fwhosts/customgroups
- #**********************************************************************
- # Remark for IPFire customnetworks|customgroups. This is shown in
- # IPfire and used to identify entries made by asn_ipfire.sh.
- #**********************************************************************
- #auto_remark="entry by asn_ipfire.sh"
- #**********************************************************************
- # Optional examples, not predefined in the script.
- # Location and names of iptable, afwall or nft, which can be used in
- # the output line.
- #*********************************************************************
- #iptables_path="/sbin/iptables"
- #afwall_path="/system/bin/iptables"
- #nft_path="/usr/bin/nft"
- #**********************************************************************
- # Define custom output file format, special substitutions are:
- # %network%, %company%, %number%. These variables are dynamically
- # set by the script.
- # The first one shown below is the default format. The others are
- # examples for iptables, afwall and nftables
- #**********************************************************************
- #outputline="%network%"
- #outputline="$iptables_path -A OUTPUT -d %network% -j REJECT # %company% Nr.%number%"
- #outputline="$afwall_path -A \"afwall\" -d %network% -j REJECT"
- #outputline="$nft_path add rule ip filter OUTPUT ip daddr %network% counter reject"
- #**********************************************************************
- # Location and name of the output file (-o | --outfile )
- #**********************************************************************
- #output_file="asn_result.lst"
- #**********************************************************************
- # Location and name of the temporary source files, needed for sources
- # cidr-report and bgplookingglass.
- #**********************************************************************
- #temp1="asn_cidrreport.tmp"
- #temp2="asn_bglooking.tmp"
- #**********************************************************************
- # Location and name of the tool: iprange. (optional)
- #**********************************************************************
- #iprange_path="iprange/iprange_amd64" # default
- #iprange_path="iprange/iprange_arm64"
- #**********************************************************************
- # Location and name of the local files, used as local ASN and/or
- # network sources.
- #
- # Line format of the local_asn_file: 'ASN Company' or vice versa
- # (e.g. 'AS1234 CompanyA' or 'CompanyA AS1234')
- #
- # Line format of the local_net_file: 'network ASN' or vice versa
- # (e.g. '1.2.3.4/24 AS5678' or 'AS5678 1.2.3.4/24')
- #**********************************************************************
- #local_asn_file="local_asn.list"
- #local_net_file="local_net.list"
- #**********************************************************************
- # Enable/disable ASN sources: Remove leading hashes (#) to enable
- # additional ASN_sources. Also remove the hashes of 1st and last line.
- # Deactivation of a default source must be done inside the script head.
- # ASN_local # local source (local_asn_file)
- # ASN_cidrreport # cidr-report.org
- # ASN_bgplookingglass # bgplookingglass.com
- # ASN_bgpview # bgpview.io (white spaces in company names not supported)
- # ASN_bgphenet # bgp.he.net (not supported due to js requirement)
- #**********************************************************************
- #getASNfromCOMPANY=( \
- # ASN_local \
- # ASN_cidrreport \
- ## ASN_bgplookingglass \
- ## ASN_bgpview \
- ###ASN_bgphenet \
- #)
- #**********************************************************************
- # Enable/disable network sources: Remove leading hashes (#) to enable
- # additional NET_sources. Also remove the hashes of 1st and last line.
- # Deactivation of a default source must be done inside the script head.
- # NET_local # local source (local_net_file)
- # NET_ripe # stat.ripe.net
- # NET_ipinfo # ipinfo.io
- # NET_bgpview # bgpview.io
- # NET_radb # whois.radb.net (use only if you know what you are doing. query results may be wrong!)
- #**********************************************************************
- #getNETfromASN=( \
- # NET_local \
- # NET_ripe \
- ## NET_ipinfo \
- ## NET_bgpview \
- ## NET_radb \
- #)
|