Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have problems setting up /srv/www/cgi-bin/internet.html script to share my internet connection in a home network.
I can access it from both machines but nor the list of providers nor the status of smpppd service appears.
I've setup smpppd and smpppd-c conf files but still when I press connect - nothing happens ?
Even tried to edit file mannualy and to add interface and provider myself - still nothing - any ideas ?
Here is adapted script for my configuration. Everything works execpt for selecting providers/ISP so I guess someone else could help with this one. So far my provider is selected as default one in /etc/sysconfig/network/ifcfg-ppp0
For /etc/smppd.conf add lines:
open-inet-socket=yes
host-range="x.x.x.x x.x.x.x."
#leave empty for no authentication
password=
Also language selection has been striped from script since I use English/Serbian only.
#!/bin/sh
# /srv/www/internet.html
# Internet Connection Script / HTML Frontend
# Authors: Christian Steinruecken <cstein@suse.de>
# Arvin Schnell <arvin@suse.de>
# Christopher Hofmann <cwh@suse.de>
# Adrian Schroeter <adrian@suse.de>
#
VERSION="0.45"
url="internet.html"
imgdir="/images/smpppd"
# interface is directly referenced
cint_cmd="/usr/sbin/cinternet-wwwrun --interface-name=ppp0"
wait=60
cmd=""
# lang="english"
# notice that result of cint_cmd is changed since SuSE 7.3
getproviders() {
n="0"
while read line; do
set -- $line
num="$1"
n=`expr $n + 1`
shift
prov=$*
case "$num" in
0) echo "<tr><td bgcolor=\"#ffffde\">[ <a href=\"$url?act+${n}\">$prov</a> ]</td></tr>" ;;
1) echo "<tr><td bgcolor=\"#d0d0d0\">[ <a href=\"$url?act+${n}\">$prov</a> (*) ]</td></tr>" ;;
esac
done
}
get_current_provider() {
found=""
while read line; do
set -- $line
num="$1"
shift
prov=$*
if [ "$num" = "1" ]; then
echo "$prov"
found=1;
fi
done
if [ -z "$found" ]; then
echo "<i>$STR_NO_ISP</i>"
fi
}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.