Changeset 213 for trunk/system/generators/nat_routerboard.php
- Timestamp:
- May 10, 2009, 12:30:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/nat_routerboard.php
r208 r213 17 17 while($Interface = $DbResult2->fetch_assoc()) 18 18 { 19 $Name = $Interface['DeviceName'].'-'.$Interface['Name']; 19 $Name = $Interface['DeviceName']; 20 if($Interface['Name'] != '') $Name .= '-'.$Interface['Name']; 20 21 $Name = RouterOSIdent($Name); 21 22 echo($Name.'('.$Interface['LocalIP'].'), '); … … 47 48 48 49 $Commands = addslashes(implode(';', $Commands)); 49 $Command = '/usr/bin/ssh - l '.$Config['MainRouter']['UserName'].' -i id_dsa '.$Config['MainRouter']['HostName'].' "'.$Commands.'"';50 $Command = '/usr/bin/ssh -o ConnectTimeout=5 -l '.$Config['MainRouter']['UserName'].' -i id_dsa '.$Config['MainRouter']['HostName'].' "'.$Commands.'"'; 50 51 $Output = array(); 51 52 //echo($Command."\n");
Note:
See TracChangeset
for help on using the changeset viewer.