{

my $remote = $db->get_prop($key,'RemoteHost') || '';
my $port = $db->get_prop($key,'Port') || '1195';
my $protocol = $db->get_prop($key,'Protocol') || 'udp';
$protocol = 'tcp-'."$type" if ($protocol eq 'tcp');

$OUT .= "port $port\n";
$OUT .= "proto $protocol\n";
$OUT .= "dev tun".$key."\n";

# In server mode, if remote is emtpy, we should add the float directive
if ($type eq 'server'){
    $OUT .= ($remote eq '') ? "float\n":"remote $remote\n";
}
else{
    $OUT .= "nobind\n";
    $OUT .= "remote $remote\n";
}


}
