From: kstailey Date: Wed, 26 Feb 1997 04:44:26 +0000 (+0000) Subject: even more examples X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f3841018963d22ec7ed5f1a7cc91f5ac544fe613;p=openbsd even more examples --- diff --git a/share/ipf/nat.1 b/share/ipf/nat.1 index 132583e5246..f4194c8f97b 100644 --- a/share/ipf/nat.1 +++ b/share/ipf/nat.1 @@ -1,7 +1,10 @@ # map all tcp connections from network 10 to the address of the first ppp0 -# interface +# interface (which can be dynamically assigned prior to use of ipnat) map ppp0 10.0.0.0/8 -> ppp0/32 portmap tcp/udp 10000:20000 +# map all tcp connections from network 10 into addresses of network 240.1.0 +map ppp0 10.0.0.0/8 -> 240.1.0.0/24 portmap tcp/udp 10000:60000 + # map all tcp connections from 10.1.0.0/16 to 240.1.0.1, changing the source # port number to something between 10,000 and 20,000 inclusive. For all other # IP packets, allocate an IP # between 240.1.0.0 and 240.1.0.255, temporarily