News: This forum is now permanently frozen.
Pages: [1]
Topic: ipsec VPN Auto Updater: error updating remote gateway  (Read 1931 times)
« on: June 09, 2009, 01:29:30 »
deville *
Posts: 4

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 !!
 
Pages: [1]
 
 
Powered by SMF 1.1.20 | SMF © 2013, Simple Machines