home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / telecomm / sticpsrc.lzh / DOC / NODE.ARC / NODE.DOC next >
Encoding:
Text File  |  1990-06-23  |  16.2 KB  |  552 lines

  1. 06601030305800
  2. F0110030
  3. 9[...................................................]001
  4. ëConfiguringaremote-controllednodeusingNET.PE1CHLÇ
  5.  
  6. BecausesomenodesarenowconvertingfromNET/ROMrunningona
  7. TNC2clonetoaPCorAtariST,usinganSCC(8530)boardand
  8. runningTCP/IPNET,someguidelinesarecollectedinthis
  9. documenttohelpconfigurationofsuchanode.
  10.  
  11.  
  12. üAuto-startofprogramÇ
  13.  
  14. Thesystemmustbeconfiguredinsuchaway,thatitwill
  15. automaticallystarttheNETprogramwhenpowered-uporRESET,and
  16. willre-startwhenevertheNETprogramexits.Thiscanbeeasily
  17. accomplished:
  18.  
  19. -AtariSTsystems:
  20.  
  21. Createafolder(directory)onthestartupdisk,namedAUTO.
  22. CopytheNETprogramintothisfolder,andnameit"NET.PRG"
  23. (notNET.TOS,asitisnormallydistributed).
  24. Afterthat,copyaprogramintotheAUTOfolderthatwill
  25. rebootthemachine.Suchprogramsareavailableinthe
  26. publicdomain,andcanbeobtainedfromPE1CHLtoo.
  27.  
  28. -MS-DOSsystems:
  29.  
  30. AttheendoftheAUTOEXEC.BATfileonthestartupdisk,put
  31. the"NET"commandtostart"NET.EXE",andonthefollowing
  32. lineputacommandtore-bootthesystem.Programstodo
  33. thatareavailableinthepublicdomain,andareusually
  34. calledsomethinglike"BOOT.COM","REBOOT.COM"etc.Youcan
  35. createyourown"BOOT.COM"bycreatingafilewiththe5-
  36. bytesequence"EA0000FFFF",usingDEBUG.
  37.  
  38. Theeffectoftheabovesetupisthesameforbothmachines:
  39. duringthestartupproceduretheNETprogramisstarted,andit
  40. normallystaysrunning(i.e.thestartupprocedurenever
  41. terminates).ShouldtheNETprogrameverexit,thenextlinein
  42. theprocedure(orthenextprogramintheAUTOfolder)will
  43. rebootthemachine,andtheNETprogramwillbere-started.
  44.  
  45.  
  46. üWatchdogÇ
  47.  
  48. Intheeventofaprogramcrash,itisveryinconvenienttohave
  49. toresetthemachinemanually.Programcrashesoccurinfre⑨
  50. quently,andonlywhennooperatoriswatching.
  51. Theprogramhasafeaturethatallowstheconnectionofa
  52. hardwarewatchdogcircuit,thatwillRESETthemachinewhenthe
  53. programseemstohang.
  54.  
  55. Theprincipleofsuchacircuit,istogenerateaRESETpulse
  56. whennoactivityhasbeensensedontheinputofthecircuit
  57. duringacertainintervaloftime.Theprogramcangeneratea
  58. Çpulseonsomeoutputpin(e.g.aDATAlineoftheparallel
  59. printerport)ateachpassthroughthemainloop.
  60.  
  61. ItisalsopossibletoconnectthePTToutputofachannelto
  62. suchacircuit,becausethechannelwillalwaystransmitthe
  63. nodelistatfixedintervals,sothenodehascrashedwhenthe
  64. transmitterisnotactivatedforalongtime.
  65.  
  66. FortheAtariversionoftheprogram,thewatchdogcommandalso
  67. allowsthedefinitionofasoftwaretimeoutthatwillcausea
  68. RESETofthemachineafteracertainperiodofinactivity,
  69. withoutrequiringexternalhardware.Thismethodprovidessome
  70. protectionagainstcrashes,butislessreliablethanthe
  71. hardware-assistedapproach.
  72.  
  73. Thecommandtoactivatethewatchdogpulsesis:
  74.  
  75. -AtariSTsystems:
  76.  
  77. watchdog18060001
  78.  
  79. Thisenables2formsofwatchdog:
  80. 1.Asoftwaretimerthatwillresetthemachinewhenno
  81. activityhasoccurredfor180seconds(orfor600
  82. secondswhena"shell"commandhasbeengiven).
  83. 2.Anpulseoutputwillbegivenonthelowestbit(D0)of
  84. theparallelprinteroutputateachpassthroughthe
  85. programloop.Otheroutputscanbeselectedbyspeci⑨
  86. fyingadifferent3rdparameter.Avalueof00forthe
  87. 3rdparameterwilldisablethepulsesontheparallel
  88. output.
  89.  
  90. -MS-DOSsystems:
  91.  
  92.      watchdogxxxxx
  93.  
  94.  
  95. üExampleconfigurationfilesÇ
  96.  
  97. Below,theconfigurationfilesinuseatPI8NOS(asofJune1990)
  98. arelisted.Thesearereal-lifeconfigurationfiles,thathave
  99. beeninuseandhavebeenmaintainedfornearlyayear.
  100.  
  101. ThehardwareinuseatPI8NOSisanAtariMega-ST2,withan8-
  102. channelSCCinterfaceanda300baudmodemconnectedtotheAUX
  103. (RS232)port.
  104.  
  105. ----------------------------------------------------------------
  106. AUTOEXEC.NET
  107. ----------------------------------------------------------------
  108.  
  109. # NET configuration file for PI8NOS network station in Hilversum
  110. # uses special SCC interface board with 4 Z8530s installed
  111. # AUX (rs232) is used as a connection to an async modem for remote control
  112. Ç# MIDI is not used
  113. # Drive A: is a 720K floppy, drive G: is a 1MB RAMDisk
  114. #
  115. setenv NETDISK a:
  116. setenv RAMDISK g:
  117. #
  118. # define buffers for use by SCC driver
  119. memstat 100000
  120. buffers 64 2 128
  121. #
  122. # attach commands for SCC driver.  first init, then attach the channels.
  123. attach scc 4 init fffd00 8 3 7 -2 fffd3f 3 p4915200
  124. #                                               4 thru 7 are spare channels
  125. #attach scc 7 ax25 ax3  256 d4800 pi8nos-8
  126. #attach scc 6 ax25 ax2  256 d4800 pi8nos-7
  127. #attach scc 5 ax25 ax1  256 d4800 pi8nos-6
  128. #attach scc 4 ax25 ax0  256 d4800 pi8nos-5
  129. #                                               3 is west-link on 430.800
  130. attach scc 3 ax25 ln.w 256 d1200 pi8nos-4
  131. #                                               2 is south-link on 1299.900
  132. attach scc 2 ax25 ln.s 256 d1200 pi8nos-3
  133. #                                               1 is east-link on 1240.400/1299.400
  134. attach scc 1 ax25 ln.e 256 d1200 pi8nos-2
  135. #                                               0 is north-link on 1240.800
  136. attach scc 0 ax25 ln.n 256 d1200 pi8nos-1
  137. #
  138. # attach the NET/ROM interface & set the call to be used by NET/ROM level 3
  139. #
  140. attach netrom pi8nos
  141. #
  142. # filtering of unwanted AX.25 stations
  143. #
  144. ax25 exclude nocall
  145. ax25 exclude pi8nos
  146. #
  147. # setup some directories and files. RAMDisk is faster so transfer commonly
  148. # used files like HOSTS.NET to it. FTP public area is also on RAMDisk, and
  149. # is initialized with some of our configuration files.
  150. #
  151. cd ${NETDISK}\net
  152. mkdir -f ${RAMDISK}\tmp ${RAMDISK}\net ${RAMDISK}\net\mqueue ${RAMDISK}\public
  153. #
  154. copy $NETHOSTS ${RAMDISK}\net\hosts.net
  155. setenv NETHOSTS ${RAMDISK}\net\hosts.net
  156. #
  157. setenv TMPDIR ${RAMDISK}\tmp
  158. setenv TMP $TMPDIR
  159. del -f $TMPDIR\*.*
  160. #
  161. copy ${NETMAILQ}*.* ${RAMDISK}\net\mqueue
  162. del -f ${NETMAILQ}*.txt ${NETMAILQ}*.wrk ${NETMAILQ}*.lck
  163. setenv NETMAILQ ${RAMDISK}\net\mqueue\
  164. del -f ${NETMAILQ}*.lck
  165. #
  166. Çcopy ${NETDISK}\net\nr_info.txt ${RAMDISK}\net
  167. copy alias $NETHOSTS routes.net finger\*.txt ${RAMDISK}\public
  168. setenv ENVSTYLE
  169. setenv TIMEZONE MET:0
  170. shell =${NETDISK}\arc.ttp
  171. #
  172. # remainder of configuration
  173. #
  174. source config.net
  175. #
  176. # Addresses, IP routing table and ARP commands, Misc
  177. #
  178. hostname pi8nos.ampr.org
  179. ip address pi8nos
  180. source routes.net
  181. log ${NETDISK}\net\net.log startup
  182. log proc
  183. watchdog 120 600 1
  184. #
  185. # NET/ROM configuration. Filtering and routes are in NETROM.NET
  186. #
  187. netrom info ${RAMDISK}\net\nr_info.txt
  188. netrom interface ln.n "HVS" 224
  189. netrom interface ln.s "HVS" 224
  190. netrom interface ln.e "HVS" 220
  191. netrom interface ln.w "HVS" 192 lap
  192. netrom tcpip link "#TCPIP"
  193. source netrom.net
  194. netrom route save ${RAMDISK}\net\netrom.rts
  195. source ${RAMDISK}\net\netrom.rts
  196. #
  197. # KISS and AX25 stuff for each TNC connected
  198. #
  199. mheard ln.n 23
  200. mheard ln.s 23
  201. mheard ln.e 23
  202. mheard ln.w 23
  203. ax25 digipeat ln.n gate
  204. ax25 digipeat ln.s gate
  205. ax25 digipeat ln.e gate
  206. ax25 digipeat ln.w gate
  207. #ax25 persist ln.n 128 5 128 60 900
  208. #ax25 persist ln.s 128 5 128 60 900
  209. #ax25 persist ln.e 128 5 128 60 900
  210. ax25 persist ln.w 128 24 64 60 900
  211. #
  212. # AX25 ports.  1=TNC 2=NetDigi 3=MHEARD 4=Bridge
  213. #
  214. ax25 port 2 digi pi8nos-9  ln.n gate
  215. ax25 port 2 digi pi8nos-10 ln.e gate
  216. ax25 port 2 digi pi8nos-11 ln.s gate
  217. ax25 port 2 digi pi8nos-12 ln.w gate
  218. ax25 port 3 conn pi8nos-9  ln.n multi
  219. ax25 port 3 conn pi8nos-10 ln.e multi
  220. Çax25 port 3 conn pi8nos-11 ln.s multi
  221. ax25 port 3 conn pi8nos-12 ln.w multi
  222. ax25 port 4 conn pi8nos-15
  223. ax25 port 6 conn pi8nos-14
  224. #
  225. # SCC driver interface groups
  226. #
  227. param ln.n group 001
  228. param ln.s group 106
  229. param ln.e group 103
  230. param ln.w group 000
  231. #
  232. # initialize SCC driver on ln.n
  233. #
  234. param ln.n 2 128
  235. param ln.n 7 1
  236. param ln.n 8 15
  237. #
  238. # initialize SCC driver on ln.s
  239. #
  240. param ln.s 2 32
  241. param ln.s 7 100
  242. param ln.s 8 15
  243. #
  244. # initialize SCC driver on ln.e
  245. #
  246. param ln.e 1 50
  247. param ln.e 2 32
  248. param ln.e 7 100
  249. param ln.e 8 15
  250. #
  251. # initialize SCC driver on ln.w
  252. #
  253. param ln.w 2 32
  254. param ln.w 7 100
  255. param ln.w 8 15
  256. #
  257. # send the netrom nodes on startup
  258. #
  259. netrom bcnodes ln.n
  260. netrom bcnodes ln.s
  261. netrom bcnodes ln.e
  262. netrom bcnodes ln.w
  263. #
  264. # now we can safely start all servers
  265. #
  266. start discard
  267. start echo
  268. start finger
  269. start ftp
  270. start smtp
  271. source remote.net
  272. ax25 start bridge
  273. ax25 start mbox ${NETFINGER}network.txt
  274. Çax25 start mheard
  275. ax25 start netdigi
  276. #
  277. # commands to be run at specified time-of-day
  278. #
  279. at 00:00 source ${NETDISK}\net\at0000.net
  280. at 06:00 source ${NETDISK}\net\at0600.net
  281. at 12:00 source ${NETDISK}\net\at1200.net
  282. at18:00 source ${NETDISK}\net\at1800.net
  283. #
  284. # allow control from AUX port 300 baud / 8 bits / no flow control
  285. #
  286. auxcon 11 300 8 noflow
  287. #
  288. hostname
  289. ip address
  290.  
  291. ----------------------------------------------------------------
  292. CONFIG.NET
  293. ----------------------------------------------------------------
  294.  
  295. # remainder of configuration
  296. # SMTP options
  297. #
  298. #smtp gateway ...
  299. smtp maxclients 5
  300. smtp mode route
  301. smtp timer 4000 300
  302. #
  303. # Telnet options
  304. #
  305. echo refuse
  306. eol standard
  307. #
  308. # TCP parameters
  309. #
  310. tcp irtt 15000
  311. tcp mss 512
  312. tcp timeout 7200
  313. tcp window 432
  314. #
  315. # IP parameters
  316. #
  317. ip ttl 10
  318. #
  319. # ICMP parameters
  320. #
  321. ping length 0
  322. #
  323. # AX25 parameters
  324. #
  325. ax25 digipeat on
  326. ax25 maxframe 4
  327. ax25 maxsamml 7
  328. Çax25 paclen 256
  329. ax25 pthresh 64
  330. ax25 retry 10
  331. ax25 t1 15000
  332. ax25 t2 1500
  333. ax25 t3 1800000
  334. ax25 t4 900000
  335. ax25 window 2048
  336. #
  337. # NET/ROM parameters
  338. #
  339. netrom nodetimer 1800
  340. netrom obsotimer 1800
  341. netrom param 3 80 6 5 16 3 16 2
  342. netrom param 4 180 3 3 180 10 15 1800
  343. #
  344. # Misc settings
  345. #
  346. escape F10
  347. flow on
  348. screen direct
  349.  
  350. ----------------------------------------------------------------
  351. ROUTES.NET
  352. ----------------------------------------------------------------
  353.  
  354. # IP routing table for PI8NOS
  355. #
  356. # ARP statements for AX.25 stations
  357. #
  358. arp add pa3ayb          ax25:ln.s pa3ayb-7 pi8rni-1 pi8rni-7 pi8ayb-7
  359. arp add pa3azk          ax25:ln.s pa3azk-7 pi8rni-1 pi8rni-7
  360. arp add pa3fmc          ax25:ln.s pa3fmc-9 pi8rni-1 pi8rni-7
  361. arp add pe1dcy          ax25:ln.s pe1dcy-7 pi8rni-1 pi8rni-7
  362. arp add pe1krc          ax25:ln.s pe1krc-7 pi8rni-1 pi8rni-7
  363. #
  364. # ARP statements and ROUTES for NET/ROM stations
  365. #
  366. route add dd9qp         netrom
  367. arp   add dd9qp         netrom  dd9qp-9
  368. route add pa0mjr        netrom
  369. arp   add pa0mjr        netrom  pa0mjr-9
  370. route add pa0sgl        netrom
  371. arp   add pa0sgl        netrom  pa0sgl-9
  372. route add pa3bat        netrom
  373. arp   add pa3bat        netrom  pa3bat-9
  374. route add pa3bba        netrom
  375. arp   add pa3bba        netrom  pa3bba-7
  376. route add pa3bzt        netrom
  377. arp   add pa3bzt        netrom  pa3bzt-9
  378. route add pa3ecp-7      netrom
  379. arp   add pa3ecp-7      netrom  pa3ecp-7
  380. route add pa3fbg        netrom
  381. arp   add pa3fbg        netrom  pa3fbg-2
  382. Çroute add pe0mar        netrom
  383. arp   add pe0mar        netrom  pe0mar
  384. route add pe0mar-7      netrom
  385. arp   add pe0mar-7      netrom  pe0mar-3
  386. route add pe1ayx        netrom
  387. arp   add pe1ayx        netrom  pi8hrl-9
  388. route add pe1btv        netrom
  389. arp   add pe1btv        netrom  pe1btv-9
  390. route add pe1chl        netrom
  391. arp   add pe1chl        netrom  pe1chl-9
  392. route add pe1dna        netrom
  393. arp   add pe1dna        netrom  pe1dna-9
  394. route add pi8eae        netrom
  395. arp   add pi8eae        netrom  pi8eae-9
  396. route add pi8gtb        netrom
  397. arp   add pi8gtb        netrom  pi8gtb-7
  398. route add pi8mac        netrom
  399. arp   add pi8mac        netrom  pi8mac
  400. route add pi8mid        netrom
  401. arp   add pi8mid        netrom  pi8mid-7
  402. #
  403. # set direct route for nearby networks (no default, to get unreachable mesgs)
  404. #
  405. route add Holland/16    ln.w
  406. #
  407. # Exceptions to gateway routings
  408. #
  409. route add pa0ma         ln.w
  410. route add pa3ayb        ln.s
  411. route add pa3azk        ln.s
  412. route add pa3eae        ln.w
  413. route add pa3eoa        ln.w
  414. route add pa3fmc        ln.s
  415. route add pb0aaq        ln.w
  416. route add pe1dcy        ln.s
  417. route add pe1kaq        ln.w
  418. route add pe1krc        ln.s
  419. #
  420. # stations reachable via (their own private) gateways
  421. #
  422. route add pa2aga        via     pi8mac
  423. route add pa3cay        via     pa3fmc
  424. route add pa3ecp        via     pa3ecp-7
  425. route add pa3ein        via     pe1chl
  426. route add sys2.pe1chl   via     pe1chl
  427. #
  428. # some networks reachable via gateways
  429. #
  430. route add Germany/16    via     dd9qp
  431. route add PA_DRnet/22   via     pa0adc
  432. route add PA_FLnet/22   via     pe1kaq
  433. route add PA_FRnet/22   via     pa3dvg
  434. route add PA_GLnet/22   via     dd9qp
  435. route add PA_GRnet/22   via     pa3dvg
  436. Çroute add PA_LBnet/22   via     pe1ayx
  437. route add PA_NBOnet/22  via     pe1dna
  438. route add PA_NBWnet/22  via     pi8gtb
  439. route add PA_NH1net/22  via     pe1btv
  440. route add PA_NH2net/22  via     pa3fmc
  441. route add PA_OVnet1/22  via     pa3daz
  442. route add PA_UTnet/22   via     pe1chl
  443. route add PA_ZH1net/22  via     pa3ecp-7
  444. route add PA_ZH2net/22  via     pe0mar-7
  445. route add PA_ZLnet/22   via     pa3ecp-7
  446.  
  447. ----------------------------------------------------------------
  448. NETROM.NET
  449. ----------------------------------------------------------------
  450.  
  451. # NET/ROM routes and filters for PI8NOS
  452. # only the nodes in the list below are accepted for automatic route table
  453. # updates (NODES broadcasts).  this is controlled by the "mode accept".
  454. #
  455. netrom nodefilter mode accept
  456. #
  457. # SYSOP has access to all ports (in case of problems)
  458. #
  459. netrom nodefilter add pe1chl-9  ln.e
  460. netrom nodefilter add pe1chl-9  ln.n
  461. netrom nodefilter add pe1chl-9  ln.s
  462. netrom nodefilter add pe1chl-9  ln.w
  463. #
  464. netrom nodefilter add pa3dzi    ln.n
  465. netrom nodefilter add pa3dzi-1  ln.n
  466. netrom nodefilter add pa3dzi-3  ln.n
  467. netrom nodefilter add pa3ecp-7  ln.w
  468. netrom nodefilter add pi8eae    ln.w
  469. netrom nodefilter add pi8eae-9  ln.w
  470. netrom nodefilter add pi8esa-7  ln.w
  471. netrom nodefilter add pi8rni-1  ln.s
  472. netrom nodefilter add pi8vrz-1  ln.e
  473. #
  474. # a list of nodes never accepted in node broadcasts.  these are known to have
  475. # fixed nodelists and parameters set in such a way that connecting them from
  476. # here is impossible (they don't accept new nodes)
  477. #
  478. netrom exclude on1abt
  479. netrom exclude on1anr
  480. netrom exclude on1apd
  481. netrom exclude on1awb
  482. netrom exclude on1kgx
  483. netrom exclude on4awp
  484. netrom exclude on4cp
  485. netrom exclude on4hu
  486. netrom exclude on5pl
  487. netrom exclude on6nr
  488. netrom exclude on6or
  489. netrom exclude on6rm
  490. Çnetrom exclude on7an
  491. netrom exclude on7rc
  492.  
  493. ----------------------------------------------------------------
  494. REMOTE.NET
  495. ----------------------------------------------------------------
  496.  
  497. # commands to start remote-control servers
  498. # put in a separate file so that we don't have to send it every time
  499. # autoexec.net is updated (somebody could be monitoring us)
  500. #
  501. start rcmd 333 "dsfjkaewrqbefndscuwerfjasfvaaaaarughrueggdfv"
  502. start remote 3534
  503.  
  504. ----------------------------------------------------------------
  505. ONEXIT.NET
  506. ----------------------------------------------------------------
  507.  
  508. # this file will be executed on "exit" from NET
  509. #
  510. copy ${NETMAILQ}*.* ${NETDISK}\net\mqueue
  511. del ${NETMAILQ}*.*
  512. netrom route save
  513.  
  514. ----------------------------------------------------------------
  515. AT0000.NET
  516. ----------------------------------------------------------------
  517.  
  518. # commands executed each day at 00:00
  519. #
  520. copy ${RAMDISK}\net\mqueue\sequence.seq ${NETDISK}\net\mqueue
  521.  
  522. ----------------------------------------------------------------
  523. AT0600.NET
  524. ----------------------------------------------------------------
  525.  
  526. # commands executed each day at 06:00
  527. #
  528.  
  529. ----------------------------------------------------------------
  530. AT1200.NET
  531. ----------------------------------------------------------------
  532.  
  533. # commands executed each day at 12:00
  534. #
  535. copy ${RAMDISK}\net\mqueue\sequence.seq ${NETDISK}\net\mqueue
  536.  
  537. ----------------------------------------------------------------
  538. AT1800.NET
  539. ----------------------------------------------------------------
  540.  
  541. # commands executed each day at 18:00
  542. #
  543.  
  544. Ç
  545.  
  546.  
  547.  
  548.  
  549.  
  550. RobPE1CHL
  551.  
  552.