forked from extern/shorewall_code
Fix 'routeback' in routestopped file
This commit is contained in:
parent
8915145607
commit
8089ef1599
@ -330,6 +330,8 @@ sub process_routestopped() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
unless ( $options eq '-' ) {
|
unless ( $options eq '-' ) {
|
||||||
|
my $chainref = $filter_table->{FORWARD};
|
||||||
|
|
||||||
for my $option (split /,/, $options ) {
|
for my $option (split /,/, $options ) {
|
||||||
if ( $option eq 'routeback' ) {
|
if ( $option eq 'routeback' ) {
|
||||||
if ( $routeback ) {
|
if ( $routeback ) {
|
||||||
@ -341,7 +343,7 @@ sub process_routestopped() {
|
|||||||
my $source = match_source_net $host;
|
my $source = match_source_net $host;
|
||||||
my $dest = match_dest_net $host;
|
my $dest = match_dest_net $host;
|
||||||
|
|
||||||
emit "run_iptables -A FORWARD -i $interface -o $interface $source $dest -j ACCEPT";
|
add_rule $chainref , "-i $interface -o $interface $source $dest -j ACCEPT";
|
||||||
clearrule;
|
clearrule;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user