summaryrefslogtreecommitdiffstats
path: root/sbin/natd
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-06-20 12:52:27 +0000
committerru <ru@FreeBSD.org>2000-06-20 12:52:27 +0000
commit8f3a6df6e3a28b266828ab78e6e6a912b9512c85 (patch)
treeb55d30ecb6e5f124464618fc2f9d7961867d2832 /sbin/natd
parentc14925aabb91974e4cc7b6df32f15c5bc10de557 (diff)
downloadFreeBSD-src-8f3a6df6e3a28b266828ab78e6e6a912b9512c85.zip
FreeBSD-src-8f3a6df6e3a28b266828ab78e6e6a912b9512c85.tar.gz
Remove ``pptpalias'' since this is now done transparently by libalias(3).
Diffstat (limited to 'sbin/natd')
-rw-r--r--sbin/natd/natd.819
-rw-r--r--sbin/natd/natd.c33
2 files changed, 1 insertions, 51 deletions
diff --git a/sbin/natd/natd.8 b/sbin/natd/natd.8
index 9f8322f..12cb27f 100644
--- a/sbin/natd/natd.8
+++ b/sbin/natd/natd.8
@@ -42,7 +42,6 @@ Network Address Translation Daemon
.Op Fl reverse
.Op Fl proxy_only
.Op Fl proxy_rule Ar proxyspec
-.Op Fl pptpalias Ar localIP
.Sh DESCRIPTION
This program provides a Network Address Translation facility for use
@@ -377,22 +376,6 @@ Use
to put this information into the IP option field or
.Dq encode_tcp_stream
to inject the data into the beginning of the TCP stream.
-
-.It Fl pptpalias Ar localIP
-Allow PPTP packets to go to the defined localIP address.
-PPTP is a VPN or secure
-IP tunneling technology being developed primarily by Microsoft.
-For its encrypted traffic,
-it uses an old IP encapsulation protocol called GRE (47).
-This natd option will translate any traffic of this protocol to a
-single, specified IP address.
-This would allow either one client or one server
-to be serviced with natd.
-If you are setting up a server, don't forget to allow the TCP traffic
-for the PPTP setup.
-For a client or server,
-you must allow GRE (protocol 47) if you have firewall lists active.
-
.El
.Sh RUNNING NATD
@@ -529,6 +512,6 @@ times:
.An Ari Suutari Aq suutari@iki.fi
(natd)
.An Dru Nelson Aq dnelson@redwoodsoft.com
-(PPTP support)
+(early PPTP support)
.An Brian Somers Aq brian@awfulhak.org
(glue)
diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c
index 39aeafc..2f45af5 100644
--- a/sbin/natd/natd.c
+++ b/sbin/natd/natd.c
@@ -91,7 +91,6 @@ static void ReadConfigFile (const char* fileName);
static void SetupPortRedirect (const char* parms);
static void SetupProtoRedirect(const char* parms);
static void SetupAddressRedirect (const char* parms);
-static void SetupPptpAlias (const char* parms);
static void StrToAddr (const char* str, struct in_addr* addr);
static u_short StrToPort (const char* str, const char* proto);
static int StrToPortRange (const char* str, const char* proto, port_range *portRange);
@@ -867,7 +866,6 @@ enum Option {
RedirectAddress,
ConfigFile,
DynamicMode,
- PptpAlias,
ProxyRule,
LogDenied,
LogFacility
@@ -1058,14 +1056,6 @@ static struct OptionInfo optionTable[] = {
"redirect_address",
NULL },
- { PptpAlias,
- 0,
- String,
- "src",
- "define inside machine for PPTP traffic",
- "pptpalias",
- NULL },
-
{ ConfigFile,
0,
String,
@@ -1231,10 +1221,6 @@ static void ParseOption (const char* option, const char* parms)
SetupAddressRedirect (strValue);
break;
- case PptpAlias:
- SetupPptpAlias (strValue);
- break;
-
case ProxyRule:
PacketAliasProxyRule (strValue);
break;
@@ -1356,25 +1342,6 @@ static void Usage ()
exit (1);
}
-void SetupPptpAlias (const char* parms)
-{
- char buf[128];
- char* ptr;
- struct in_addr srcAddr;
-
- strcpy (buf, parms);
-
-/*
- * Extract source address.
- */
- ptr = strtok (buf, " \t");
- if (!ptr)
- errx(1, "pptpalias: missing src address");
-
- StrToAddr (ptr, &srcAddr);
- PacketAliasPptp (srcAddr);
-}
-
void SetupPortRedirect (const char* parms)
{
char buf[128];
OpenPOWER on IntegriCloud