1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-20 10:17:16 +01:00

69 Commits

Author SHA1 Message Date
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 Kurland
18377b1ff2 refs #1876 build number is now part of the long version number 2010-12-29 12:00:15 -08: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
ffe230a9c2 speed up policy compile (changes in libfwbuilder:r499) 2009-12-24 22:22:22 +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
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
dc5898406b merging from v3 2009-05-12 23:03:32 +00:00
Vadim Kurland
9a1d02f1ee 2009-05-09 vadim <vadim@vk.crocodile.org>
* ipt.cpp (main): Now that we use the same platform name for
iptables on linux, ipcop, endian, oneshield and secuwall, there is
no need in policy/nat/routing compiler classes for ipcop.
2009-05-09 23:56:12 +00:00
Vadim Kurland
2276f0bfce 2009-05-09 vadim <vadim@vk.crocodile.org>
* platform/iptables.xml.in: Unified support for different iptables
appliances: configuration will require platform "iptables" and
host os that corresponds to the chosen appliance. This matches
support for Secuwall and is easier to maintain than separate
platform-os pairs for each appliance.
2009-05-09 23:04:23 +00:00
Vadim Kurland
768dffd417 formatting; testing post-commit hook 2009-04-23 17:50:20 +00:00
Vadim Kurland
053433f992 formatting; testing post-commit hook 2009-04-23 17:49:15 +00:00
Vadim Kurland
ea32b01d37 formatting; testing post-commit hook 2009-04-23 17:46:32 +00:00
Vadim Kurland
fea4b8a892 2009-04-15 vadim <vadim@vk.crocodile.org>
* ipcopAdvancedDialog.cpp (ipcopAdvancedDialog::ipcopAdvancedDialog):
Integration with IPCOP, Endian and OneShield firewall apliances
(all based on linux/iptables). This sets generate file name to
"rc.firewall.local", destination directory on the firewall to
"/etc/rc.d/" and activation command to "/etc/rc.d/rc.firewall
restart".  Provided resource files for ipcop, endian and oneshield
platforms and os define default parameters, including path to
iptables and other command line tools. Generated script performs
minimal environment setting, because everything is supposed to be
set up by the aplpiance itself. Iptables commands are put in the
standard chains INPUT/OUTPUT/FORWARD, with user-defined chans
created as required. At this time policy and NAT rules work. Rules
added by fwbuilder are activated by the standard appliance
firewall script rc.firewall after all IPCOP rules are added and
before all hooks. This means rules created by fwbuilder do not
replace rules added by the appliance, but work together with
those. Prolog and epilog user-defined sections work as
well. Prolog is always added on top of the rules generated by
fwbuilder. Prolog and epilog sections can include any kind of
shell commands, not only iptables rules. Two new firewall
templates are provided: one for IPCOP/Endian firewall with two
interfaces (br0 is GREEN and eth1 is RED) and another for the
appliance with three interfaces (additionally eth2, as ORANGE).

* ipt.cpp (main): implemented feature request #2454447 "Standard
options for startup-script". Script generated by fwbuilder now
accepts standard arguments "start" and "stop". Running the script
with no argument is equivalent to "start" for backwards
compatibility. Running script with argument "stop" resets iptables
tables and chains and sets all to default policy DROP (beware!).
2009-04-15 19:32:34 +00:00
Vadim Kurland
4f49df2ea4 2009-04-10 vadim <vadim@vk.crocodile.org>
* ipt.cpp (dumpScript): fixed bug #2356131: "Iptables-restore
option broken for multiple policy sets". Compiler inserted
redundant line "echo COMMIT" to the iptables script if
iptables-restore was used and there were no rules in the mangle
table.
2009-04-11 00:53:50 +00:00
SVN User
a6379f7420 fix for bug 2550074 on windows 2009-02-01 09:30:49 +00:00
Vadim Kurland
d591159ebf 2009-01-31 Vadim Kurland <vadim@vk.crocodile.org>
* ipt.cpp (processPolicyRuleSet): fixed bug #2550074: "Automatic
	rules for filter table included twice in iptables". If user had
	two policy ruleset objects marked as "top" rule set, then
	automaitc rules were added twice.
2009-01-31 08:40:25 +00:00
Vadim Kurland
0516743140 bug #535146 2009-01-30 04:54:03 +00:00
Vadim Kurland
31d4f59bef bug #2477775 2008-12-31 01:46:42 +00:00
Vadim Kurland
1ac206288e 2008-12-15 vadim <vadim@vk.crocodile.org>
* ipt.cpp, ipfw.cpp, pf.cpp, iosacl.cpp: changes for FR #2431602:
support for rulesets configured as "dual address family", that is,
rulesets that should be compiled for both ipv4 and ipv6.

