From 68069e04996eb9d8912a2425b064ec537598fc9f Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Fri, 6 Dec 2002 21:00:13 +0000 Subject: [PATCH] Add a section on using user-level PPP NAT to the handbook PR: 44443 Submitted by: Dmitry Morozovsky Approved by: make lint --- .../books/handbook/ppp-and-slip/chapter.sgml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.sgml b/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.sgml index 6f042540d5..7339269a9a 100644 --- a/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/ppp-and-slip/chapter.sgml @@ -1280,6 +1280,33 @@ set nbns 203.14.100.5 + + Using PPP Network Address Translation Capability + PPPNAT + + PPP has ability to use internal NAT without kernel diverting + capabilities. This functionality may be enabled by the following + line in /etc/ppp/ppp.conf: + + nat enable yes + + Alternatively, PPP NAT may be enabled by command-line + option -nat. There is also + /etc/rc.conf knob named + ppp_nat, which is enabled by default. + + If you use this feature, you may also find useful + the following /etc/ppp/ppp.conf options + to enable incoming connections forwarding: + + nat port tcp 10.0.0.2:ftp ftp +nat port tcp 10.0.0.2:http http + + or don't trust the outside at all + + nat deny_incoming yes + + Final System Configuration PPPconfiguration