1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- #######################################################################
- ## Configuration file for ASN-IPFire-Script v0.7.9 (asn_ipfire.sh)
- #######################################################################
- #######################################################################
- ## This configuration is optional. Without a configuration file, the
- ## script will use the default values from the script header.
- #######################################################################
- ## Use download tool wget or curl
- #downloadtool=wget # default
- #downloadtool=curl # alterantive (if existent)
- ## Path to IPFire customnetworks|customgroups
- #customnetworks=/var/ipfire/fwhosts/customnetworks
- #customgroups=/var/ipfire/fwhosts/customgroups
- ## Remark for IPFire customnetworks|customgroups. This is used to identify entries made by asn_ipfire.sh.
- #auto_remark="entry by asn_ipfire.sh"
- ## Define iptables path for iptable/afwall output file
- #iptables_path="/sbin/iptables"
- #afwall_path="/system/bin/iptables"
- #nft_path="/usr/bin/nft"
- ## Define custom output format, special substitutions: %network%, %company%, %number%
- #outputline="%network%" # default
- #outputline="$iptables_path -A OUTPUT -d %network% -j REJECT # %company% Nr.%number%" # iptables example
- #outputline="$afwall_path -A \"afwall\" -d %network% -j REJECT" # afwall example
- #outputline="$nft_path add rule ip filter OUTPUT ip daddr %network% counter reject" # nftables example
- ## Output file
- #output_file="asn_result.lst" # output file in custom format
- #temppath="." # path to store temporary source file (default is the script folder ".")
- #temp1="asn_cidrreport.tmp" # Define temp file
- #temp2="asn_bglooking.tmp" # Define temp file
- ## Local files can be used as ASN and/or network sources. To be activated by enabling "gather_ASN0" and/or "gather_NET0" into following arrays.
- #local_asn_file="local_asn.list" # Line format: 'ASN Company' or vice versa (e.g. 'AS1234 CompanyA' or 'CompanyA AS1234')
- #local_net_file="local_net.list" # Line format: 'network ASN' or vice versa (e.g. '1.2.3.4/24 AS5678' or 'AS5678 1.2.3.4/24')
- ## Enable/disable ASN sources: Remove leading hashes (#) to enable ASN_sources.
- #getASNfromCOMPANY=( \
- # ASN_local \ # local source (local_asn_file)
- # ASN_cidrreport \ # cidr-report.org
- ## ASN_ultratools \ # ultratools.com
- ## ASN_bglookingglass \ # bgplookingglass.com
- #)
- ## Enable/disable network sources: Remove leading hash (#) to enable NET_sources.
- #getNETfromASN=( \
- # NET_local \ # local source (local_net_file)
- # NET_ripe \ # stat.ripe.net
- ## NET_ipinfo \ # ipinfo.io
- ## NET_radb \ # whois.radb.net # use only if you know what you are doing. query results may be wrong!
- #)
|