summaryrefslogtreecommitdiff
path: root/share/ipf/nat.1
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1996-07-18 05:57:25 +0000
committerdm <dm@cvs.openbsd.org>1996-07-18 05:57:25 +0000
commit32c1571b6340f34ac25cc12f7bbac65dd8209b45 (patch)
treebf257b3cd4eadd635f5ee6cf370dcbe9e2b2ba20 /share/ipf/nat.1
parent855450577164de85ddee7341a7ed13c7073882ca (diff)
added my two firewall examples, plus the stuff from the distribution
Diffstat (limited to 'share/ipf/nat.1')
-rw-r--r--share/ipf/nat.114
1 files changed, 14 insertions, 0 deletions
diff --git a/share/ipf/nat.1 b/share/ipf/nat.1
new file mode 100644
index 00000000000..9c26754a57f
--- /dev/null
+++ b/share/ipf/nat.1
@@ -0,0 +1,14 @@
+# 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
+# for each new user.
+#
+map ed1 10.1.0.0/16 -> 240.1.0.1/32 portmap tcp 10000:20000
+map ed1 10.1.0.0/16 -> 240.1.0.0/24
+#
+# Redirection is triggered for input packets.
+# For example, to redirect FTP connections through this box, to the local ftp
+# port, forcing them to connect through a proxy, you would use:
+#
+rdr ed0 0.0.0.0/0 port ftp -> 127.0.0.1 port ftp
+#