From 2743a411ae662f2966c60baa315644677e9f1505 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 13 Mar 2016 12:51:36 -0700 Subject: [PATCH] Add a jump to DOCKER from OUTPUT Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Misc.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall/Perl/Shorewall/Misc.pm b/Shorewall/Perl/Shorewall/Misc.pm index 44f01e3a4..561ff029d 100644 --- a/Shorewall/Perl/Shorewall/Misc.pm +++ b/Shorewall/Perl/Shorewall/Misc.pm @@ -641,6 +641,7 @@ sub create_docker_rules() { add_ijump( $chainref, j => 'DOCKER', o => 'docker0' ); add_ijump( $chainref, j => 'ACCEPT', i => 'docker0', o => '! docker0' ); add_ijump( $chainref, j => 'ACCEPT', i => 'docker0', o => 'docker0' ) if $dockerref->{options}{routeback}; + add_ijump( $filter_table->{OUTPUT}, j => 'DOCKER' ); decr_cmd_level( $chainref ); add_commands( $chainref, 'fi' ); }