Project

General

Profile

« Previous | Next » 

Revision 6706a83a

Added by Ermal LUÇI over 14 years ago

Do the setting earlier to not miss any code and make ipsec not work.

View differences:

etc/inc/vpn.inc
118 118
		return true;
119 119
	} else {
120 120
		mwexec("/sbin/ifconfig enc0 up");
121
		mwexec("/sbin/sysctl net.inet.ip.ipsec_in_use=1");
121 122

  
122 123
		if ($g['booting'])
123 124
			echo "Configuring IPsec VPN... ";
......
877 878
 			sleep("0.1");
878 879
			mwexec("/usr/local/sbin/setkey -F", false);
879 880
 			sleep("0.1");
880
			exec("/sbin/sysctl net.inet.ip.ipsec_in_use=1");
881 881
 			/* start racoon */
882 882
			mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf", false);
883 883
 			sleep("0.1");
......
1721 1721
		mwexec("/sbin/sysctl net.key.preferred_oldsa=0");
1722 1722
}
1723 1723

  
1724
?>
1724
?>

Also available in: Unified diff