| 319 | ==== Results of testing: 2012-05-10 ==== |
| 320 | |
| 321 | Chaos's testing under Mac OS X 10.6.8: |
| 322 | * One-time setup: |
| 323 | {{{ |
| 324 | sudo port install openvpn2 |
| 325 | sudo port install tuntaposx |
| 326 | |
| 327 | mkdir -p ~/tmp/exogeni-vpn |
| 328 | cd ~/tmp/exogeni-vpn |
| 329 | unzip ~/bbnadmins.zip |
| 330 | |
| 331 | cd bbnadmins |
| 332 | chmod 600 bbnadmins.key |
| 333 | }}} |
| 334 | * One-time: use RENCI's DNS to look up the IPs we need to put into /etc/hosts (either do this from an SSH session on bbn-hn, or after connecting via VPN once): |
| 335 | {{{ |
| 336 | $ host bbn-w1.bbn.xo 192.168.100.2 |
| 337 | Using domain server: |
| 338 | Name: 192.168.100.2 |
| 339 | Address: 192.168.100.2#53 |
| 340 | Aliases: |
| 341 | |
| 342 | bbn-w1.bbn.xo has address 192.168.103.101 |
| 343 | }}} |
| 344 | and use this to create the file: |
| 345 | {{{ |
| 346 | $ cat bbn.xo-hosts.txt |
| 347 | |
| 348 | # Static host entries for use with bbn.xo |
| 349 | 192.168.103.100 bbn-hn.bbn.xo |
| 350 | 192.168.103.101 bbn-w1.bbn.xo |
| 351 | 192.168.103.102 bbn-w2.bbn.xo |
| 352 | 192.168.103.103 bbn-w3.bbn.xo |
| 353 | 192.168.103.104 bbn-w4.bbn.xo |
| 354 | }}} |
| 355 | * Finally, per-invocation, do startup: |
| 356 | {{{ |
| 357 | sudo kextload /opt/local/Library/Extensions/tun.kext |
| 358 | cd ~/tmp/exogeni-vpn/bbnadmins |
| 359 | sudo openvpn2 ./bbnadmins.conf |
| 360 | sudo sh -c 'cat ./bbn.xo-hosts.txt >> /etc/hosts' |
| 361 | }}} |
| 362 | * Now browse to `http://bbn-w1.bbn.xo`: |
| 363 | * Login at the dialogue |
| 364 | * Click: Continue |
| 365 | * Note: the IMM is one place we can get the interface MACs if we ever need them |
| 366 | * Tasks -> Remote Control -> Start Remote Control in Multi-User Mode |
| 367 | * this launched bbn-w1.bbn.xo Video Viewer (a java webstart app) |
| 368 | * i was able to login as chaos on that console |
| 369 | * i was able to sudo on that console |
| 370 | * IMM Control -> Port Assignments says which ports are open on this IMM (this is also in the config file) |
| 371 | * I can go to: [http://bbn-w1.bbn.xo/page/ibmccontrol_configsummary.html] to get a configuration summary, which i saved off by hand for future reference |
| 372 | * I imagine backing up the config is a pretty safe alternative |
| 373 | to viewing it, but don't want to muck around too much |
| 374 | * Logout |
| 375 | * Now browse to `http://bbn-w2.bbn.xo`: |
| 376 | * Login as before |
| 377 | * Tasks -> Remote Control -> Start Remote Control in Multi-User Mode |
| 378 | * IMM Control -> Configuration File -> view the current configuration summary, and make a copy |
| 379 | * Now browse to `http://bbn-w3.bbn.xo`: |
| 380 | * Login as before |
| 381 | * Tasks -> Remote Control -> Start Remote Control in Multi-User Mode |
| 382 | * IMM Control -> Configuration File -> view the current configuration summary, and make a copy |
| 383 | * Now browse to `http://bbn-w4.bbn.xo`: |
| 384 | * Login as before |
| 385 | * Tasks -> Remote Control -> Start Remote Control in Multi-User Mode |
| 386 | * the console here shows that bbn-w4 is at a PXE boot prompt |
| 387 | * IMM Control -> Configuration File -> view the current configuration summary, and make a copy |
| 388 | * Trying to get this config, i got a bunch of errors about trouble communicating with the IMM |
| 389 | * Per-invocation, do shutdown: |
| 390 | * ctrl-C to kill the openvpn connection |
| 391 | * remove the kernel module and the lines from /etc/hosts: |
| 392 | {{{ |
| 393 | sudo kextunload /opt/local/Library/Extensions/tun.kext |
| 394 | sudo vi /etc/hosts |
| 395 | }}} |
| 396 | |
| 397 | Tim's testing under Ubuntu 10.10: |
| 398 | * Install and connect: |
| 399 | {{{ |
| 400 | sudo apt-get install openvpn |
| 401 | sudo openvpn --config bbnadmins.ovpn |
| 402 | }}} |
| 403 | * He reported that he could login to the remote KVM for bbn-w1 (via X) |
| 404 | |
| 405 | Still to test here: |
| 406 | * Make sure i can actually successfully get the config for `bbn-w4`, or complain about the timeout issue if it recurs |
| 407 | * Do the check on `bbn-hn` |
| 408 | |