1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2025-11-09 04:03:34 +01:00

174 Commits

Author SHA1 Message Date
Charlène Wendling
256362372c Use ${CMAKE_DL_LIBS} for portability
Some systems, like OpenBSD for example, have libdl integrated in libc.
Let CMAKE_DL_LIBS decide if '-ldl' is needed as a linker flag
2020-12-22 03:43:15 +01:00
Sirius Bakke
c86153e0e7 fix: Deprecated Qt cmake macro 2020-10-07 21:11:11 +02:00
Sirius Bakke
ded1340898 refactor: Stop using deprecated methods (Qt 5.14) 2020-02-23 23:50:30 +01:00
Sirius Bakke
ac89370f29 chore: Remove QBS </3 2019-07-28 19:59:21 +02:00
Sirius Bakke
598e2fafde refactor: Reduce cmake global defines 2019-07-28 19:59:21 +02:00
Sirius Bakke
03ed123626 chore: Add support for mxe w32 and cmake 2019-06-09 23:46:58 +02:00
Sirius Bakke
5b2d0e297d chore: Add support for CMake
TODO: Support macOS and Windows
2019-02-20 00:12:56 -03:00
Sirius Bakke
a8f38647c9 refactor: NULL -> nullptr 2018-10-04 16:20:02 +02:00
Sirius Bakke
defc5c7b63 feat: Remove automake and qmake files 2018-09-12 20:21:21 +02:00
Sirius Bakke
ea85cab17b feat: Remove unneeded header includes 2018-09-12 20:21:12 +02:00
Sirius Bakke
123dceefc4 feat: Add qbs build files 2018-09-12 20:20:41 +02:00
Sirius Bakke
e41ab255e1 fix: Remove Qt4 support 2018-05-13 13:58:58 +02:00
Sylvestre Ledru
6a89b028b3 Disable the silent mode (easier to debug) 2017-09-29 11:33:55 +02:00
Sirius Bakke
96268831a2 Feature: Support for Qt5
* Compile time checking adjust includes and code for deprecated features
* QHttp class is removed from Qt5 so the custom HttpGet class is
  disabled when compiling with Qt5. The api on fwbuilder.org isn't
  working, so the code for getting tips and checking if a new version is
  available must be rewritten anyway.
2013-08-14 12:35:02 +02:00
Sirius Bakke
1e685abd1f Feature: Dummy objects for policy rules 2013-08-14 12:34:54 +02:00
Sirius Bakke
78190b2b26 Fix: Console applications use QCoreApplication
* Changed all the compiler executables from using QApplication to
  QCoreApplication
* libcommon is now using only QCoreApplication
2013-08-10 20:29:10 +02:00
Theron Tock
4c4b67b5bd * Implemented #2514, support for address table alternate paths.
There's a "data directory" setting under user preferences.  If the
	user selects an address table file using "choose file" and that
	file is "inside" the data directory, then the appropriate part of
	the path is replaced with %DATADIR% as a variable.  If the address
	table is marked "run-time" then the path is taken from the
	firewall data directory option.
2011-07-11 21:33:13 -07:00
Vadim Kurland
af8031a87a building with mingw on windows 2011-05-19 19:22:58 -07:00
Theron Tock
216dd1a2fb Make sure DEPENDPATH has same stuff as INCLUDEPATH, otherwise when files
change in other directories the dependent files don't get recompiled.

Fixed up INCLUDEPATH in various places.

Removed -pthread as an INCLUDEPATH (leads to bogus -I-pthread).
2011-05-11 14:05:18 -07:00
Vadim Kurland
cb7662fdae see #2212 now compilers do not copy object database but CompilerDriver does. This means one object tree copy instead of many (it used to be one copy for the driver plus one copy for each compiler pass) 2011-03-12 14:49:12 -08:00
Vadim Kurland
9292895800 see #2037
Compile/install wizard should disable "Next" button
after compile phase is done if all firewalls failed to compile
with no errors.

see #2061
Added
bunch of common shell error messages to make sure installer
recognizes them and mark install as a failure even if ssh fails
to pass termination code.
2011-02-08 20:20:01 -08:00
Vadim Kurland
abcafdd4b3 still working on windows build failure; names for the items in BaseCompiler::termination_status shuld be unique; new build number 3466 2011-02-08 15:26:31 -08:00
Vadim Kurland
99a0b3d412 fixes #2055 Compiler shows success, but there was a fatal error in the config; the problem affected compilers for all platforms, not only pix 2011-02-07 23:05:27 -08:00
Vadim Kurland
eb61a51c89 fixes #1989:
Got rid
of global variables sysfname, tempfname, librespath, respath and
localepath; will now use class Constants to keep this information.
2011-01-26 13:27:57 -08:00
Vadim
cd4da4fb52 fixed build on Mandriva 2011-01-14 21:46:18 -08:00
Vadim Kurland
18377b1ff2 refs #1876 build number is now part of the long version number 2010-12-29 12:00:15 -08:00
Vadim Kurland
2417543eba merged libfwbuilder into fwbuilder as src/libfwbuilder; unit tests do not work yet 2010-12-25 20:12:30 -08:00
Vadim Kurland
57cc064b14 removed obsolete files .cvsignore, added more patters to .gitignore 2010-10-29 14:15:22 -07:00
Reto Buerki
149d96a75c Add rule to allow IPsec AH protected VRRP traffic.
According to RFC 2338 section 5.3.6.3, VRRP exchanges can be
integrity protected using IPsec AH.

