changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / sys/lib/dist/ndb/common

changeset 5096: 65abc13ef7a1
parent: e426cbc6663d
child: 79f7414f8b7b
author: cinap_lenrek@felloff.net
date: Sun, 14 Feb 2016 05:18:33 +0100
permissions: -rw-r--r--
description: adding experimental rcpu service

this is a reimplementation of cpu and import utilities in rc using a tlsclient
and tlssrv as the encryption and authentication layers. there is only one new
service, which after authentication and encryption setup accepts an arbitrary
rc script over the network and executes it with the standard filedescriptors
redirected to the conversaion (this is *after* authentication and in the
context of the authorized user).

the new rcpu program has a few improvements over cpu(1):

- doesnt mangle program arguments
- the remote process will get the clients standard file descriptors, so error
and output are separated and you can consume the clients input from the
remote side :-)
- forwards error status of remote process

theres no backwards mode for rimport, but a new program called rexport
for the same purpose.

all these services use exportfs without the bolted on initial handshake,
so the hope is to clean up exportfs in the future and remove all the ugly
crap in there.
1 #
2 # The master for this file is /n/fs/lib/ndb/common
3 #
4 
5 #
6 # real dns root server ips
7 #
8 dom=A.ROOT-SERVERS.NET ip=198.41.0.4
9 dom=B.ROOT-SERVERS.NET ip=192.228.79.201 # jan 2004
10 dom=C.ROOT-SERVERS.NET ip=192.33.4.12
11 dom=D.ROOT-SERVERS.NET ip=199.7.91.13
12 dom=E.ROOT-SERVERS.NET ip=192.203.230.10
13 dom=F.ROOT-SERVERS.NET ip=192.5.5.241
14 dom=G.ROOT-SERVERS.NET ip=192.112.36.4
15 dom=H.ROOT-SERVERS.NET ip=128.63.2.53
16 dom=I.ROOT-SERVERS.NET ip=192.36.148.17
17 dom=J.ROOT-SERVERS.NET ip=192.58.128.30 # nov 2002
18 dom=K.ROOT-SERVERS.NET ip=193.0.14.129
19 dom=L.ROOT-SERVERS.NET ip=199.7.83.42 # nov 2007
20 dom=M.ROOT-SERVERS.NET ip=202.12.27.33
21 
22 dom=A.ROOT-SERVERS.NET ip=2001:503:ba3e::2:30
23 dom=B.ROOT-SERVERS.NET ip=2001:478:65::53
24 dom=D.ROOT-SERVERS.NET ip=2001:500:2d::d
25 dom=F.ROOT-SERVERS.NET ip=2001:500:2f::f
26 dom=H.ROOT-SERVERS.NET ip=2001:500:1::803f:235
27 dom=I.ROOT-SERVERS.NET ip=2001:7fe::53
28 dom=J.ROOT-SERVERS.NET ip=2001:503:c27::2:30
29 dom=K.ROOT-SERVERS.NET ip=2001:7fd::1
30 dom=L.ROOT-SERVERS.NET ip=2001:500:3::42
31 dom=M.ROOT-SERVERS.NET ip=2001:dc3::35
32 
33 dom=a.gtld-servers.net ip=192.5.6.30
34 dom=b.gtld-servers.net ip=192.33.14.30
35 dom=c.gtld-servers.net ip=192.26.92.30
36 dom=d.gtld-servers.net ip=192.31.80.30
37 dom=e.gtld-servers.net ip=192.12.94.30
38 dom=f.gtld-servers.net ip=192.35.51.30
39 dom=g.gtld-servers.net ip=192.42.93.30
40 dom=h.gtld-servers.net ip=192.54.112.30
41 dom=i.gtld-servers.net ip=192.43.172.30
42 dom=j.gtld-servers.net ip=192.48.79.30
43 dom=k.gtld-servers.net ip=192.52.178.30
44 dom=l.gtld-servers.net ip=192.41.162.30
45 dom=m.gtld-servers.net ip=192.55.83.30
46 
47 dom=a.gtld-servers.net ip=2001:503:a83e::2:30
48 dom=b.gtld-servers.net ip=2001:503:231d::2:30
49 
50 #
51 # spam defense. unfortunately, arin doesn't give negative
52 # rcodes for these non-routable addresses. we'll do it for them.
53 #
54 dom=10.in-addr.arpa soa= # rfc1918 zones
55  dom=16.172.in-addr.arpa soa=
56  dom=17.172.in-addr.arpa soa=
57  dom=18.172.in-addr.arpa soa=
58  dom=19.172.in-addr.arpa soa=
59  dom=20.172.in-addr.arpa soa=
60  dom=21.172.in-addr.arpa soa=
61  dom=22.172.in-addr.arpa soa=
62  dom=23.172.in-addr.arpa soa=
63  dom=24.172.in-addr.arpa soa=
64  dom=25.172.in-addr.arpa soa=
65  dom=26.172.in-addr.arpa soa=
66  dom=27.172.in-addr.arpa soa=
67  dom=28.172.in-addr.arpa soa=
68  dom=29.172.in-addr.arpa soa=
69  dom=30.172.in-addr.arpa soa=
70  dom=31.172.in-addr.arpa soa=
71  dom=168.192.in-addr.arpa soa=
72  dom=0.in-addr.arpa soa= # rfc3330 zones
73  dom=127.in-addr.arpa soa=
74  dom=254.169.in-addr.arpa soa=
75  dom=2.0.192.in-addr.arpa soa=
76  dom=255.255.255.255.in-addr.arpa soa=
77  dom=d.f.ip6.arpa soa= # rfc4193 recommendation
78  dom=0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa soa= # rfc4291 zones
79  dom=1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa soa=
80  dom=8.e.f.ip6.arpa soa=
81  dom=9.e.f.ip6.arpa soa=
82  dom=a.e.f.ip6.arpa soa=
83  dom=b.e.f.ip6.arpa soa=
84  refresh=86400 ttl=86400
85  ns=a.root-servers.net
86  ns=j.root-servers.net
87 
88 #
89 # ip protocol numbers
90 #
91 protocol=reserved ipv4proto=0
92 protocol=icmp ipv4proto=1
93 protocol=igmp ipv4proto=2
94 protocol=ggp ipv4proto=3
95 protocol=ip ipv4proto=4
96 protocol=st ipv4proto=5
97 protocol=tcp ipv4proto=6
98 protocol=ucl ipv4proto=7
99 protocol=egp ipv4proto=8
100 protocol=igp ipv4proto=9
101 protocol=bbn-rcc-mon ipv4proto=10
102 protocol=nvp-ii ipv4proto=11
103 protocol=pup ipv4proto=12
104 protocol=argus ipv4proto=13
105 protocol=emcon ipv4proto=14
106 protocol=xnet ipv4proto=15
107 protocol=chaos ipv4proto=16
108 protocol=udp ipv4proto=17
109 protocol=mux ipv4proto=18
110 protocol=dcn-meas ipv4proto=19
111 protocol=hmp ipv4proto=20
112 protocol=prm ipv4proto=21
113 protocol=xns-idp ipv4proto=22
114 protocol=trunk-1 ipv4proto=23
115 protocol=trunk-2 ipv4proto=24
116 protocol=leaf-1 ipv4proto=25
117 protocol=leaf-2 ipv4proto=26
118 protocol=rdp ipv4proto=27
119 protocol=irtp ipv4proto=28
120 protocol=iso-tp4 ipv4proto=29
121 protocol=netblt ipv4proto=30
122 protocol=mfe-nsp ipv4proto=31
123 protocol=merit-inp ipv4proto=32
124 protocol=sep ipv4proto=33
125 protocol=3pc ipv4proto=34
126 protocol=idpr ipv4proto=35
127 protocol=xtp ipv4proto=36
128 protocol=ddp ipv4proto=37
129 protocol=idpr-cmtp ipv4proto=38
130 protocol=tp++ ipv4proto=39
131 protocol=il ipv4proto=40
132 protocol=sip ipv4proto=41
133 protocol=sdrp ipv4proto=42
134 protocol=sip-sr ipv4proto=43
135 protocol=sip-frag ipv4proto=44
136 protocol=idrp ipv4proto=45
137 protocol=rsvp ipv4proto=46
138 protocol=gre ipv4proto=47
139 protocol=mhrp ipv4proto=48
140 protocol=bna ipv4proto=49
141 protocol=sipp-esp ipv4proto=50
142 protocol=sipp-ah ipv4proto=51
143 protocol=i-nlsp ipv4proto=52
144 protocol=swipe ipv4proto=53
145 protocol=nhrp ipv4proto=54
146 protocol=ipv6-icmp ipv4proto=58
147 protocol=ipv6-nonxt ipv4proto=59
148 protocol=ipv6-opts ipv4proto=60
149 protocol=any ipv4proto=61
150 protocol=cftp ipv4proto=62
151 protocol=any ipv4proto=63
152 protocol=sat-expak ipv4proto=64
153 protocol=kryptolan ipv4proto=65
154 protocol=rvd ipv4proto=66
155 protocol=ippc ipv4proto=67
156 protocol=any ipv4proto=68
157 protocol=sat-mon ipv4proto=69
158 protocol=visa ipv4proto=70
159 protocol=ipcv ipv4proto=71
160 protocol=cpnx ipv4proto=72
161 protocol=cphb ipv4proto=73
162 protocol=wsn ipv4proto=74
163 protocol=pvp ipv4proto=75
164 protocol=br-sat-mon ipv4proto=76
165 protocol=sun-nd ipv4proto=77
166 protocol=wb-mon ipv4proto=78
167 protocol=wb-expak ipv4proto=79
168 protocol=iso-ip ipv4proto=80
169 protocol=vmtp ipv4proto=81
170 protocol=secure-vmtp ipv4proto=82
171 protocol=vines ipv4proto=83
172 protocol=ttp ipv4proto=84
173 protocol=nsfnet-igp ipv4proto=85
174 protocol=dgp ipv4proto=86
175 protocol=tcf ipv4proto=87
176 protocol=igrp ipv4proto=88
177 protocol=ospfigp ipv4proto=89 protocol=ospf
178 protocol=sprite-rpc ipv4proto=90
179 protocol=larp ipv4proto=91
180 protocol=mtp ipv4proto=92
181 protocol=ax.25 ipv4proto=93
182 protocol=ipip ipv4proto=94
183 protocol=micp ipv4proto=95
184 protocol=scc-sp ipv4proto=96
185 protocol=etherip ipv4proto=97
186 protocol=encap ipv4proto=98
187 protocol=any ipv4proto=99
188 protocol=gmtp ipv4proto=100
189 protocol=rudp ipv4proto=254 # unofficial
190 
191 #
192 # services
193 #
194 tcp=cs port=1
195 tcp=echo port=7
196 tcp=discard port=9
197 tcp=systat port=11
198 tcp=daytime port=13
199 tcp=netstat port=15
200 tcp=chargen port=19
201 tcp=ftp-data port=20
202 tcp=ftp port=21
203 tcp=ssh port=22
204 tcp=telnet port=23
205 tcp=smtp port=25
206 tcp=time port=37
207 tcp=whois port=43
208 tcp=dns port=53
209 tcp=domain port=53
210 tcp=uucp port=64
211 tcp=gopher port=70
212 tcp=rje port=77
213 tcp=finger port=79
214 tcp=http port=80
215 tcp=link port=87
216 tcp=supdup port=95
217 tcp=hostnames port=101
218 tcp=iso-tsap port=102
219 tcp=x400 port=103
220 tcp=x400-snd port=104
221 tcp=csnet-ns port=105
222 tcp=pop-2 port=109
223 tcp=pop3 port=110
224 tcp=portmap port=111
225 tcp=uucp-path port=117
226 tcp=nntp port=119
227 tcp=netbios port=139
228 tcp=imap4 port=143
229 tcp=imap port=143
230 tcp=NeWS port=144
231 tcp=print-srv port=170
232 tcp=z39.50 port=210
233 tcp=ldap port=389
234 tcp=fsb port=400
235 tcp=sysmon port=401
236 tcp=proxy port=402
237 tcp=proxyd port=404
238 tcp=https port=443
239 tcp=cifs port=445
240 tcp=ssmtp port=465
241 tcp=rexec port=512 restricted=
242 tcp=login port=513 restricted=
243 tcp=shell port=514 restricted=
244 tcp=printer port=515
245 tcp=ncp port=524
246 tcp=courier port=530
247 tcp=cscan port=531
248 tcp=uucp port=540
249 tcp=snntp port=563
250 tcp=9fs port=564
251 tcp=whoami port=565
252 tcp=guard port=566
253 tcp=ticket port=567
254 tcp=ldaps port=636
255 tcp=fmclient port=729
256 tcp=ftps-data port=989
257 tcp=ftps port=990
258 tcp=imaps port=993
259 tcp=pop3s port=995
260 tcp=ingreslock port=1524
261 tcp=pptp port=1723
262 tcp=nfs port=2049
263 tcp=webster port=2627
264 tcp=weather port=3000
265 tcp=mysql port=3306
266 tcp=sip port=5060
267 tcp=sips port=5061
268 tcp=ttcp port=5117
269 tcp=secstore port=5356
270 tcp=vnc-http port=5800
271 tcp=vnc port=5900
272 tcp=Xdisplay port=6000
273 tcp=styx port=6666
274 tcp=mpeg port=6667
275 tcp=rstyx port=6668
276 tcp=infdb port=6669
277 tcp=infsigner port=6671
278 tcp=infcsigner port=6672
279 tcp=inflogin port=6673
280 tcp=bandt port=7330
281 tcp=face port=32000
282 tcp=dhashgate port=11978
283 tcp=exportfs port=17007
284 tcp=rexexec port=17009
285 tcp=ncpu port=17010
286 tcp=cpu port=17013
287 tcp=rcpu port=17019
288 tcp=glenglenda1 port=17020
289 tcp=glenglenda2 port=17021
290 tcp=glenglenda3 port=17022
291 tcp=glenglenda4 port=17023
292 tcp=glenglenda5 port=17024
293 tcp=glenglenda6 port=17025
294 tcp=glenglenda7 port=17026
295 tcp=glenglenda8 port=17027
296 tcp=glenglenda9 port=17028
297 tcp=glenglenda10 port=17029
298 tcp=nupasimap port=17030
299 tcp=nupasimaps port=17031
300 tcp=flyboy port=17032
301 tcp=venti port=17034
302 tcp=wiki port=17035
303 tcp=vica port=17036
304 tcp=aan port=17037
305 
306 
307 # testing
308 tcp=9fsa port=18008
309 
310 il=echo port=7
311 il=discard port=9
312 il=chargen port=19
313 il=whoami port=565
314 il=ticket port=566
315 il=challbox port=567
316 il=ocpu port=17005
317 il=ocpunote port=17006
318 il=exportfs port=17007
319 il=9fs port=17008
320 il=rexexec port=17009
321 il=ncpu port=17010
322 il=ncpunote port=17011
323 il=tcpu port=17012
324 il=cpu port=17013
325 il=fsauth port=17020
326 il=rexauth port=17021
327 il=changekey port=17022
328 il=chal port=17023
329 il=check port=17024
330 il=juke port=17026
331 il=video port=17028
332 il=vgen port=17029
333 il=alefnslook port=17030
334 il=ramfs port=17031
335 
336 udp=echo port=7
337 udp=tacacs port=49
338 udp=bootps port=67
339 udp=tftp port=69
340 udp=bootpc port=68
341 udp=bootp port=67
342 udp=domain port=53
343 udp=dns port=53
344 udp=portmap port=111
345 udp=ntp port=123
346 udp=netbios-ns port=137
347 udp=snmp port=161
348 udp=ha port=434 # mobile ip home agent
349 udp=ikev2 port=500
350 udp=syslog port=514
351 udp=rip port=520
352 udp=dhcp6c port=546
353 udp=dhcp6s port=547
354 udp=nfs port=2049
355 udp=bfs port=2201
356 udp=virgil port=2202
357 udp=sip port=5060
358 udp=bandt2 port=7331 # viaducts
359 udp=oradius port=1812
360 udp=radius port=1812
361 udp=dhash port=11977
362 udp=ulctl port=12666
363 udp=uldata port=12667
364 udp=dldata port=12668
365 
366 gre=ppp port=34827
367 
368 #
369 # authdom declarations need to be visible on the inside network,
370 # even for outside machines. putting them here ensures
371 # their visibility everywhere.
372 #
373 
374 # for geoff
375 auth=www.9netics.com authdom=9netics.com
376 auth=newcpu.9netics.net authdom=9netics.net
377 auth=mordor.tip9ug.jp authdom=tip9ug.jp
378 
379 # for geoff's ipv6 testing
380 auth=9grid.hamnavoe.com
381  authdom=hamnavoe.com
382  authdom=9grid.hamnavoe.com
383 
384 auth=whale.lsub.org
385  authdom=lsub.org
386  authdom=dat.escet.urjc.es
387 
388 # for jmk
389 auth=tor.texas.9grid.us authdom=9grid.us
390 auth=9grid.net authdom=9grid.net
391 
392 # for sape
393 auth=130.89.145.31 authdom=cs.utwente.nl
394 
395 # for sl
396 auth=auth.stanleylieber.com authdom=inri
397 auth=mars2.inri.net authdom=mars2
398 auth=cb.inri.net authdom=nyc