From 63e11bb6c8d0e1ac10c3d664879e6eab675da836 Mon Sep 17 00:00:00 2001 From: kstailey Date: Wed, 26 Feb 1997 04:44:27 +0000 Subject: even more examples --- share/ipf/nat.1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share/ipf/nat.1') 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 -- cgit v1.2.3