[test suite] added short and long IP tests (1.1.1.1 and 123.123.123.123)

This commit is contained in:
Michael Rash 2013-11-20 23:10:36 -05:00
parent 78f696b2f7
commit 28a915c8c8
2 changed files with 54 additions and 0 deletions

View File

@ -9,6 +9,30 @@
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
},
{
'category' => 'Rijndael',
'subcategory' => 'client+server',
'detail' => 'short IP 1.1.1.1 (ssh)',
'function' => \&spa_cycle,
'cmdline' => "$fwknopCmd -A tcp/22 -a 1.1.1.1 -D $loopback_ip --get-key " .
"$local_key_file --no-save-args --verbose --verbose",
'fwknopd_cmdline' => "$fwknopdCmd $default_server_conf_args $intf_str",
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
'no_ip_check' => 1
},
{
'category' => 'Rijndael',
'subcategory' => 'client+server',
'detail' => 'long IP 123.123.123.123 (ssh)',
'function' => \&spa_cycle,
'cmdline' => "$fwknopCmd -A tcp/22 -a 123.123.123.123 -D $loopback_ip --get-key " .
"$local_key_file --no-save-args --verbose --verbose",
'fwknopd_cmdline' => "$fwknopdCmd $default_server_conf_args $intf_str",
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
'no_ip_check' => 1
},
{
'category' => 'Rijndael',
'subcategory' => 'client+server',

View File

@ -214,6 +214,36 @@
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
},
{
'category' => 'Rijndael+HMAC',
'subcategory' => 'client+server',
'detail' => 'short IP 1.1.1.1 (ssh)',
'function' => \&spa_cycle,
'cmdline' => "$fwknopCmd -A tcp/22 -a 1.1.1.1 -D $loopback_ip --rc-file " .
"$cf{'rc_hmac_b64_key'} --verbose --verbose",
'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'def'} -a $cf{'hmac_access'} " .
"-d $default_digest_file -p $default_pid_file $intf_str",
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
'key_file' => $cf{'rc_hmac_b64_key'},
'no_ip_check' => 1
},
{
'category' => 'Rijndael+HMAC',
'subcategory' => 'client+server',
'detail' => 'long IP 123.123.123.123 (ssh)',
'function' => \&spa_cycle,
'cmdline' => "$fwknopCmd -A tcp/22 -a 123.123.123.123 -D $loopback_ip --rc-file " .
"$cf{'rc_hmac_b64_key'} --verbose --verbose",
'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'def'} -a $cf{'hmac_access'} " .
"-d $default_digest_file -p $default_pid_file $intf_str",
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
'key_file' => $cf{'rc_hmac_b64_key'},
'no_ip_check' => 1
},
{