#------------------------------------------------------------------------------ # /etc/rc.d/rc721.poptop - start 0.3.1 # # # Creation: 01.08.2003 sk # Last Update: $Id$ #------------------------------------------------------------------------------ if [ "$OPT_POPTOP" = "yes" ] then begin_script POPTOP "configuring PoPToP ..." do_modprobe slhc do_modprobe ppp_generic do_modprobe ppp_mppe do_modprobe ppp_async do_modprobe ip_gre do_modprobe sha1 do_modprobe arc4 if [ "$POPTOP_DEBUG" = "yes" ] then debug='debug' else debug='' fi if [ "$POPTOP_NTDOMAIN" = "" ] then domain='' else domain="domain $POPTOP_NTDOMAIN" fi if [ "$POPTOP_WINSADDR" = "" ] then winsaddr='' else winsaddr="ms-wins $POPTOP_WINSADDR" fi # Erstelle /etc/ppp/options.pptpd echo "$debug" >> /etc/ppp/options.pptpd echo "auth" >> /etc/ppp/options.pptpd echo "mtu 1492" >> /etc/ppp/options.pptpd echo "mru 1492" >> /etc/ppp/options.pptpd echo "refuse-pap" >> /etc/ppp/options.pptpd echo "refuse-chap" >> /etc/ppp/options.pptpd echo "refuse-mschap" >> /etc/ppp/options.pptpd echo "$domain" >> /etc/ppp/options.pptpd echo "require-mschap-v2" >> /etc/ppp/options.pptpd echo "require-mppe-128" >> /etc/ppp/options.pptpd echo "name $HOSTNAME" >> /etc/ppp/options.pptpd echo "ms-dns $POPTOP_DNSADDR" >> /etc/ppp/options.pptpd echo "$winsaddr" >> /etc/ppp/options.pptpd echo "proxyarp" >> /etc/ppp/options.pptpd # Erstelle /etc/pptpd.conf echo "$debug" >> /etc/pptpd.conf echo "option /etc/ppp/options.pptpd" >> /etc/pptpd.conf echo "localip $POPTOP_IPADDR" >> /etc/pptpd.conf echo "remoteip $POPTOP_REMOTE" >> /etc/pptpd.conf echo "ppp /usr/sbin/pppd" >> /etc/pptpd.conf # Erstelle User ipoptop=1 while [ $ipoptop -le $POPTOP_USER_N ] do eval poptopuser='$POPTOP_USER_'$ipoptop'_USER' eval poptoppass='$POPTOP_USER_'$ipoptop'_PASS' eval poptopip='$POPTOP_USER_'$ipoptop'_IP' if [ "$poptopip" = "" ] then echo '"'"$poptopuser"'" "'"$HOSTNAME"'" "'"$poptoppass"'" *' >> /etc/ppp/chap-secrets else echo '"'"$poptopuser"'" "'"$HOSTNAME"'" "'"$poptoppass"'" "'"$poptopip"'"' >> /etc/ppp/chap-secrets fi ipoptop=`/usr/bin/expr $ipoptop + 1` done if [ "$POPTOP_START_BOOT" = "yes" ] then /usr/local/bin/colecho "starting PoPToP ..." gn /usr/sbin/pptpd fi case $OPT_HTTPD in yes) httpd-menu.sh add -p 366 poptop.cgi "PopToP" '$_MT_firewall' status ;; esac end_script fi