summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2000-03-31 14:03:37 +0000
committerbrian <brian@FreeBSD.org>2000-03-31 14:03:37 +0000
commit942ce5d318caa53f2452f098ec4d8f3ac78b2a99 (patch)
tree95b132a18154e0f2260f0a6b857a1747fa8696f7
parent4be601e0e6940379f2234eaa51b63d536a42b449 (diff)
downloadFreeBSD-src-942ce5d318caa53f2452f098ec4d8f3ac78b2a99.zip
FreeBSD-src-942ce5d318caa53f2452f098ec4d8f3ac78b2a99.tar.gz
When an incoming packet is received that is not specifically
redirected and when no target address has been specified, NAT the destination address to the alias address rather than allowing people direct access to your internal network from outside.
-rw-r--r--lib/libalias/alias_db.c2
-rw-r--r--sys/netinet/libalias/alias_db.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c
index 1ad28e8..296f0d1 100644
--- a/lib/libalias/alias_db.c
+++ b/lib/libalias/alias_db.c
@@ -1458,7 +1458,7 @@ FindOriginalAddress(struct in_addr alias_addr)
if (targetAddress.s_addr != 0)
return targetAddress;
else
- return alias_addr;
+ return aliasAddress;
}
else
{
diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c
index 1ad28e8..296f0d1 100644
--- a/sys/netinet/libalias/alias_db.c
+++ b/sys/netinet/libalias/alias_db.c
@@ -1458,7 +1458,7 @@ FindOriginalAddress(struct in_addr alias_addr)
if (targetAddress.s_addr != 0)
return targetAddress;
else
- return alias_addr;
+ return aliasAddress;
}
else
{
OpenPOWER on IntegriCloud