1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-23 19:57:21 +01:00

1073 Commits

Author SHA1 Message Date
Vadim Kurland
cdc45a911e supprot for router-alert ip option in fwb_ipt; minor reformatting; test for the IPService object with DSCP bits matching and ip options matching at the same time 2009-11-08 21:28:47 +00:00
Vadim Kurland
605984d8d5 added rule processor splitIpOptions, split IPService objects with options. fixes #570 2009-11-08 20:04:30 +00:00
Vadim Kurland
33fac22504 * PolicyCompiler_iosacl_writers.cpp (PrintRule::_printTCPFlags):
Implemented TCP flag matching per #2865044: "Add TCP options
support for IOS ACL". Uses extended ACL option "match-all" that
supports list of TCP flags that should be set and cleared. This
requires IOS v12.4 or later even though Cisco documentation seems
to indicate this option was introduced in 12.3(4)T. Fixes #455
2009-11-08 06:21:39 +00:00
Vadim Kurland
65634fd824 merge from v3 -r1693:1694 2009-11-07 21:19:56 +00:00
Vadim Kurland
f804283e25 bugfix agaian for the #2892100 2009-11-07 21:18:12 +00:00
Vadim Kurland
d0e4180f66 merge from v3 branch -r1691:HEAD 2009-11-07 15:29:35 +00:00
Vadim Kurland
81af871dc6 fixed bug introduced in the previous build, missing -s in iptable commands built from AddressRange objects representing single address 2009-11-07 15:27:59 +00:00
Roman Bovsunivskiy
5d85d366ab Methods for retrieving edited interface data. Comment is now textedit. 2009-11-07 03:18:38 +00:00
Vadim Kurland
9750dea494 * PolicyCompiler_pix_writers.cpp (PrintRule::_printDstService): PIX
does not support IP options matching, compiler issues warning.
        Fixes #567

        * res/platform/iosacl.xml: Recognized IOS versions: 12.1, 12.2,
        12.3

        * PolicyCompiler_iosacl_writers.cpp (PrintRule::_printIPServiceOptions):
        Added support for IP options matching, requires IOS v12.3 or
        later. Fixes #566, #568
2009-11-07 02:32:50 +00:00
Vadim Kurland
2e6c6d9de6 merge from v3 r1685:1687 2009-11-06 18:09:27 +00:00
Vadim Kurland
927baf9333 * configlets/sveasoft/script_skeleton: Fixes #571 /bin/sh on
Sveasoft (busybox) does not like empty shell functions and fails
        with an error "36: Syntax error: "}" unexpected". Will call
        /bin/true as a placeholder so that if some other commands are
        added to the function body during template expansion, they are
        executed after /bin/true and their return code is preserved. If no
        commands are added, then the function body won't be empty and will
        return success.
2009-11-06 17:48:38 +00:00
Vadim Kurland
7971502d72 * NATCompiler_pf.cpp (NATCompiler_pf::compile): fixed bug
#2889579: "fwb_pf crash when unnumbered interface is used in nat
        rule". Compiler for PF crashed when unnumbered interface was used
        in TSrc element of a NAT rule.
2009-11-06 14:09:34 +00:00
Vadim Kurland
b570690ddb 2009-11-06 vadim <vadim@vk.crocodile.org>
* PolicyCompiler_PrintRule.cpp (PrintRule::_printSrcAddr): Fixed
            bug #2892100: "'Old boradcast' object produces 0/0 in iptables
            script". The bug triggered when iptables version was set to 1.3.x
            or later. "Old broadcast" object is defined as AddressRange with
            0.0.0.0 as a start and end addresses of the range. Generated
            script should have "0.0.0.0" but the compiler uses "0/0" instead.
