forked from extern/shorewall_code
Compare commits
4 Commits
5.0.13-RC2
...
5.0.13-bas
Author | SHA1 | Date | |
---|---|---|---|
|
9fc56bb896 | ||
|
2c191bf595 | ||
|
4bb942f1f9 | ||
|
04051454bf |
@@ -436,7 +436,7 @@ sub validate_portpair( $$ ) {
|
|||||||
#
|
#
|
||||||
# Accept '-' as a port-range separator
|
# Accept '-' as a port-range separator
|
||||||
#
|
#
|
||||||
$pair =~ tr/-/:/;
|
$pair =~ tr/-/:/ if $pair =~ /^[-0-9]+$/;
|
||||||
|
|
||||||
fatal_error "Invalid port range ($portpair)" if $pair =~ tr/:/:/ > 1;
|
fatal_error "Invalid port range ($portpair)" if $pair =~ tr/:/:/ > 1;
|
||||||
|
|
||||||
|
@@ -134,12 +134,12 @@ sub setup_ecn()
|
|||||||
for my $interface ( @interfaces ) {
|
for my $interface ( @interfaces ) {
|
||||||
my $chainref = ensure_chain 'mangle', ecn_chain( $interface );
|
my $chainref = ensure_chain 'mangle', ecn_chain( $interface );
|
||||||
|
|
||||||
add_ijump $mangle_table->{POSTROUTING} , j => $chainref, $interfaces{$interface}, p => 'tcp', imatch_dest_dev( $interface ) if have_capability 'MANGLE_FORWARD';
|
add_ijump_extended $mangle_table->{POSTROUTING} , j => $chainref, $interfaces{$interface}, p => 'tcp', imatch_dest_dev( $interface ) if have_capability 'MANGLE_FORWARD';
|
||||||
add_ijump $mangle_table->{OUTPUT}, j => $chainref, $interfaces{$interface}, p => 'tcp', imatch_dest_dev( $interface );
|
add_ijump_extended $mangle_table->{OUTPUT}, j => $chainref, $interfaces{$interface}, p => 'tcp', imatch_dest_dev( $interface );
|
||||||
}
|
}
|
||||||
|
|
||||||
for my $host ( @hosts ) {
|
for my $host ( @hosts ) {
|
||||||
add_ijump( $mangle_table->{ecn_chain $host->[0]}, j => 'ECN', $host->[1], targetopts => '--ecn-tcp-remove', p => 'tcp', imatch_dest_net( $host->[2] ) );
|
add_ijump_extended( $mangle_table->{ecn_chain $host->[0]}, j => 'ECN', $host->[1], targetopts => '--ecn-tcp-remove', p => 'tcp', imatch_dest_net( $host->[2] ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3965,7 +3965,7 @@ sub process_mangle_inline( $$$$$$$$$$$$$$$$$$$ ) {
|
|||||||
process_mangle_rule1( $chainref,
|
process_mangle_rule1( $chainref,
|
||||||
$moriginalmark,
|
$moriginalmark,
|
||||||
$msource,
|
$msource,
|
||||||
$dest,
|
$mdest,
|
||||||
$proto,
|
$proto,
|
||||||
merge_macro_column( $mports, $ports ),
|
merge_macro_column( $mports, $ports ),
|
||||||
merge_macro_column( $msports, $sports ),
|
merge_macro_column( $msports, $sports ),
|
||||||
|
@@ -798,7 +798,7 @@
|
|||||||
<para>Normally, only packets whose source address matches an
|
<para>Normally, only packets whose source address matches an
|
||||||
entry in the ipset are dropped. If <option>src-dst</option> is
|
entry in the ipset are dropped. If <option>src-dst</option> is
|
||||||
included, then packets whose destination address matches an
|
included, then packets whose destination address matches an
|
||||||
entry in the ipset are also dropped. </para>
|
entry in the ipset are also dropped.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@@ -920,7 +920,8 @@ net all DROP info</programlisting>then the chain name is 'net-all'
|
|||||||
an administrative system in directories containing the
|
an administrative system in directories containing the
|
||||||
configurations of remote firewalls. The contents of the variable are
|
configurations of remote firewalls. The contents of the variable are
|
||||||
the default value for the <replaceable>system</replaceable>
|
the default value for the <replaceable>system</replaceable>
|
||||||
parameter to the <command>remote-reload</command> and
|
parameter to the <command>remote-start</command>,
|
||||||
|
<command>remote-reload</command> and
|
||||||
<command>remote-restart</command> commands.</para>
|
<command>remote-restart</command> commands.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@@ -647,7 +647,7 @@
|
|||||||
is SW_DBL6 and the default log level is <option>none</option> (no
|
is SW_DBL6 and the default log level is <option>none</option> (no
|
||||||
logging). if <option>ipset-only</option> is given, then chain-based
|
logging). if <option>ipset-only</option> is given, then chain-based
|
||||||
dynamic blacklisting is disabled just as if DYNAMIC_BLACKLISTING=No
|
dynamic blacklisting is disabled just as if DYNAMIC_BLACKLISTING=No
|
||||||
had been specified. </para>
|
had been specified.</para>
|
||||||
|
|
||||||
<para>Possible <replaceable>option</replaceable>s are:</para>
|
<para>Possible <replaceable>option</replaceable>s are:</para>
|
||||||
|
|
||||||
@@ -781,7 +781,8 @@ net all DROP info</programlisting>then the chain name is 'net-all'
|
|||||||
an administrative system in directories containing the
|
an administrative system in directories containing the
|
||||||
configurations of remote firewalls. The contents of the variable are
|
configurations of remote firewalls. The contents of the variable are
|
||||||
the default value for the <replaceable>system</replaceable>
|
the default value for the <replaceable>system</replaceable>
|
||||||
parameter to the <command>remote-reload</command> and
|
parameter to the <command>remote-start</command>,
|
||||||
|
<command>remote-reload</command> and
|
||||||
<command>remote-restart</command> commands.</para>
|
<command>remote-restart</command> commands.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@@ -2621,7 +2621,8 @@ DNAT net loc:192.168.1.3 tcp <emphasis role="bold">4000:4100<
|
|||||||
"!4000:4100").</para>
|
"!4000:4100").</para>
|
||||||
|
|
||||||
<para>Beginning with Shorewall 5.0.14, a hyphen ("-") may also be used to
|
<para>Beginning with Shorewall 5.0.14, a hyphen ("-") may also be used to
|
||||||
separate the two port numbers.</para>
|
separate the two port numbers; when using service names, the colon must
|
||||||
|
still be used.</para>
|
||||||
|
|
||||||
<programlisting>#ACTION SOURCE DESTINATION PROTO DPORT
|
<programlisting>#ACTION SOURCE DESTINATION PROTO DPORT
|
||||||
DNAT net loc:192.168.1.3 tcp <emphasis role="bold">4000-4100</emphasis></programlisting>
|
DNAT net loc:192.168.1.3 tcp <emphasis role="bold">4000-4100</emphasis></programlisting>
|
||||||
|
Reference in New Issue
Block a user