diff options
-rw-r--r-- | lib/Vyatta/SrcNatRule.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Vyatta/SrcNatRule.pm b/lib/Vyatta/SrcNatRule.pm index bdfe199..49ec119 100644 --- a/lib/Vyatta/SrcNatRule.pm +++ b/lib/Vyatta/SrcNatRule.pm @@ -203,6 +203,10 @@ sub rule_str { } else { return ("\"$addr\" is not a valid IP address", undef) if (!Vyatta::TypeChecker::validateType('ipv4', $addr, 1)); + + print("Warning: IP address $addr does not exist on the system!\n") + if !(is_local_address($addr)); + $to_src .= $addr; } } elsif (defined($self->{_outside_addr}->{_range}->{_start}) |