34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# this file is not parsed, but simply sourced
|
|
|
|
# the source interface (only these packets will be filtered)
|
|
IF_SRC=eth1
|
|
|
|
# intern IP address auf the network, where web-splash will be used
|
|
INTERN_IP=192.168.1.1
|
|
|
|
# name of the local file that should be displayed by the cgi
|
|
SPLASH_DOCUMENT=/test/splash-site/splash-info.html
|
|
|
|
# allowed and denied IPs - separete by spaces
|
|
ALLOW_IP_LIST=""
|
|
DENY_IP_LIST=""
|
|
|
|
# templates for the rules to manage forwarding rules (_IP_ will be substituted by the host's IP)
|
|
RULE_ADD='$IPT -t nat -I $CHAIN_FORWARD_CHECK -s _IP_ -j $CHAIN_FORWARD_ACTION'
|
|
RULE_DEL='$IPT -t nat -D $CHAIN_FORWARD_CHECK -s _IP_ -j $CHAIN_FORWARD_ACTION'
|
|
|
|
# the iptables chain, that contains all forwarded ips
|
|
CHAIN_FORWARD_CHECK=web_splash_forward_check
|
|
CHAIN_FORWARD_ACTION=web_splash_forward_action
|
|
CHAIN_REDIRECT=web_splash_redirect
|
|
CHAIN_SERVICES=web_splash_services
|
|
|
|
# the iptables action for bad packets (e.g. DROP or REJECT)
|
|
REJECT_ACTION=DROP
|
|
|
|
# the location of the iptables program
|
|
IPT=/sbin/iptables
|
|
[ ! -x "$IPT" ] && IPT=/usr/sbin/iptables
|
|
|
|
# path to the web-splash scripts
|
|
SPLASH_BIN=/test
|