IKEv2: Add roadwarrior configuration to file.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Aug 2011 12:07:55 +0000 (14:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Aug 2011 12:07:55 +0000 (14:07 +0200)
html/cgi-bin/vpnmain.cgi

index 888372e01daacc2e053b274726e2c8d5ca3c8af8..e1a82009452d629b0a092ac933c4a7f8946ea15d 100644 (file)
@@ -439,6 +439,7 @@ sub writeipsecfiles {
        # Automatically start only if a net-to-net connection
        if ($lconfighash{$key}[3] eq 'host') {
            print CONF "\tauto=add\n";
+           print CONF "\trightsourceip=$lvpnsettings{'RW_NET'}\n";
        } else {
            print CONF "\tauto=start\n";
        }