basic cgi added

This commit is contained in:
lars 2005-05-17 00:39:58 +00:00
parent bdc8da0746
commit b196b7ecd0
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<HTML>
<HEAD>
<TITLE>Willkommen im Offenen Netz</TITLE>
</HEAD>
<BODY>
<BR><BR><BR><BR>
<H1 ALIGN="CENTER">Here we are ...</H1>
</BODY>
</HTML>

9
web-splash/web-splash.cgi Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
echo "Content-type: text/html"
echo
cat "$SPLASH_DOCUMENT"
#/test/web-splash.sh register
set | sed "s/$/<br>/"

View file

@ -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'