Require server with DNAT -- tweak

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6230 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-04 14:55:02 +00:00
parent 3f2b8cda25
commit 14a66a102e

View File

@ -995,14 +995,12 @@ sub process_rule1 ( $$$$$$$$$$ ) {
$serverport = ''; $serverport = '';
} }
fatal_error "DNAT Rules Require a Server" if $basictarget eq 'DNAT' && $server eq ALLIPv4;
# #
# After DNAT, dest port will be the server port # After DNAT, dest port will be the server port
# #
$ports = $serverport if $serverport; $ports = $serverport if $serverport;
fatal_error "A server must be specified in the DEST column in $action rules" unless ( $actiontype & REDIRECT ) || $server; fatal_error "A server must be specified in the DEST column in $action rules" unless ( $actiontype & REDIRECT ) || $server ne ALLIPv4;
fatal_error "Invalid server ($server)" if $server =~ /:/; fatal_error "Invalid server ($server)" if $server =~ /:/;
# #
# Generate the target # Generate the target