2059 Commits

Author SHA1 Message Date
Michael Rash
136d017afb [client] ensure no dns, http, or other network comms in AFL fuzzing mode 2015-05-14 17:51:25 -07:00
Michael Rash
7817d28a2d [test suite] minor check for AFL compile configure success 2015-05-14 17:49:55 -07:00
Michael Rash
28dc60f9bd added server-conf AFL fuzzing cycle results 2015-05-10 21:20:10 -07:00
Damien Stuart
378b54748c Updated error code descriptions and fixed function description formats in the libfko docs. 2015-05-04 16:33:41 -04:00
Damien Stuart
87a2fbda0c Bump version in config.h for the Windows build. 2015-04-25 09:35:24 -04:00
Michael Rash
bcfc313e36 [test suite] minor bug fix for rm previous coverage script path 2015-04-24 17:55:43 -07:00
Michael Rash
93383c8430 changes since 2.6.5 2015-04-22 19:10:15 -07:00
Michael Rash
707c59d127 minor 2.6.6 release date update 2015-04-22 19:09:46 -07:00
Michael Rash
e209acc196 minor ChangeLog update 2015-04-22 01:10:00 -07:00
Michael Rash
17d1071aa8 [server / test suite] cleaner SNAT MASQUERADE support 2015-04-22 01:00:57 -07:00
Michael Rash
6bdfa95067 [server / test suite] cleaner SNAT MASQUERADE support 2015-04-22 00:58:35 -07:00
Michael Rash
176afecd9f [server] minor spacing fix 2015-04-21 21:09:20 -04:00
Michael Rash
d961165a5b Merge branch 'master' of ssh://fedora21/home/mbr/git/fwknop 2015-04-21 19:28:05 -04:00
Michael Rash
6467b922d5 [test suite] additional FORWARD_ALL tests 2015-04-21 03:30:32 -07:00
Michael Rash
3512f7f417 doc updates 2015-04-20 21:34:12 -04:00
Michael Rash
95bf4dcb87 Merge pull request #153 from Coacher/master
extras: adjust 'localstatedir' value for the AppArmor profile
2015-04-20 21:28:10 -04:00
Michael Rash
75d4004963 changes since 2.6.5 2015-04-20 09:19:37 -07:00
Michael Rash
bdc3751a84 bump version to 2.6.6 2015-04-20 08:47:51 -07:00
Michael Rash
f18827b002 [test suite] make valgrind results requirements stronger for test passage 2015-04-20 08:45:09 -07:00
Michael Rash
94af6172bb [server] minor -h usage update 2015-04-20 08:41:28 -07:00
Michael Rash
85733ded3c [test suite] additional iptables exclusions for non-iptables systems 2015-04-20 10:09:23 -04:00
Ilya Tumaykin
f757b4ebda extras: adjust 'localstatedir' value for the AppArmor profile
Comments in the shipped AppArmor profile state that fwknopd is assumed
to be built with 'localstatedir=/var', which is misleading for several
reasons:

* AppArmor profile assumes that fwknopd's pidfile and digest cache are
under /run/fwknop by the looks of it, i.e. 'localstatedir' is '/run'.

* By default these files are placed under /var/run/fwknop. Thus this
profile implicitly relies on the existence of '/var/run -> /run' symlink
and won't work otherwise when 'localstatedir' is '/var'

Since GitHub PR#152 was merged, 'localstatedir' can be simply set to
'/run' for AppArmor users to avoid this confusion. This changeset does
it.

If anyone had it working before, they should have it working now as the
shipped AppArmor profile required /run existence before as well.
2015-04-20 14:32:37 +03:00
Michael Rash
b2109f5630 [server] remove unncessary NULL check spotted by Coverity 2015-04-19 19:44:43 -07:00
Michael Rash
f962edda00 [extras] update Coverity installation path 2015-04-19 19:37:06 -07:00
Michael Rash
a606a9c565 [test suite] fw prefixes aren't used on non-Linux systems yet 2015-04-19 18:52:08 -07:00
Michael Rash
48acac160a [test suite] pick up pf and ipfw firewalls for prefix designation 2015-04-19 18:49:28 -07:00
Michael Rash
db80c81f66 Merge pull request #152 from Coacher/master
server: remove extra '/run' subdir from paths
2015-04-19 21:15:51 -04:00
Michael Rash
e39d34750b [server] switch from abs() to labs() for time difference calculation
This commit fixes the following warning during compilation on Mac OS X:

