GATEMON

Description

This is an internal tool used to configure the default route regarding the gateways' availability. Currently, it gets the returned information of the periodic "hostcheck" and decides, according to the configuration, to add or remove the default route of ASQ and/or FreeBSD.

Command

gatemon [-v] [-b] [-r] [-6] [-d <dhcp-mac-ifce-name>] [-i <dialup-mac-ifce-name>] [-o <router>] [-g <gateway-host>] [-s <UP|DOWN>]
-v : Force Verbosity to verbose file
-b : Boot mode. (won't run enfilter)
-r : Refresh IPv4 and IPv6 default routes
-d : <dhcp-mac-ifce-name>: Can only be used for DHCPv4 interfaces ( ex: eth0 )
-i : <dialup-mac-ifce-name>: Can only be used for dialup interfaces ( ex: ng0 )
-o : <router>: Router object
-g : <gateway-host>: Gateway host member of the router object
-s : <UP|DOWN>: State of the specified gateway
-6 : Manage IPv6 routes instead of IPv4 ones

Results

Example

gatemon [-v] [-b] -r
	Refresh IPv4 and IPv6 default routes
gatemon [-v] [-b] [-6] -o <router-object> -g<gateway-host> -s <UP|DOWN> 
	Update the state of a gateway of a given router
gatemon [-v] [-b] [-6] -d <dhcp-mac-ifce-name> -s <UP|DOWN> 
	Update the state of the gateway corresponding to the generated object (Firewall_<dhcp-ifce>_router) representating the router of a dhcp client interface in all the router objects using this generated object as a gateway
gatemon [-v] [-b] [-6] -i <dialup-mac-ifce-name> -s <UP|DOWN> 
Update the state of the gateway corresponding to the generated object (Firewall_<dialup-ifce>_peer) representating the dialup interface in all the router objects using this generated object as a gateway