mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
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:
parent
ecbd719bef
commit
bc7b6354df
@ -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' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user