2009-11-06 13:36:08 +00:00
Roman Bovsunivskiy
311c6ac2c5 Interface editor is working now 2009-11-06 03:31:50 +00:00
Roman Bovsunivskiy
9471927025 Now it should compile 2009-11-05 02:35:21 +00:00
Roman Bovsunivskiy
72c0e820f9 Beginning of template's firewall interface editing 2009-11-05 02:28:37 +00:00
Vadim Kurland
e14dc615fb fixes #565 Ability to match ip options in fwb_ipfw; warning when IPService object with "any options" attribute is used 2009-11-04 20:14:21 +00:00
Vadim Kurland
ee6c67d640 matching of IPService object with attribute "any option" causes warning in compiler for ipfilter. Fixes #564 2009-11-04 19:35:52 +00:00
Vadim Kurland
02e767f799 support for IPService with "any options" attribute. Fixes #563 2009-11-04 19:14:38 +00:00
Vadim Kurland
d58bc1ccc1 GUI support for the "any options" attribute of IPService object. Fixes #561 2009-11-04 14:52:40 +00:00
Vadim Kurland
f8142047d7 2009-11-03 Vadim Kurland <vadim@vk.crocodile.org>
* NATCompiler_ipt.cpp (dynamicInterfaceInTSrc::processNext):
Implemented feature request #2829661: "SNAT instead of MASQUERADE
on dynamic interfaces". NAT rule options dialog now has a checkbox
that makes compiler use SNAT target instead of MASQUERADING when
checked when TSrc has dynamic interface. Apparently MASQ target
has problems when iptables NAT is used in combination with policy
routing. Using SNAT with a variable that gets interface address
solves the problem. By default this option is off, that is
compiler uses MASQUERADE target when TSrc has dynamic interface.
Fixes #560
2009-11-03 17:21:00 +00:00
Vadim Kurland
313184be2c 2009-11-03 Vadim Kurland <vadim@vk.crocodile.org>
* PolicyCompiler_ipt.cpp (PolicyCompiler_ipt::prolog): Fixed bug
#2792847 (SourceForge) "cant turn off "part of any" for a rule if
default is on". There was no way to turn option "Assume firewall
is part of any" for just one rule when it was ON globally. Now
this attribute is presented as a tri-state control in the rule
options dialog, with options "Follow global setting", "On" and
"Off". Now this option can be turned on and off in individual
rules regardless of the global setting. Default is "follow
global".  Old "Off" maps to the new "follow global", old "On" maps
to the new "On". Fixes #559.
2009-11-03 12:16:36 +00:00
Vadim Kurland
6416e0ec34 fixes #557 Moved configlets for pf, ipf and ipfw to their own directories; fixes to return from CompilerDriver::run() in case of fatal errors when we can not continue even in test mode; fixed change in Helper() where it should throw string() exception instead of calling Compiler::abort() 2009-11-03 08:38:34 +00:00
Vadim Kurland
ba8c9655fc using Compiler::abort() everywhere instead of just throwing exception so that the program does not exit in case of error in single rule compile mode. Fixes #558 2009-11-03 06:41:29 +00:00
Vadim Kurland
1c8eb6d7ac 2009-11-02 Vadim Kurland <vadim@vk.crocodile.org>
* PolicyCompiler_pf_writers.cpp (PrintRule::_printInterface): New
feature: optimization in compiler for PF. Rules that have several
interface objects (or a group) in the "Interface" column are
compiled using "{ }" grouping to produce only one configuration
line instead of several for such rule. Fixes #76
2009-11-02 18:03:20 +00:00
Vadim Kurland
0b55b0b734 data file upgrade 2009-11-02 15:29:24 +00:00
Vadim Kurland
255f420f6c test files upgrade and some formatting for code style 2009-11-02 14:44:20 +00:00
Vadim Kurland
aab1d76910 2009-11-02 Vadim Kurland <vadim@vk.crocodile.org>
* PolicyCompiler_pf.cpp (SpecialServices::processNext): Compiler
for PF generates "allow-opts" keyword when IPService object used
in the rule has IP options. This includes new option "router-alert".
Fixes #503

