diff --git a/web-splash/splash-page.html b/web-splash/splash-page.html new file mode 100644 index 0000000..4977ebf --- /dev/null +++ b/web-splash/splash-page.html @@ -0,0 +1,13 @@ + + + Willkommen im Offenen Netz + + + + +



+ +

Here we are ...

+ + + diff --git a/web-splash/web-splash.cgi b/web-splash/web-splash.cgi new file mode 100755 index 0000000..35d9c92 --- /dev/null +++ b/web-splash/web-splash.cgi @@ -0,0 +1,9 @@ +#!/bin/sh + +echo "Content-type: text/html" +echo + +cat "$SPLASH_DOCUMENT" + +#/test/web-splash.sh register +set | sed "s/$/
/" diff --git a/web-splash/web-splash.conf b/web-splash/web-splash.conf index 2a49071..3b1d0e6 100644 --- a/web-splash/web-splash.conf +++ b/web-splash/web-splash.conf @@ -7,6 +7,9 @@ IF_SRC=eth1 # embedded systems it should be an IP address instead of a name) SPLASH_SERVER=192.168.1.1 +# name of the local file that should be displayed by the cgi +SPLASH_DOCUMENT=/test/splash-page.html + # 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'