From 8a9d04373e063d53d151a473333f411d8ad0226e Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Tue, 26 Jan 2010 23:58:20 +0000 Subject: [PATCH] do not hardcode the path/name to g++ --- build_num | 2 +- qmake.inc.in | 2 +- src/gui/natruleoptionsdialog_q.ui | 221 ++++++++++++++------------- src/iptlib/NATCompiler_PrintRule.cpp | 5 + 4 files changed, 118 insertions(+), 112 deletions(-) diff --git a/build_num b/build_num index 0934ad2f4..34c4e02df 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 2441 +#define BUILD_NUM 2444 diff --git a/qmake.inc.in b/qmake.inc.in index ff10ee272..10343cf4b 100644 --- a/qmake.inc.in +++ b/qmake.inc.in @@ -26,7 +26,7 @@ unix { FWBPARSER_LIB = ../parsers/libfwbparser.a FWTRANSFER_LIB = ../fwtransfer/libfwtransfer.a - QMAKE_CXX = @CCACHE@ @DISTCC@ g++ + QMAKE_CXX = @CCACHE@ @DISTCC@ $$QMAKE_CXX !macx { diff --git a/src/gui/natruleoptionsdialog_q.ui b/src/gui/natruleoptionsdialog_q.ui index 7ab4628cd..9b9b71512 100644 --- a/src/gui/natruleoptionsdialog_q.ui +++ b/src/gui/natruleoptionsdialog_q.ui @@ -1,7 +1,8 @@ - + + NATRuleOptionsDialog_q - - + + 0 0 @@ -9,63 +10,63 @@ 333 - + NAT Rule Options - - - - + + + + QFrame::Box - + QFrame::Sunken - + 1 - - - + + + 12 - + 12 - - + + QFrame::NoFrame - + QFrame::Raised - - + + 2 - + 2 - - - + + + No options are available for this firewall platform - + false - + - + Qt::Vertical - + QSizePolicy::MinimumExpanding - + 20 0 @@ -78,41 +79,41 @@ - - - + + + 12 - - - - Normally, if object used to define translated source address is an interface marked as "dynamic", fwbuilder generates NAT rule with target MASQUERADE. However masquerading has problems with policy routing. This option makes fwbuilder use SNAT target instead. + + + + Normally, if object used to define translated source address is an interface marked as "dynamic", fwbuilder generates NAT rule with target MASQUERADE. However masquerading has problems with policy routing. This option makes fwbuilder use SNAT target instead. - + true - - - + + + Use SNAT target instead of MASQUERADING for NAT rules with dynamic interfaces - - - - Randomize source port mapping in SNAT rules + + + + Randomize source port mapping in SNAT and MASQUERADE rules - - - + + + Qt::Vertical - + 20 81 @@ -122,23 +123,23 @@ - - - + + + 12 - + 12 - + - + Qt::Vertical - + QSizePolicy::Expanding - + 20 20 @@ -146,58 +147,58 @@ - - - - + + + + 0 0 - + Pool type - - + + 12 - + 12 - - - + + + default - + true - - - + + + bitmask - - - + + + random - - - + + + source-hash - - - + + + round-robin @@ -205,15 +206,15 @@ - + - + Qt::Horizontal - + QSizePolicy::Expanding - + 81 20 @@ -221,15 +222,15 @@ - + - + Qt::Vertical - + QSizePolicy::Expanding - + 20 130 @@ -237,22 +238,22 @@ - - - + + + static-port - + - + Qt::Vertical - + QSizePolicy::Fixed - + 20 10 @@ -274,11 +275,11 @@ NATRuleOptionsDialog_q changed() - + 20 20 - + 20 20 @@ -290,11 +291,11 @@ NATRuleOptionsDialog_q changed() - + 20 20 - + 20 20 @@ -306,11 +307,11 @@ NATRuleOptionsDialog_q changed() - + 20 20 - + 20 20 @@ -322,11 +323,11 @@ NATRuleOptionsDialog_q changed() - + 20 20 - + 20 20 @@ -338,11 +339,11 @@ NATRuleOptionsDialog_q changed() - + 20 20 - + 20 20 @@ -354,11 +355,11 @@ NATRuleOptionsDialog_q changed() - + 20 20 - + 20 20 @@ -370,11 +371,11 @@ NATRuleOptionsDialog_q changed() - + 307 108 - + 304 116 @@ -386,11 +387,11 @@ NATRuleOptionsDialog_q changed() - + 366 123 - + 362 166 diff --git a/src/iptlib/NATCompiler_PrintRule.cpp b/src/iptlib/NATCompiler_PrintRule.cpp index 79b28e215..092cc4faf 100644 --- a/src/iptlib/NATCompiler_PrintRule.cpp +++ b/src/iptlib/NATCompiler_PrintRule.cpp @@ -686,6 +686,11 @@ bool NATCompiler_ipt::PrintRule::processNext() switch (rule->getRuleType()) { + case NATRule::Masq: + if (ropt->getBool("ipt_snat_random")) + cmdout << " --random"; + break; + case NATRule::SNAT: if (rule->getStr("ipt_target")=="SNAT") {