diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm
index 814b4cf06..f4be6d98f 100644
--- a/Shorewall/Perl/Shorewall/Providers.pm
+++ b/Shorewall/Perl/Shorewall/Providers.pm
@@ -1086,10 +1086,8 @@ CEOF
}
}
-sub add_an_rtrule( ) {
- my ( $source, $dest, $provider, $priority, $originalmark ) =
- split_line( 'rtrules file',
- { source => 0, dest => 1, provider => 2, priority => 3 , mark => 4 } );
+sub add_an_rtrule1( $$$$$ ) {
+ my ( $source, $dest, $provider, $priority, $originalmark ) = @_;
our $current_if;
@@ -1178,6 +1176,17 @@ sub add_an_rtrule( ) {
progress_message " Routing rule \"$currentline\" $done";
}
+sub add_an_rtrule( ) {
+ my ( $sources, $dests, $provider, $priority, $originalmark ) =
+ split_line( 'rtrules file',
+ { source => 0, dest => 1, provider => 2, priority => 3 , mark => 4 } );
+ for my $source ( split_list( $sources, "source" ) ) {
+ for my $dest (split_list( $dests , "dest" ) ) {
+ add_an_rtrule1( $source, $dest, $provider, $priority, $originalmark );
+ }
+ }
+}
+
sub add_a_route( ) {
my ( $provider, $dest, $gateway, $device ) =
split_line( 'routes file',
diff --git a/Shorewall/manpages/shorewall-rtrules.xml b/Shorewall/manpages/shorewall-rtrules.xml
index e2865698e..2c2ff073a 100644
--- a/Shorewall/manpages/shorewall-rtrules.xml
+++ b/Shorewall/manpages/shorewall-rtrules.xml
@@ -48,6 +48,9 @@
&interface in this column to indicate
that the source is the primary IP address of the named
interface.
+
+ Beginning with Shorewall 4.6.8, you may specify a
+ comma-separated list of addresses in this column.
@@ -64,6 +67,9 @@
role="bold">DEST, place "-" in that column. Note that you
may not omit both SOURCE and
DEST.
+
+ Beginning with Shorewall 4.6.8, you may specify a
+ comma-separated list of addresses in this column.
diff --git a/Shorewall6/manpages/shorewall6-rtrules.xml b/Shorewall6/manpages/shorewall6-rtrules.xml
index 89909c100..66520e359 100644
--- a/Shorewall6/manpages/shorewall6-rtrules.xml
+++ b/Shorewall6/manpages/shorewall6-rtrules.xml
@@ -48,6 +48,9 @@
&interface in this column to indicate
that the source is the primary IP address of the named
interface.
+
+ Beginning with Shorewall 4.6.8, you may specify a
+ comma-separated list of addresses in this column.
@@ -64,6 +67,9 @@
role="bold">DEST, place "-" in that column. Note that you
may not omit both SOURCE and
DEST.
+
+ Beginning with Shorewall 4.6.8, you may specify a
+ comma-separated list of addresses in this column.