From 9499a47a0d8e7a51fdcddc32fabf813463e3dba3 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 1 Mar 2013 10:44:40 -0800 Subject: [PATCH] Revert "Use '--to-dest' for IPv6 rather than '--to-destination'" This reverts commit c9d8c22b600da044d563bf7a93d94d970c9cc288. --- Shorewall/Perl/Shorewall/Nat.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index dc62f9347..e6dccf5e2 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -714,20 +714,19 @@ sub handle_nat_rule( $$$$$$$$$$$$ ) { if ( $action eq 'DNAT' ) { $target = $action; - my $option = $family == F_IPV4 ? '--to-destination' : '--to-dest'; if ( $server ) { $serverport = ":$serverport" if $serverport; if ( $family == F_IPV4 ) { for my $serv ( split /,/, $server ) { - $target .= " $option ${serv}${serverport}"; + $target .= " --to-destination ${serv}${serverport}"; } } else { for my $serv ( split /,/, $server ) { - $target .= " $option \[${serv}]${serverport}"; + $target .= " --to-destination [${serv}]${serverport}"; } } } else { - $target .= " $option :$serverport"; + $target .= " --to-destination :$serverport"; } }