xref: /illumos-gate/usr/src/cmd/ipf/examples/ftppxy (revision b30d193948be5a7794d7ae3ba0ed9c2f72c88e0f)
1#!/bin/sh
2# The proxy bit is as follows:
3# proxy [port <portname>] <tag>/<protocol>
4# the <tag> should match a tagname in the proxy table, as does the protocol.
5# this format isn't finalised yet
6echo "map ed0 0/0 -> 192.1.1.1/32 proxy port ftp ftp/tcp" | /sbin/ipnat -f -
7