forked from extern/shorewall_code
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:
parent
3f2b8cda25
commit
14a66a102e
@ -995,14 +995,12 @@ sub process_rule1 ( $$$$$$$$$$ ) {
|
||||
$serverport = '';
|
||||
}
|
||||
|
||||
fatal_error "DNAT Rules Require a Server" if $basictarget eq 'DNAT' && $server eq ALLIPv4;
|
||||
|
||||
#
|
||||
# After DNAT, dest port will be the server port
|
||||
#
|
||||
$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 =~ /:/;
|
||||
#
|
||||
# Generate the target
|
||||
|
Loading…
Reference in New Issue
Block a user