summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-06-24 10:49:44 +0000
committerbrian <brian@FreeBSD.org>1997-06-24 10:49:44 +0000
commitdc42cd84a9fff66c6289e7206acf13857fc0aff7 (patch)
treedd5570d6af853439945b89c590055e77739ad05e
parent4faab418b8eb97cf7d9a4819326fe7d3c7fe3571 (diff)
downloadFreeBSD-src-dc42cd84a9fff66c6289e7206acf13857fc0aff7.zip
FreeBSD-src-dc42cd84a9fff66c6289e7206acf13857fc0aff7.tar.gz
Suggest using /etc/services entry rather than a
number in the "ipfw add divert" example.
-rw-r--r--sbin/natd/natd.89
-rw-r--r--usr.sbin/natd/natd.89
2 files changed, 10 insertions, 8 deletions
diff --git a/sbin/natd/natd.8 b/sbin/natd/natd.8
index db683a7..dbda1c5c1 100644
--- a/sbin/natd/natd.8
+++ b/sbin/natd/natd.8
@@ -330,13 +330,14 @@ script to taste. If you're not interested in having a firewall, the
following lines will do:
/sbin/ipfw -f flush
- /sbin/ipfw add divert 6668 all from any to any via ed0
+ /sbin/ipfw add divert natd all from any to any via ed0
/sbin/ipfw add pass all from any to any
-The second line depends on your interface and assumes that you've updated
+The second line depends on your interface (change ed0 as appropriate)
+and assumes that you've updated
.Pa /etc/services
-as above. If you specify real firewall rules, it's best to specify
-line 2 at the start of the script so that
+with the natd entry as above. If you specify real firewall rules, it's
+best to specify line 2 at the start of the script so that
.Nm natd
sees all packets before they are dropped by the firewall. The firewall
rules will be run again on each packet after translation by
diff --git a/usr.sbin/natd/natd.8 b/usr.sbin/natd/natd.8
index db683a7..dbda1c5c1 100644
--- a/usr.sbin/natd/natd.8
+++ b/usr.sbin/natd/natd.8
@@ -330,13 +330,14 @@ script to taste. If you're not interested in having a firewall, the
following lines will do:
/sbin/ipfw -f flush
- /sbin/ipfw add divert 6668 all from any to any via ed0
+ /sbin/ipfw add divert natd all from any to any via ed0
/sbin/ipfw add pass all from any to any
-The second line depends on your interface and assumes that you've updated
+The second line depends on your interface (change ed0 as appropriate)
+and assumes that you've updated
.Pa /etc/services
-as above. If you specify real firewall rules, it's best to specify
-line 2 at the start of the script so that
+with the natd entry as above. If you specify real firewall rules, it's
+best to specify line 2 at the start of the script so that
.Nm natd
sees all packets before they are dropped by the firewall. The firewall
rules will be run again on each packet after translation by
OpenPOWER on IntegriCloud