aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2000-06-20 12:18:40 +0000
committerBrian Somers <brian@FreeBSD.org>2000-06-20 12:18:40 +0000
commit86c5e1ea4da1fd1b4499b998b2cc58a98d5d1ccd (patch)
tree585d94a53844ebe7ebc6e394396b016cf0616527 /usr.sbin/ppp
parent8f921b5c5efa14323ee09fcb374c62c873ade614 (diff)
downloadsrc-86c5e1ea4da1fd1b4499b998b2cc58a98d5d1ccd.tar.gz
src-86c5e1ea4da1fd1b4499b998b2cc58a98d5d1ccd.zip
Remove ``nat pptp'' as this is now done transparently by libalias.
Notes
Notes: svn path=/head/; revision=61863
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/README.changes1
-rw-r--r--usr.sbin/ppp/command.c1
-rw-r--r--usr.sbin/ppp/nat_cmd.c24
-rw-r--r--usr.sbin/ppp/nat_cmd.h1
-rw-r--r--usr.sbin/ppp/ppp.824
-rw-r--r--usr.sbin/ppp/ppp.8.m424
6 files changed, 1 insertions, 74 deletions
diff --git a/usr.sbin/ppp/README.changes b/usr.sbin/ppp/README.changes
index ac4de49937f4..ec6d4f981ebf 100644
--- a/usr.sbin/ppp/README.changes
+++ b/usr.sbin/ppp/README.changes
@@ -101,3 +101,4 @@ o Unbalanced quotes in commands are now warned about and the entire command
o It is now only necessary to escape the `-' character in chat scripts twice.
See the example files for details.
o Environment variables and ~ are expanded on in commands
+o ``nat pptp'' is no longer necessary as this is now done transparently
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index afd88656d7ab..04c71ea068cd 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -597,7 +597,6 @@ static struct cmdtab const NatCommands[] =
(const void *) PKT_ALIAS_LOG},
{"port", NULL, nat_RedirectPort, LOCAL_AUTH, "port redirection",
"nat port proto localaddr:port[-port] aliasport[-aliasport]"},
- {"pptp", NULL, nat_Pptp, LOCAL_AUTH, "Set the PPTP address", "nat pptp IP"},
{"proxy", NULL, nat_ProxyRule, LOCAL_AUTH,
"proxy control", "nat proxy server host[:port] ..."},
{"same_ports", NULL, NatOption, LOCAL_AUTH,
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c
index 1d58825714a2..00610221644f 100644
--- a/usr.sbin/ppp/nat_cmd.c
+++ b/usr.sbin/ppp/nat_cmd.c
@@ -316,30 +316,6 @@ nat_ProxyRule(struct cmdargs const *arg)
}
int
-nat_Pptp(struct cmdargs const *arg)
-{
- struct in_addr addr;
-
- if (arg->argc == arg->argn) {
- addr.s_addr = INADDR_NONE;
- PacketAliasPptp(addr);
- return 0;
- }
-
- if (arg->argc != arg->argn + 1)
- return -1;
-
- addr = GetIpAddr(arg->argv[arg->argn]);
- if (addr.s_addr == INADDR_NONE) {
- log_Printf(LogWARN, "%s: invalid address\n", arg->argv[arg->argn]);
- return 1;
- }
-
- PacketAliasPptp(addr);
- return 0;
-}
-
-int
nat_SetTarget(struct cmdargs const *arg)
{
struct in_addr addr;
diff --git a/usr.sbin/ppp/nat_cmd.h b/usr.sbin/ppp/nat_cmd.h
index f9bee456834c..7d329a0d8b40 100644
--- a/usr.sbin/ppp/nat_cmd.h
+++ b/usr.sbin/ppp/nat_cmd.h
@@ -10,7 +10,6 @@ struct cmdargs;
extern int nat_RedirectPort(struct cmdargs const *);
extern int nat_RedirectAddr(struct cmdargs const *);
extern int nat_ProxyRule(struct cmdargs const *);
-extern int nat_Pptp(struct cmdargs const *);
extern int nat_SetTarget(struct cmdargs const *);
extern struct layer natlayer;
diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8
index 092505fb4736..ee6cf0dba93f 100644
--- a/usr.sbin/ppp/ppp.8
+++ b/usr.sbin/ppp/ppp.8
@@ -3145,30 +3145,6 @@ or a range of ports the same size as the other ranges.
This option is useful if you wish to run things like Internet phone on
machines behind your gateway, but is limited in that connections to only
one interior machine per source machine and target port are possible.
-.It nat pptp Op Ar addr
-This tells
-.Nm
-to translate any
-.Em G Ns No eneral
-.Em R Ns No outing
-.Em E Ns No encapsulated
-.Pq Dv IPPROTO_GRE
-packets using
-.Ar addr
-rather than the local interface address.
-This allows the uses of the
-.Em P Ns No oint
-to
-.Em P Ns No oint
-.Em T Ns No unneling
-.Em P Ns No rotocol
-on a machine on the internal network.
-.Pp
-If
-.Ar addr
-is not specified,
-.Dv PPTP
-address translation is disabled.
.It "nat proxy cmd" Ar arg Ns No ...
This command tells
.Nm
diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4
index 092505fb4736..ee6cf0dba93f 100644
--- a/usr.sbin/ppp/ppp.8.m4
+++ b/usr.sbin/ppp/ppp.8.m4
@@ -3145,30 +3145,6 @@ or a range of ports the same size as the other ranges.
This option is useful if you wish to run things like Internet phone on
machines behind your gateway, but is limited in that connections to only
one interior machine per source machine and target port are possible.
-.It nat pptp Op Ar addr
-This tells
-.Nm
-to translate any
-.Em G Ns No eneral
-.Em R Ns No outing
-.Em E Ns No encapsulated
-.Pq Dv IPPROTO_GRE
-packets using
-.Ar addr
-rather than the local interface address.
-This allows the uses of the
-.Em P Ns No oint
-to
-.Em P Ns No oint
-.Em T Ns No unneling
-.Em P Ns No rotocol
-on a machine on the internal network.
-.Pp
-If
-.Ar addr
-is not specified,
-.Dv PPTP
-address translation is disabled.
.It "nat proxy cmd" Ar arg Ns No ...
This command tells
.Nm