* RuleSetDialog.cpp (RuleSetDialog::applyChanges): implemented
feature request #2431602: "Feature request: Unified
policies (IPv4/v6)". RuleSet object now has two variables that
define which address family it should be compiled for - ipv4 or
ipv6. It is possible to have both set, in which case the same
ruleset will be compiled for both address families.
2008-12-16 05:03:50 +00:00
Vadim Kurland
b193a80e3c 2008-12-03 Vadim Kurland <vadim@vk.crocodile.org>
* iosacl.g (certificate): fixed bug #2334007: "Problem parsing
Cisco config". Parser now recognizes IOS configuration lines
"certificate", "ip community-list", "controller
... description". These lines are recognized and ignored, they
should not stop parser from processing the rest of the
configuration.

* ipt.cpp (main): fixed bug #2378672: "fwb 3.0.2 build 676
iptables script is not executable". Generated .fw file should have
executable permissions.
2008-12-04 04:53:43 +00:00
Vadim Kurland
0572a9850f * ipt.cpp (dumpScript): fixed bug 2356131 "Iptables-restore option
broken for multiple policy sets". If firewall was configured to
use iptables-restore to activate policy and if it had two or more
policy rule sets, compiler used to put "echo COMMIT" line at the
bottom of each ruleset. This was incorrect, iptables-restore
expects only one COMMIT line at the end of each table.
2008-11-28 18:05:31 +00:00
Vadim Kurland
c5e41ed161 * ipt.cpp (dumpScript): Explicitly use "\n" instead of endl to
avoid implicit conversion to "\r\n" on Windows (generated script
is for iptables which can only run on Linux, so it is safe to use
"\n" instead of endl).
2008-10-16 02:55:32 +00:00
Vadim Kurland
c710c1003d attribute "mangle_table_only" for iptables policy rulesets 2008-10-12 04:03:22 +00:00
Vadim Kurland
0f992a8c4a bug 2148378 2008-10-12 00:57:05 +00:00
Vadim Kurland
fa1fe47f4a using QString for fwbobjectname 2008-10-10 04:31:38 +00:00
Vadim Kurland
79735969ff codecs 2008-10-10 04:06:02 +00:00
Vadim Kurland
51b2320023 using Utf8 codec to encode command line parameters for compiler 2008-10-10 03:35:30 +00:00
Vadim Kurland
444cc9c5b8 fwb_ipt works with non-ascii fw object names on Mac 2008-10-10 03:18:25 +00:00
Vadim Kurland
636b9d3050 fwb_ipt works 2008-10-10 02:38:08 +00:00
Vadim Kurland
0988ba765d experimental: fwb_ipt uses QT for QApplication and command line. Change after r589 2008-10-10 02:29:51 +00:00
Vadim Kurland
5d7af145af input field for path to scp in preferences dialog 2008-10-09 05:08:41 +00:00
Vadim Kurland
b89be74709 more fixes for bug 2051629 group with dns names are handled as empty 2008-08-22 15:13:00 +00:00
Vadim Kurland
d24c42edd7 fixed bug 2054755 ] Duplicate Chain 2008-08-18 03:05:45 +00:00
Vadim Kurland
0d1c8ce533 bug 2051629 ] group with dns names are handled as empty 2008-08-16 03:15:39 +00:00
Vadim Kurland
699800dd12 patch for gcc 4.3 2008-08-03 16:47:47 +00:00
Vadim Kurland
60bec65e08 removed dependency on QT in compilers 2008-08-02 04:59:32 +00:00
Vadim Kurland
0c039b2030 add build num to "Generated with..." comment 2008-07-18 20:10:45 +00:00
Vadim Kurland
eb24dfcb85 fixed bug with missing COMMIT after mangle table rules 2008-07-18 19:16:06 +00:00
Vadim Kurland
80b389eaf6 fixed bug in fwb_ipt for activation with iptables-restore 2008-07-16 20:13:05 +00:00
Vadim Kurland
299e475926 path to config.h and other headers 2008-07-13 01:26:39 +00:00
Vadim Kurland
990be44f07 support for attr top_rule_set in Policy, NAT and Routing 2008-07-07 18:29:33 +00:00
Vadim Kurland
a59280a185 support for ipv6 in fwb_iosacl; support for attribute ipv6 in RuleSet dialog 2008-07-07 02:32:38 +00:00
Vadim Kurland
cf2622da34 turn on svn Id tags 2008-07-05 17:40:12 +00:00
Vadim Kurland
bd91f85ec0 tcpmss in mangle table; record iptables version in generated script 2008-07-03 22:37:08 +00:00