Validate netmap interface

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6150 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-29 18:33:30 +00:00
parent ecbd719bef
commit bc7b6354df

View File

@ -415,6 +415,8 @@ sub setup_netmap() {
$first_entry = 0;
}
fatal_error "Unknown Interface ($interface)" unless known_interface $interface;
if ( $type eq 'DNAT' ) {
add_rule ensure_chain( 'nat' , input_chain $interface ) , "-d $net1 -j NETMAP --to $net2";
} elsif ( $type eq 'SNAT' ) {