basic cgi added
This commit is contained in:
parent
bdc8da0746
commit
b196b7ecd0
3 changed files with 25 additions and 0 deletions
13
web-splash/splash-page.html
Normal file
13
web-splash/splash-page.html
Normal 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
9
web-splash/web-splash.cgi
Executable 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>/"
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue