Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test suite] added portrange bpf filter test

  • Loading branch information...
commit 873b06b4223b8e4d4ce854c4655a2366bd5dac8b 1 parent 7bb5811
@mrash authored
View
1  Makefile.am
@@ -138,6 +138,7 @@ EXTRA_DIST = \
test/conf/ctr_mode_access.conf \
test/conf/default_access.conf \
test/conf/default_fwknopd.conf \
+ test/conf/portrange_fwknopd.conf \
test/conf/custom_input_chain_fwknopd.conf \
test/conf/custom_nat_chain_fwknopd.conf \
test/conf/disable_aging_fwknopd.conf \
View
1  test/conf/portrange_fwknopd.conf
@@ -0,0 +1 @@
+PCAP_FILTER udp dst portrange 10000-65535;
View
1  test/test-fwknop.pl
@@ -41,6 +41,7 @@
'snat_no_translate_ip' => "$conf_dir/snat_no_translate_ip_fwknopd.conf",
'def' => "$conf_dir/default_fwknopd.conf",
'def_access' => "$conf_dir/default_access.conf",
+ 'portrange_filter' => "$conf_dir/portrange_fwknopd.conf",
'hmac_access' => "$conf_dir/hmac_access.conf",
'hmac_get_key_access' => "$conf_dir/hmac_get_key_access.conf",
'hmac_equal_keys_access' => "$conf_dir/hmac_equal_keys_access.conf",
View
12 test/tests/rijndael_hmac.pl
@@ -360,6 +360,18 @@
{
'category' => 'Rijndael+HMAC',
'subcategory' => 'client+server',
+ 'detail' => 'random SPA port (portrange filter)',
+ 'function' => \&spa_cycle,
+ 'cmdline' => "$default_client_hmac_args -r",
+ 'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'portrange_filter'} -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'},
+ },
+ {
+ 'category' => 'Rijndael+HMAC',
+ 'subcategory' => 'client+server',
'detail' => 'random SPA port (via rc RAND_PORT)',
'function' => \&spa_cycle,
'cmdline' => "$fwknopCmd -A tcp/22 -a $fake_ip -D $loopback_ip --rc-file " .
Please sign in to comment.
Something went wrong with that request. Please try again.