Aufbau eines PPP-HOST auf Rechner 19216811
Auf Rechner 192.168.1.1 wird ein PPP-Host mit der IP 192.168.2.1 aufgebaut und das
Routing gesetzt, um Rechner im Netz 192.168.2.x erreichen zu können. Ferner wird
der Zugriff über PAP Auth. gesichert.
Call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
Call SysLoadFuncs
Call SysCls
'@echo off'
say "======================================================================="
say ""
say " Starte PPP-Host Interface"
say ""
say "======================================================================="
say ""
say ""
say "INIT COM:2"
say ""
'mode com2:57600,n,8,1,,to=ON,xon=off,idsr=on,odsr=on,octs=on,dtr=hs,rts=hs,buffer=auto'
say ""
say ""
say "PPP wird in einer Hintergrund-Sitzung gestartet"
say ""
say ""
'Start "PPP-Host-GATE1" /C ppp.exe com2 57600 mru 1500 rtscts modem 192.168.2.1: netmask 255.255.255.0 priority 1 restart silent name gate1 +pap connect "slattach ATZ OK ATS0=2 OK "'
call syssleep 10
say " Konfiguriere Interface ...."
'ifconfig ppp0 192.168.2.1 up netmask 255.255.255.0'
say "Routing auf NETZ 192.168.3.0 "
'route add NET 192.168.3.0 192.168.2.1 1'
say ""
say "PPP-Host is running"
say ""
exit
Die Schwachstelle ist das Modem, das abhebt auch wenn der HOST oder der Rechner gar
nicht mehr reagiert.
Beispiel
/***************************************************************************/
/*** PPP-HOST Startup Rexx-Script ***/
/*** ***/
/*** ***/
/***************************************************************************/