gcc -DHAVE_CONFIG_H -I. -I..  -I ../lib -I ../common -DSYSCONFDIR=\"/etc\" -DSYSRUNDIR=\"/var\"   -g -O2 -Wall -Wformat -Wformat-security -fstack-protector-all -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -MT fwknopd-incoming_spa.o -MD -MP -MF .deps/fwknopd-incoming_spa.Tpo -c -o fwknopd-incoming_spa.o `test -f 'incoming_spa.c' || echo './'`incoming_spa.c
incoming_spa.c:736:23: warning: absolute value function 'abs' given an argument of
      type 'long' but has parameter of type 'int' which may cause truncation of
      value [-Wabsolute-value]
            ts_diff = abs(now_ts - spadat.timestamp);
                      ^
incoming_spa.c:736:23: note: use function 'labs' instead
            ts_diff = abs(now_ts - spadat.timestamp);
                      ^~~
                      labs
1 warning generated.
2015-04-19 17:48:18 -07:00
Ilya Tumaykin
b21c04e9d6 Merge remote-tracking branch 'upstream/master' 2015-04-20 02:46:41 +03:00
Ilya Tumaykin
e333cba945 server: remove extra '/run' subdir from paths
Having extra '/run' subdirectory hardcoded into paths used for options
'digest-file', 'pid-file', 'run-dir' is counterintuitive and can lead to
bogus directory layouts when 'localstatedir' differs from the default
value.

For example, if 'localstatedir' is set to '/run', which is a common and
recommended substitute for /var/run in many distros nowadays, then
fwknop files will be placed under /run/run/fwknop.

This changeset removes extra '/run' subdirectory from all relevant paths
by changing DEF_RUN_DIR. Default value of 'localstatedir' is changed to
'/var/run' so users who relied on the previous behaviour won't have to
bother changing anything.

This is tested and works. Gentoo have this patch applied since 2.6.0.
2015-04-20 02:43:10 +03:00
Michael Rash
93a3798cc1 [test suite] exclude server restart cycle from valgrind results parsing 2015-04-19 13:25:11 -07:00
Michael Rash
cc765a23db [test suite] minor FORCE_NAT config tweak 2015-04-19 12:22:55 -07:00
Michael Rash
b1100cb730 [server] NAT validation only applies to systems running iptables or firewalld 2015-04-19 07:16:30 -07:00
Michael Rash
68db4b77a5 [server] allow FORWARD_ALL to control whether FORCE_NAT is required 2015-04-19 07:11:10 -07:00
Michael Rash
0ecc2d2333 minor docs update 2015-04-19 07:10:26 -07:00
Michael Rash
bb5aa928d9 [server] fix typos from corresponding firewalld changes 2015-04-18 12:33:11 -07:00
Michael Rash
c9dedd3378 Merge branch 'master' of https://github.com/mrash/fwknop 2015-04-18 05:39:01 -07:00
Michael Rash
03959653ca [server] differentiate MASQUERADE from SNAT with a dedicated FWKNOP_MASQUERADE chain 2015-04-18 05:38:35 -07:00
Michael Rash
f06c6e3b9c [test suite] allow default FORCE_NAT 0.0.0.0 0 to apply 2015-04-18 05:37:31 -07:00
Michael Rash
19f00c0dbe [test suite] add jump rule validation, include complete fwknopd chain listings 2015-04-18 05:33:00 -07:00
Michael Rash
55cbebe7bb ChangeLog and doc updates 2015-04-18 05:30:39 -07:00
Michael Rash
baf3f706d8 Merge pull request #151 from mrdanbrooks/master
android: allow definition of custom server udp port
2015-04-16 21:45:59 -04:00
dan brooks
fba6473b1c android: allow definition of custom server udp port 2015-04-15 16:52:34 -04:00
Michael Rash
1e9f7e94f0 [server] consolidate chain creation within mk_chain() 2015-04-14 08:21:00 -07:00
Michael Rash
c0f3ed38a8 [server] further error status simplication for firewalld 2015-04-14 08:15:03 -07:00
Michael Rash
cf8c4df50e [server] remove DISABLE_DNAT exception for SPA packets that request a NAT operation - this is reserved for FORCE_NAT scenarios 2015-04-14 08:12:56 -07:00
Michael Rash
912c625e9e [server] remove DISABLE_DNAT exception for SPA packets that request a NAT operation - this is reserved for FORCE_NAT scenarios 2015-04-13 08:34:24 -07:00
Michael Rash
654f455ba6 Revert "[server] use 'success' string for firewalld as returned firewall-cmd for command success"
This reverts commit 1e33119b04a583fbf18b5b562edb14301a2ca7d6.
2015-04-12 15:49:19 -07:00
Michael Rash
ffeb60677d [test suite] update SNAT MASQ test to use force masq access file 2015-04-12 15:49:08 -07:00
Michael Rash
7dc41e68ef [test suite] add open_ports_force_masq_access.conf file 2015-04-12 15:48:14 -07:00