Changeset e1ed2a7b
- Timestamp:
- Mar 10, 2014 4:21:30 PM (11 years ago)
- Branches:
- master
- Children:
- a2ca699
- Parents:
- 7862660 (diff), dffa585 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/desktop_access.py
r7862660 re1ed2a7b 418 418 print >>f, 'sleep 60; done' 419 419 print >>f, ('ssh -w 0:0 -p %s -o "Tunnel ethernet" ' + \ 420 '-o "StrictHostKeyChecking no" -i %s %s perl -I/usr/local/federation/lib /usr/local/federation/bin/setup_bridge.pl --tapno=0 --addr=%s &') % \420 '-o "StrictHostKeyChecking no" -i %s %s perl -I/usr/local/federation/lib /usr/local/federation/bin/setup_bridge.pl --tapno=0 --addr=%s --use_file &') % \ 421 421 (port, self.ssh_identity, peer, my_addr) 422 422 # This should give the tap a a chance to come up -
fedkit/gateway_lib.pm
r7862660 re1ed2a7b 434 434 } 435 435 436 # Fling a few ping packets at the peer in the hopes that it opens doors through 437 # NATs and other filters. Practically speaking this can make a big difference. 438 sub ping_peer { 439 my($peer) = @_; 440 system("ping -c 5 $peer"); 441 } 442 436 443 sub testcmd_repeat { 437 444 my($cmd, $timeout, $sleep) = @_; -
fedkit/prep_gateway.pl
r7862660 re1ed2a7b 89 89 # appear in the DNS. 90 90 foreach my $p (split(/\s*,\s*/, $peer)) { 91 gateway_lib::add_route($p, $router, 1, 60 *60) 92 if $p && $router; 91 if ($p && $router ) { 92 gateway_lib::add_route($p, $router, 1, 60 *60); 93 # grease the skids 94 gateway_lib::ping_peer($p); 95 } 93 96 } 94 97 } -
fedkit/setup_bridge.pl
r7862660 re1ed2a7b 13 13 my $fedkit_dir= "/usr/local/federation"; 14 14 my $perl = "/usr/bin/perl"; 15 my $peer; 15 16 my $use_file; 16 17 my %opts = ( … … 18 19 'addr=s' => \$addr, 19 20 'dest=s' => \$dest, 21 'peer=s' => \$peer, 20 22 'use_file', \$use_file, 21 23 ); 22 24 23 25 exit(20) unless GetOptions(%opts); 24 gateway_lib::read_config(gateway_lib:: emulab_config_filename(), \%opts)26 gateway_lib::read_config(gateway_lib::config_filename(), \%opts) 25 27 if $use_file; 26 28 … … 34 36 35 37 gateway_lib::bind_tap_to_iface($tapno, $iface); 38 gateway_lib::ping_peer($peer) 39 if $peer; 36 40 37 41 exit(0);
Note: See TracChangeset
for help on using the changeset viewer.