Patch contributed by Joerg Marx.
2010-03-19 14:09:04 +00:00
Vadim Kurland
3d4eea369c rearrange the order of libraries to make it compile on Mandriva. See #1085 2010-01-16 01:49:25 +00:00
Vadim Kurland
ffe230a9c2 speed up policy compile (changes in libfwbuilder:r499) 2009-12-24 22:22:22 +00:00
SVN User
3665045dfe proper references to library on windows 2009-12-17 02:59:53 +00:00
Vadim Kurland
68a2e1bdc3 fixes #923 converted src/common to a library 2009-12-17 02:17:47 +00:00
Vadim Kurland
18c5f5c689 getting rid of dependencies on build_num 2009-11-22 20:53:39 +00:00
Vadim Kurland
f1d722a0c0 using BUILD_NUM instead of RELEASE everywhere 2009-10-01 17:14:32 +00:00
Vadim Kurland
23ee2d9531 merge from v3_1_merge 2009-09-23 17:00:48 +00:00
Vadim Kurland
e87fbb5adf * RoutingCompiler_ipt_writers.cpp (PrintRule::processNext): Fixed
security vulnerability in the generated script that was caused by
incorrect creation of a temporary file. The problem made generated
script vulnerable to symlink attacks. The vulnerability only
affected systems where Firewall Builder was used to generate
static routing configuration on Linux.
2009-09-16 21:35:59 +00:00
Vadim Kurland
5aaea155ec 2009-08-12 vadim <vadim@vk.crocodile.org>
* NATCompiler_ipt.cpp (splitSDNATRule::processNext): fixed bug
#2836321: "SNAT rule that changes Trans Src and Trans Port does
not work". Dual translation rule that changes source address and
destination port was not supported.
2009-08-12 17:51:41 +00:00
Vadim Kurland
34fee341d3 better way to optimize for "-i + ", "-o +" 2009-07-27 05:34:12 +00:00
Vadim Kurland
674589476e 2009-07-19 vadim <vadim@vk.crocodile.org>
* PolicyCompiler_ipt.cpp (specialCaseWithFWInDstAndOutbound::processNext):
fixed bug #2823951: "unnecessary rules in FORWARD chain". Policy
rules that have interface object in "Interface" column and
direction "Both" generate unnecessary iptables commands in the
FORWARD chain when destination matches one of the addresses that
belong to the firewall.
2009-07-19 19:17:42 +00:00
Vadim Kurland
664c564037 * PolicyCompiler_ipt_optimizer.cpp (optimizeForMinusIOPlus::processNext):
fixed bug #2822098: "IPT: adds useless "-i +" iin some cases".
Added optimization to remove redundant "-i +" and "-o +" if
chain is INPUT or OUTPUT.
2009-07-16 00:30:12 +00:00
Vadim Kurland
92abc2b58e * PolicyCompiler_ipt.cpp (singleItfNegation::processNext): fixed
bug #2819901: "sub-optimal expansion of negated interface". Policy
rules with single interface object in "interface" rule element
with negation should generate iptables commands using "-i ! itf"
or "-o ! itf" rather than multiply the rule using all other
interfaces of the firewall. Note that for iptables v1.4.3 and
later, extrapositioned syntax is used, such as "! -i itf".
2009-07-14 23:59:02 +00:00
Vadim Kurland
ef15df93fc * PolicyCompiler_PrintRule.cpp, NATCompiler_PrintRule.cpp: fixed
bug #2821050: "loading new fw rules on iptables 1.4.3.2+ gives
warnings". starting with v1.4.3.1 iptables started giving warnings
when negation ("!")  is used after --option. This fix adds version
"1.4.3" to the list of recognized iptables versions in fwbuilder
and makes compiler generate extrapositioned version of the option
such as "!  --option arg".
2009-07-14 21:26:34 +00:00
Vadim Kurland
8ae2ef2d9c * iptAdvancedDialog.cpp (iptAdvancedDialog::iptAdvancedDialog):
fixed bug #2820840: "IPT: prolog script+iptables-restore silent
incompatibility". With this fix the GUI does not allow for the
prolog script to be placed after policy reset if iptables-restore
is used to activate iptables rules. Also policy compiler for
iptables checks for this condition and aborts with an error
message if prolog place is set to "after reset" but
iptables-restore is used to activate policy. Configuration may end
up with this combination of options if user set prolog place to
"after reset" first and switched activation method to
iptables-restore later.
2009-07-13 23:14:55 +00:00
Vadim Kurland
d5b4cc92f1 merge from v3 2009-06-11 23:45:45 +00:00
Vadim Kurland
8093777d9e removed deprecation warnings, added ccache stats print 2009-06-10 20:28:00 +00:00
Vadim Kurland
37cb4e4afa 2009-06-08 vadim <vadim@vk.crocodile.org>
* NATCompiler_ipt.cpp (splitSDNATRule::processNext): Improved
support for NAT rules that translate both source and destination:
now a rule like this can translate both source and destination
addresses and at the same time source and destination port ranges.
Compiler generates two iptables commands, one with SNAT and
another with DNAT translation for a rule like this.
2009-06-08 20:03:24 +00:00
Vadim Kurland
71ca455795 2009-06-08 vadim <vadim@vk.crocodile.org>
* NATCompiler_PrintRule.cpp (PrintRule::processNext): Added
support for SNAT rules that translate only source port of udp or
tcp packets. This rule generate "-j SNAT --to-source :<port>"
with no address part.


;
2009-06-08 17:04:53 +00:00
Vadim Kurland
ba1cd11057 better check if ip service object with options is being used in ipv6 policy 2009-06-06 22:19:19 +00:00
Vadim Kurland
8ed50dc028 merge from v3 2009-06-05 17:15:59 +00:00