Changeset 10053 in genesis
- Timestamp:
- Mar 7, 2012, 10:08:06 PM (13 years ago)
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/CNodeAJSoft1/wleiden.conf
r10047 r10053 75 75 ESSID=il-zw.rv.wleiden.net 76 76 CHANNEL=4 77 Bullet2_MAC=00:15:6D:E8:F9:B178 Bullet2_IP=172.16.4.67/2977 NS_MAC=00:15:6D:E8:F9:B1 78 NS_IP=172.16.4.67/29 79 79 UE0 -
nodes/CNodeAJSoft2/wleiden.conf
r10047 r10053 74 74 ESSID=il-nno.ajsoft2.wleiden.net 75 75 CHANNEL=8 76 Bullet2_MAC=00:15:6D:E8:F9:C677 Bullet2_IP=172.16.6.50/2976 NS_MAC=00:15:6D:E8:F9:C6 77 NS_IP=172.16.6.50/29 78 78 UE0 -
nodes/CNodeBCSte/wleiden.conf
r10047 r10053 44 44 ESSID=il-nw.bcste.wleiden.net 45 45 CHANNEL=1 46 BulletMAC= 00:15:6D:E8:E6:9F47 BulletIP=172.16.3.250/2946 NS_MAC= 00:15:6D:E8:E6:9F 47 NS_IP=172.16.3.250/29 48 48 VR1 49 49 -
nodes/CNodeCam/wleiden.conf
r10047 r10053 41 41 MODE=bridge station 42 42 ESSID=n-o.unigor.wleiden.net 43 Bullet2_IP=172.16.16.131/2944 N ullet2_MAC=00:15:6D:E9:E7:6043 NS_IP=172.16.16.131/29 44 NS_MAC=00:15:6D:E9:E7:60 45 45 CHANNEL=7 46 46 VR1 -
nodes/CNodeGrip/wleiden.conf
r10048 r10053 48 48 CHANNEL=52 49 49 DHCP=no 50 Bullet2_IP=192.168.1.20/2451 Bullet2_MAC=00:15:6D:AD:34:3550 NS_IP=192.168.1.20/24 51 NS_MAC=00:15:6D:AD:34:35 52 52 VR1 53 53 … … 64 64 CHANNEL=8 65 65 DHCP=no 66 Bullet2_IP=192.168.1.20/2467 Bullet2_MAC=00:15:6D:30:29:6B66 NS_IP=192.168.1.20/24 67 NS_MAC=00:15:6D:30:29:6B 68 68 VR2 69 69 -
nodes/CNodeHofwijck/wleiden.conf
r10047 r10053 42 42 ESSID=il-w.hofwijck.wleiden.net 43 43 CHANNEL=3 44 Bullet_IP=172.16.6.2645 BulletMAC=00:15:6D:E8:E7:3744 NS_IP=172.16.6.26 45 NS_MAC=00:15:6D:E8:E7:37 46 46 VR0 47 47 -
nodes/CNodeHoutmarkt/wleiden.conf
r10047 r10053 75 75 DHCP=140-190 76 76 CHANNEL=8 77 BulletIP=172.19.8.13078 BulletMAC=00:15:6D:30:28:4E77 NS_IP=172.19.8.130 78 NS_MAC=00:15:6D:30:28:4E 79 79 VR2 80 80 -
nodes/CNodeHuub/wleiden.conf
r10047 r10053 89 89 SDESC=2ap2 90 90 DHCP=140-180 91 BULLET2_IP=172.17.16.130/2692 BULLET2_MAC= 00:15:6D:D4:F8:2491 NS_IP=172.17.16.130/26 92 NS_MAC= 00:15:6D:D4:F8:24 93 93 SIS4 -
nodes/CNodeIMI/wleiden.conf
r10047 r10053 66 66 ESSID=il-zo.imi.wleiden.net 67 67 CHANNEL=4 68 Bullet2_MAC=00:15:6D:E8:F9:DE69 Bullet2_IP=172.16.5.250/2968 NS_MAC=00:15:6D:E8:F9:DE 69 NS_IP=172.16.5.250/29 70 70 VR2 71 71 … … 95 95 SDESC=2lvlz 96 96 DHCP=no 97 Bullet2_MAC=00:15:6D:E8:F9:B898 Bullet2_IP=172.16.5.2/2997 NS_MAC=00:15:6D:E8:F9:B8 98 NS_IP=172.16.5.2/29 99 99 UE1 100 100 -
nodes/CNodeLCPL/wleiden.conf
r10048 r10053 12 12 $Y='462483'; 13 13 14 $LOKATIE='Roseveltstraat 4c, Leiden';15 14 16 15 $config{'sis0'}=sprintf <<ED0; -
nodes/CNodeLangeVoort/wleiden.conf
r10047 r10053 41 41 CHANNEL=3 42 42 DHCP=no 43 BulletIP=172.16.6.2744 BulletMAC=00:15:6D:D5:F8:3643 NS_IP=172.16.6.27 44 NS_MAC=00:15:6D:D5:F8:36 45 45 VR1 46 46 … … 54 54 ESSID=il-o.lijtweg1.wleiden.net 55 55 DHCP=no 56 BulletIP=172.16.6.357 BulletMAC=00:15:6D:E9:F9:BD56 NS_IP=172.16.6.3 57 NS_MAC=00:15:6D:E9:F9:BD 58 58 VR2 59 59 -
nodes/CNodeLijtweg1/wleiden.conf
r10047 r10053 33 33 ESSID=il-o.lijtweg1.wleiden.net 34 34 CHANNEL=2 35 BulletIP=172.16.6.236 BulletMAC=00:15:6D:E9:E7:2035 NS_IP=172.16.6.2 36 NS_MAC=00:15:6D:E9:E7:20 37 37 UE0 38 38 -
nodes/CNodeLorentzhof/wleiden.conf
r10048 r10053 12 12 $Y='463030'; 13 13 14 $LOKATIE='Lorentzhof 1, 2313 GA, Leiden';15 14 16 15 $config{'sis0'}=sprintf <<ED0; -
nodes/CNodeMeerburg/wleiden.conf
r10047 r10053 8 8 $Y='461984'; 9 9 $status='down'; 10 11 $COMMENT=sprintf <<EOF; 12 ue0: Twee accesspoints 13 CHANNEL=3 14 NS_MAC=00:27:22:16:77:77 15 NS_IP=172.17.27.2/24 16 CHANNEL=8 17 NS_MAC=00:15:6D:30:D2:B6 18 NS_IP=172.17.27.3/24 19 EOF 10 20 11 21 $config{'ath0'}=sprintf <<ATH0; … … 81 91 MODE=ap bridge 82 92 ESSID=ap-WirelessLeiden-Meerburg 83 CHANNEL=384 NS2_MAC=00:27:22:16:77:7785 NS2_IP=172.17.27.2/2486 CHANNEL=887 NS2_MAC=00:15:6D:30:D2:B688 NS2_IP=172.17.27.3/2489 93 UE0 90 94 -
nodes/CNodeMuiderkring/wleiden.conf
r10047 r10053 44 44 CHANNEL=8 45 45 DHCP=no 46 Bullet2_MAC=00:15:6D:E8:E6:B147 Bullet2_IP=172.16.6.51/2946 NS_MAC=00:15:6D:E8:E6:B1 47 NS_IP=172.16.6.51/29 48 48 VR1 -
nodes/CNodeRV/wleiden.conf
r10047 r10053 75 75 CHANNEL=4 76 76 DHCP=no 77 BulletMAC=00:15:6D:E9:F9:B078 BulletIP=172.16.4.66/2977 NS_MAC=00:15:6D:E9:F9:B0 78 NS_IP=172.16.4.66/29 79 79 UE0 80 80 -
nodes/CNodeRabo1/wleiden.conf
r10047 r10053 37 37 STATUS=up 38 38 EXTRA_TYPE=eth2wifibridge 39 SUBTYPE=802.11a40 39 IP=172.16.4.9/29 41 40 DESC=Link naar Huub … … 77 76 ESSID=il-w.rabo1.wleiden.net 78 77 CHANNEL=5 79 Bullet_IP=172.16.3.130/2980 BulletMAC=00:15:6D:E8:F9:5E78 NS_IP=172.16.3.130/29 79 NS_MAC=00:15:6D:E8:F9:5E 81 80 UE0 82 81 … … 93 92 ESSID=il-n.rabo1.wleiden.net 94 93 CHANNEL=13 95 Bullet_IP=172.16.5.210/2996 BulletMAC=00:15:6D:D4:F8:3E94 NS_IP=172.16.5.210/29 95 NS_MAC=00:15:6D:D4:F8:3E 97 96 UE1 -
nodes/CNodeRabo2/wleiden.conf
r10047 r10053 37 37 STATUS=up 38 38 EXTRA_TYPE=eth2wifibridge 39 SUBTYPE=802.11a40 39 IP=172.16.3.193/29 41 40 DESC=Link naar Cope -
nodes/CNodeRegenboog/wleiden.conf
r10047 r10053 43 43 ESSID=il-o.rosmolen.wleiden.net 44 44 CHANNEL=11 45 BulletMAC=45 NS_MAC= 46 46 SIS1 47 47 -
nodes/CNodeRosmolen/wleiden.conf
r10047 r10053 67 67 ESSID=il-o.rosmolen.wleiden.net 68 68 CHANNEL=11 69 Bullet_MAC= 00:15:6D:E8:F9:3D70 Bullet_IP=172.16.5.202/2969 NS_MAC= 00:15:6D:E8:F9:3D 70 NS_IP=172.16.5.202/29 71 71 VR2 72 72 … … 94 94 ESSID=il-nw.rosmolen.wleiden.net 95 95 CHANNEL=3 96 BulletMAC=00:15:6D:97 Bullet_IP=172.16.3.74/2996 NS_MAC=00:15:6D: 97 NS_IP=172.16.3.74/29 98 98 UE1 99 99 -
nodes/CNodeSOM2/wleiden.conf
r10047 r10053 97 97 ESSID=ap-WirelessLeiden-SOM3 98 98 CHANNEL=6 99 Bullet2_MAC= 00:15:6D:E8:F9:B6100 Bullet2_IP=172.17.2.66/2699 NS_MAC= 00:15:6D:E8:F9:B6 100 NS_IP=172.17.2.66/26 101 101 UE0 102 102 -
nodes/CNodeStadhuis/wleiden.conf
r10047 r10053 23 23 ESSID=ap-WirelessLeiden-atrium 24 24 NS_IP=172.17.141.2/26 25 NS 2loco_MAC=00:15:6D:FC:4D:C025 NS_MAC=00:15:6D:FC:4D:C0 26 26 UE0 27 27 -
nodes/CNodeUniGor2/wleiden.conf
r10047 r10053 39 39 SDESC=2cam 40 40 DHCP=no 41 Bullet2_IP=172.16.16.130/2942 Bullet2_MAC= 00:15:6D:E8:E6:9B41 NS_IP=172.16.16.130/29 42 NS_MAC= 00:15:6D:E8:E6:9B 43 43 MODE=bridge master 44 44 ESSID=n-o.unigor.wleiden.net -
nodes/CNodeVosko1/wleiden.conf
r10047 r10053 69 69 DESC=Ethernet naar Pieterskerk 70 70 SDESC=2kerk 71 NS 2_LOCO_IP=172.17.26.271 NS_IP=172.17.26.2 72 72 DHCP=10-250 73 73 VR2 -
nodes/CNodeVosko3/wleiden.conf
r10047 r10053 104 104 STATUS=up 105 105 DHCP=no 106 USB-LAN-adapterMAC=00:00:e8:00:11:36107 106 UE0 -
nodes/CNodeWBRotary/wleiden.conf
r10047 r10053 33 33 ESSID=il-w.wbrotary.wleiden.net 34 34 CHANNEL=36 35 BulletM5_MAC=00:27:22:10:34:C636 BulletM5_IP=172.16.18.42/2935 NS_MAC=00:27:22:10:34:C6 36 NS_IP=172.16.18.42/29 37 37 VR0 38 38 … … 63 63 MODE=master 64 64 ESSID=ap-Woubrugge-RotaryWO 65 BULLET2_IP=172.25.56.266 BULLET2_MAC=00:15:6D:30:2A:5D65 NS_IP=172.25.56.2 66 NS_MAC=00:15:6D:30:2A:5D 67 67 CHANNEL=3 68 68 VR2 -
nodes/CNodeZwaluwak/wleiden.conf
r10047 r10053 43 43 SDESC=2unused 44 44 DHCP=no 45 Bullet2_IP=172.16.6.74/2946 Bullet2_MAC=00:15:6D:E8:E7:4A45 NS_IP=172.16.6.74/29 46 NS_MAC=00:15:6D:E8:E7:4A 47 47 MODE=managed 48 48 ESSID=effeniks … … 58 58 DESC=Link naar BCsSte 59 59 SDESC=2bcste 60 Bullet_IP=172.16.3.252/2961 BulletMAC=00:15:6D:E8:E6:A360 NS_IP=172.16.3.252/29 61 NS_MAC=00:15:6D:E8:E6:A3 62 62 MODE=managed 63 63 ESSID=il-nw.bcste.wleiden.net … … 69 69 STATUS=up 70 70 EXTRA_TYPE=eth2wifibridge 71 SUBTYPE=802.11a72 71 IP=172.16.3.70/30 73 72 DESC=A Link naar Unigor 74 73 SDESC=2unigor 75 74 DHCP=no 76 AIRLIVE_IP=192.168.1.2175 NS_IP=192.168.1.21 77 76 MODE=managed 78 77 ESSID=ilA-z.unigor.wleiden.net -
nodes/proxy1/wleiden.conf
r10047 r10053 15 15 $nat='no'; 16 16 17 $firewall_block=<<EOT; 18 74.125.79.99/32 19 83.162.36.0/24 20 EOT 17 $firewall_block='74.125.79.99/32 83.162.36.0/24'; 21 18 22 19 $config{'sis0'}=sprintf <<SIS0; -
nodes/proxy11/wleiden.conf
r10047 r10053 18 18 TYPE=ethernet 19 19 IP=$master_ip/30 20 ROUTE=172.16.0.0/12 172.23.25.6521 20 22 21 DESC=Link naar Node LangeVoort … … 29 28 TYPE=ethernet 30 29 IP=192.168.1.70/24 31 ROUTE=0.0.0.0/0 192.168.1.6932 30 33 31 DESC=adsl langevoort -
tools/genesis-to-yaml.pl
r10050 r10053 80 80 } else { 81 81 print "ileiden : no\n"; 82 } 83 84 foreach $key ('internalif', 'nat', 'internalroute', 'remote_access', 'gateway', 'firewall_block') { 85 if ($$key) { 86 print "$key: $$key\n"; 87 } 82 88 } 83 89 -
tools/gformat.py
r10052 r10053 277 277 output += "tproxy_enable='NO'\n" 278 278 279 # Extra Proxy configuration 280 if datadump['nodetype'] == 'Proxy': 281 output += '\n# Disable routing\ngateway_enable="no"\n' 282 283 output += '\ninternalif="%s"\n' % datadump['internalif'] 284 279 285 output += '\n' 280 286 # lo0 configuration: … … 366 372 datadump = yaml.load(f,Loader=Loader) 367 373 datadump['autogen_iface_keys'] = get_interface_keys(datadump) 374 datadump['autogen_item'] = item 368 375 f.close() 369 376 … … 372 379 def store_yaml(datadump): 373 380 """ Store configuration yaml for 'item'""" 381 item = datadump['autogen_item'] 374 382 gfile = os.path.join(NODE_DIR,item,'wleiden.yaml') 375 383 376 384 f = open(gfile, 'w') 377 del datadump['autogen_iface_keys']378 385 f.write(generate_wleiden_yaml(datadump)) 379 386 f.close() … … 412 419 413 420 414 def write_yaml(item, datadump):415 """ Write configuration yaml for 'item'"""416 gfile = os.path.join(NODE_DIR,item,'wleiden.yaml')417 418 f = open(gfile, 'w')419 f.write(format_wleiden_yaml(datadump))420 f.close()421 422 423 424 421 def generate_resolv_conf(datadump): 425 422 """ Generate configuration file '/etc/resolv.conf' """ … … 429 426 # Try local (cache) first 430 427 nameserver 127.0.0.1 431 428 """ 429 if datadump['nodetype'] == 'Proxy': 430 output += """\ 431 nameserver 8.8.8.8 # Google Public NameServer 432 nameserver 8.8.4.4 # Google Public NameServer 433 """ 434 else: 435 output += """\ 432 436 # Proxies are recursive nameservers 433 437 # needs to be in resolv.conf for dnsmasq as well 434 438 """ % datadump 435 436 for proxy in get_proxylist():437 proxy_ip = get_yaml(proxy)['masterip']438 output += "nameserver %-15s # %s\n" % (proxy_ip, proxy) 439 for proxy in get_proxylist(): 440 proxy_ip = get_yaml(proxy)['masterip'] 441 output += "nameserver %-15s # %s\n" % (proxy_ip, proxy) 442 439 443 return output 440 444 … … 478 482 def generate_wleiden_yaml(datadump): 479 483 """ Generate (petty) version of wleiden.yaml""" 484 for key in datadump.keys(): 485 if key.startswith('autogen_'): 486 del datadump[key] 487 480 488 output = generate_header("#") 481 489 output += format_wleiden_yaml(datadump) … … 843 851 datadumps[get_fqdn(datadump)] = datadump 844 852 853 for key,datadump in datadumps.iteritems(): 845 854 datadump['latitude'], datadump['longitude'] = rdnap.rd2etrs(datadump['rdnap_x'], datadump['rdnap_y']) 846 write_yaml(host,datadump)855 store_yaml(datadump) 847 856 elif sys.argv[1] == "list": 848 857 if sys.argv[2] == "nodes":
Note:
See TracChangeset
for help on using the changeset viewer.