mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-26 04:32:01 +02:00
Set 'bridge-nf-call-ip6?tables' if bridges are configured.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4f296b62ae
commit
2f6c5fd260
@ -227,6 +227,10 @@ sub setup_forwarding( $$ ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
emit '';
|
emit '';
|
||||||
|
|
||||||
|
emit ( ' echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables' ,
|
||||||
|
''
|
||||||
|
) if have_bridges;
|
||||||
} else {
|
} else {
|
||||||
if ( $config{IP_FORWARDING} eq 'on' ) {
|
if ( $config{IP_FORWARDING} eq 'on' ) {
|
||||||
emit ' echo 1 > /proc/sys/net/ipv6/conf/all/forwarding';
|
emit ' echo 1 > /proc/sys/net/ipv6/conf/all/forwarding';
|
||||||
@ -238,6 +242,10 @@ sub setup_forwarding( $$ ) {
|
|||||||
|
|
||||||
emit '';
|
emit '';
|
||||||
|
|
||||||
|
emit ( ' echo 1 > /proc/sys/net/bridge/bridge-nf-call-ip6tables' ,
|
||||||
|
''
|
||||||
|
) if have_bridges;
|
||||||
|
|
||||||
my $interfaces = find_interfaces_by_option 'forward';
|
my $interfaces = find_interfaces_by_option 'forward';
|
||||||
|
|
||||||
if ( @$interfaces ) {
|
if ( @$interfaces ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user