1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-25 12:47:44 +01:00

see #2367 using correct path to the "platform" attribute of the firewall object; tested upgrade path 4.1.3 -> 4.2.1 -> 4.3.0 to make sure all rules get converted correctly

This commit is contained in:
Vadim Kurland 2011-05-10 13:57:21 -07:00
parent 38540cec7c
commit c3bcd6a9ef

View File

@ -100,7 +100,7 @@
<xsl:template match="//fwb:PolicyRule[attribute::action='Classify']" mode="copy">
<xsl:variable name="platform" select="../../../fwb:Firewall/@platform"/>
<xsl:variable name="platform" select="../../@platform"/>
<xsl:variable name="ipt_make_terminating"
select="../../fwb:FirewallOptions/fwb:Option[attribute::name='classify_mark_terminating']"/>
@ -187,6 +187,35 @@
<xsl:attribute name="name">routing</xsl:attribute>False</xsl:element>
<xsl:text>
</xsl:text>
<xsl:element name="Option" namespace="http://www.fwbuilder.org/1.0/">
<xsl:attribute name="name">platform</xsl:attribute>
<xsl:value-of select="$platform"/>
</xsl:element>
<xsl:text>
</xsl:text>
<xsl:element name="Option" namespace="http://www.fwbuilder.org/1.0/">
<xsl:attribute name="name">ipt_make_terminating</xsl:attribute>
<xsl:value-of select="$ipt_make_terminating"/>
</xsl:element>
<xsl:text>
</xsl:text>
<xsl:element name="Option" namespace="http://www.fwbuilder.org/1.0/">
<xsl:attribute name="name">pf_make_terminating</xsl:attribute>
<xsl:value-of select="$pf_make_terminating"/>
</xsl:element>
<xsl:text>
</xsl:text>
</xsl:element>
<xsl:text>
</xsl:text>
@ -199,7 +228,7 @@
<xsl:template match="//fwb:PolicyRule[attribute::action='Route']" mode="copy">
<xsl:variable name="platform" select="../../../fwb:Firewall/@platform"/>
<xsl:variable name="platform" select="../../@platform"/>
<!-- Fwbuilder action Route for iptables was terminating by default
but non-terminating if option "ipt_continue" was present and