* IPServiceDialog.cpp (IPServiceDialog::applyChanges): Added GUI
elements to support IP option "router-alert" which is now
available as an attribute of IPService object. Fixes #502
2009-11-02 14:10:56 +00:00
Vadim Kurland
2310dad6ff 2009-11-01 Vadim Kurland <vadim@vk.crocodile.org>
* CompilerDriver_pf.cpp (CompilerDriver_pf::printStaticOptions):
Added support for PF configuration parameter "set state-policy"
which can have values "if-bound" or "floating". The GUI input
element provides these options in addition to the default empty
option. If empty list item is selected, command "set state-policy"
is not added to the generated .conf file at all. Fixes #423
2009-11-01 17:50:34 +00:00
Illya Yalovoy
c0f0f3afb9 fixes #555 2009-10-31 22:15:44 +00:00
Vadim Kurland
7afeda42fb 2009-10-31 Vadim Kurland <vadim@vk.crocodile.org>
* instOptionsDialog.cpp (instOptionsDialog::instOptionsDialog):
New feature: password caching. Built-in installer can remember
firewall password (and enable password for Ciscos) for the
duration of the session. Passwords are never stored permanenetly
in any form, encrypted or plain text. The user needs to enter
password once when they activate generated policy. If they keep
the program open and need to modify and activate policy again, the
password fields in the installer dialog can be filled
automatically. The feature is optional and is off by default.
Cached passwords are associated with the firewall object and
account name used to activate policy. Implemented by a2k@codeminders.com
2009-10-31 07:10:18 +00:00
Roman Bovsunivskiy
7e609b72d5 Code style fixes, changel tooltip for "remember password", password is now saved when user accepts the dialog. 2009-10-30 21:39:54 +00:00
Roman Bovsunivskiy
69d3884605 Tooltip for remember password box 2009-10-30 20:07:09 +00:00
Roman Bovsunivskiy
26ba70abb0 Remember passwords 2009-10-30 20:05:31 +00:00
Roman Bovsunivskiy
54761aed6f Unselect other rules when showing rule with error 2009-10-30 17:11:52 +00:00
Roman Bovsunivskiy
0a2eb51c89 Fixed #553 and #554 2009-10-30 17:02:16 +00:00
Roman Bovsunivskiy
d57983c061 Clear filter on new object creation. Do not re-filter tree if last and current filter is emprty. 2009-10-30 16:54:52 +00:00
Illya Yalovoy
f8203278e9 refs #537 2009-10-29 19:58:00 +00:00
Illya Yalovoy
ca07ba48bc refs #537 2009-10-28 22:37:58 +00:00
Roman Bovsunivskiy
cf54b9b705 Now setting right project to active before selectin rule 2009-10-28 21:46:41 +00:00
Illya Yalovoy
097809d8a3 refs #546 2009-10-28 21:04:29 +00:00
Illya Yalovoy
5fb74db8b4 fixes #546 2009-10-28 21:03:53 +00:00
Vadim Kurland
9e0e1143de Added standard top comment to the new files 2009-10-28 18:17:09 +00:00
Vadim Kurland
6b093abd88 fixes #551 crash in instDialog if current project panel is switched before compile starts 2009-10-28 18:06:18 +00:00
Vadim Kurland
302b46cdc7 fixes #548 user should be able to delete any ruleset object except for the very last one of each type 2009-10-27 21:30:41 +00:00
Roman Bovsunivskiy
78c50cb5e1 Now corrent rule set is selected and opened in editor when error message is clicked 2009-10-27 20:31:59 +00:00
Vadim Kurland
19183a0aa1 fixes #549 fixed crash of policy compilers fwb_ipt and fwb_pf and the GUI in single rule compile mode on branching rules with no target ruleset 2009-10-27 18:57:34 +00:00
Roman Bovsunivskiy
0ccd806281 Fixed pro file to compile right on mac 2009-10-27 14:43:36 +00:00
Vadim Kurland
5febcbad72 fixes #550 catching FWException while loading template library; upgraded templates.xml to DTD v13 that includes NAT actions 2009-10-27 07:47:08 +00:00
Illya Yalovoy
358b0935f8 crash fix. 2009-10-26 22:21:14 +00:00