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 @@ -315,30 +315,6 @@ nat_ProxyRule(struct cmdargs const *arg) return PacketAliasProxyRule(cmd); } -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) { 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