I use monowall 1.23, windows xp sp3 with xampp;
I try to use the ipsec VPN auto Updater to solve dynmaic IP on both sides to establish VPN, but everytime the php run will get the error "error updating remote gateway" message
I setup the ipsecupdate as below:
/**********************************************************************/
//Adjust these settings
$hostname = 'test.com';
$filename = 'd:\php\ipsecUpdate.dat';
$monowall_hostname = '192.168.1.254';
$monowall_username = 'admin';
$monowall_password = 'mono';
/***********************************************************************/
/*****************************************************************************************/
//Adjust the lines below to match your settings
$postArray = array (
'interface' => 'wan',
'localnettype' => 'lan',
//?? 'localnet' => 'lan',
'remotenet' => '192.168.18.0',
'remotebits' => '24',
'remotegw' => $newIPAddress,
'descr' => 'dynamic ip',
'p1mode' => 'aggressive',
'p1myidentt' => 'user_fqdn',
'p1myident' => '
vpn@test.com',
'p1ealgo' => 'blowfish',
'p1halgo' => 'hmac_md5',
'p1dhgroup' => '2',
'p1lifetime' => '86400',
'p1authentication_method' => 'pre_shared_key',
'p1pskey' => '31046289',
'p2proto' => 'esp',
'p2ealgos' => array ( 0 => '3des', 1 => 'blowfish', ),
'p2halgos' => array ( 0 => 'hmac_md5', ),
'p2pfsgroup' => '0',
'p2lifetime' => '86400',
'Submit' => 'Save',
'id' => '5',
);
/****************************************************************************************/
I run the php under command window : c:\xampp\php\php d:\php\ipsecupdate.php.
The ipsecupdate.dat created and the dynamic address is detected,
but I get "Error updating remote gateway" everytime, even I use the original seeting from download.
anything wrong, please help !!