136 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			136 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # - Configuration file for scrupts check_net.sh and netconfig.sh
 | |
| # -
 | |
| 
 | |
| LOGGING_CONSOLE=false
 | |
| DEBUG=false
 | |
| 
 | |
| # - Where are your scripts located?
 | |
| # -
 | |
| check_script=/usr/local/sbin/check_net.sh
 | |
| netconfig_script=/usr/local/sbin/netconfig.sh
 | |
| 
 | |
| log_file=/var/log/check_net.log
 | |
| 
 | |
| 
 | |
| # - Put in your DSL devices (refers to your network configuration)
 | |
| # - youe wish be congigured by that script
 | |
| # -
 | |
| # - Notice:
 | |
| # -    If not using multiple default gatways, declare the list in the order of your 
 | |
| # -    preferred default gatway devices
 | |
| # -
 | |
| # -    Example:
 | |
| # -       _INITIAL_DEVICE_LIST="eth0:192.168.63.254 ppp-light"
 | |
| # -
 | |
| #_INITIAL_DEVICE_LIST="ppp-surf2 ppp-surf1 ppp-st"
 | |
| _INITIAL_DEVICE_LIST="eth9:172.16.11.254 eth11:172.16.12.254 eth10:172.16.13.254"
 | |
| 
 | |
| # - Set to "false" uses "0.0.0.0" as remote gateway instead of the real address
 | |
| # -
 | |
| USE_REMOTE_GATEWAY_ADDRESS=true
 | |
| #USE_REMOTE_GATEWAY_ADDRESS=false
 | |
| 
 | |
| # - Set default gw (roundrobin)
 | |
| # -
 | |
| # - !! SET_MULTIPLE_DEFAULT_GW=true does not work for now..
 | |
| # -
 | |
| SET_MULTIPLE_DEFAULT_GW=false
 | |
| #SET_MULTIPLE_DEFAULT_GW=true
 | |
| 
 | |
| 
 | |
| # - Set to false uses "0.0.0.0" as default gateway adress instaed of real remote address
 | |
| # -
 | |
| USE_DEFAULT_GW_ADDRESS=true
 | |
| #USE_DEFAULT_GW_ADDRESS=false
 | |
| 
 | |
| 
 | |
| # - Hostnames for ping test
 | |
| # -
 | |
| # - Note: The first two reachable hosts will be used for ping test. 
 | |
| # -
 | |
| # - Space separated list
 | |
| # -
 | |
| PING_TEST_HOSTS="oopen.de google.com heise.de debian.org ubuntu.com"
 | |
| 
 | |
| 
 | |
| admin_email=root
 | |
| from_address="check-inet-devices@`hostname -f`"
 | |
| company="GA - Schloss"
 | |
| content_type='Content-Type: text/plain;\n charset="utf-8"'
 | |
| 
 | |
| 
 | |
| # - rule_local_ips
 | |
| # -
 | |
| # - Add rule(s) for routing local ip-address(es) through a given extern interface
 | |
| # -
 | |
| # - Space separated list of entries '<ext-interface>:<local-ip>'
 | |
| # -    rule_local_ips="<ext-interface>:<local-ip> [<ext-interface>:<local-ip>] [.."
 | |
| # -
 | |
| # - Example:
 | |
| # - ========
 | |
| # - local ip 192.168.10.1 through extern interface ppp-st and 
 | |
| # - local ip 192.168.10.13 through extern interface ppp-surf1
 | |
| # -     rule_local_ips="ppp-st:192.168.10.1 ppp-surf1:192.168.10.13"
 | |
| # -
 | |
| rule_local_ips="eth11:192.168.10.13 eth10:192.168.10.1"
 | |
| 
 | |
| # - rule_remote_ips
 | |
| # -
 | |
| # - Add rule(s) for routing remote ip-address(es) through a given extern interface
 | |
| # -
 | |
| # - Space separated list of entries '<ext-interface>:<remote-ip>'
 | |
| # -    rule_remote_ips="<ext-interface>:<remote-ip> [<ext-interface>:<remote-ip>] [.."
 | |
| # -
 | |
| # - Example:
 | |
| # - ========
 | |
| # - route remote ip-address  141.1.1.1 through extern interface ppp-ckubu and 
 | |
| # - also route ip-address 8.8.8.8 through through extern interface ppp-ckubu
 | |
| # -     rule_remote_ips="ppp-ckubu:141.1.1.1 ppp-ckubu:8.8.8.8"
 | |
| # - 
 | |
| rule_remote_ips=""
 | |
| 
 | |
| # - rule_local_nets
 | |
| # -
 | |
| # - Add rule(s) for routing local networks through a given extern interface out
 | |
| # -
 | |
| # - Space separated list of entries '<extern-interface>:<local-net>'
 | |
| # -    rule_local_nets="<extern-interface>:<local-net> [<extern-interface>:<local-net>] [.."
 | |
| # -
 | |
| # -
 | |
| # - Example:
 | |
| # - ========
 | |
| # -     rule_local_nets="ppp-st:192.168.11.0/25 ppp-surf1:192.168.11.128/25"
 | |
| # -
 | |
| #rule_local_nets="ppp-surf2:192.168.11.0/25 ppp-surf2:192.168.11.128/25 ppp-surf2:192.168.10.0/25 ppp-surf1:192.168.10.128/25"
 | |
| rule_local_nets="eth9:192.168.11.0/25 eth9:192.168.11.128/25 eth9:192.168.10.0/25 eth11:192.168.10.128/25"
 | |
| 
 | |
| 
 | |
| 
 | |
| ## ====================================
 | |
| ## - Don't make changes after this Line
 | |
| ## ====================================
 | |
| 
 | |
| # ---
 | |
| # - Add rule(s) for routing local ip-address(es)
 | |
| # ---
 | |
| declare -a rule_local_ip_arr
 | |
| for _str in $rule_local_ips ; do
 | |
|    rule_local_ip_arr+=("$_str")
 | |
| done
 | |
| 
 | |
| # ---
 | |
| # - Add rule(s) for routing remote ip-address(es)
 | |
| # ---
 | |
| declare -a rule_remote_ip_arr
 | |
| for _str in $rule_remote_ips ; do
 | |
|    rule_remote_ip_arr+=("$_str")
 | |
| done
 | |
| 
 | |
| # ---
 | |
| # - Add rule(s) for routing local networks
 | |
| # ---
 | |
| declare -a rule_local_net_arr
 | |
| for _str in $rule_local_nets ; do
 | |
|    rule_local_net_arr+=("$_str")
 | |
| done
 |