C50dnat_many.rul
 GPL 2.0
 Milan Kocian <milon@wq.cz>

Sample rules for enabling DNAT with iptables using packet's marking.
This example is limited for fixed external IP but can handle multiple
DNAT using BASH array.

Due to the routing changes in iptables section with security concern, 
only set DNAT is not enough.

I am not shell scripter, so excuse my shell constructions :-))

All changes address to ipmasq maintainer, please milon@wq.cz

Since ipmasq should be POSIX shell script, there may be some issues
using BASH if you set /bin/sh to non-BASH.

(These scrits are sourced by ipmasq)

=====

C50dnat_1.rul

This script is a simplified example of DNAT of above example.
This is POSIX. Untested but should work :-) 
Use this as a reference.  

Osamu Aoki <osamu@debian.org> Sat 31 Jul 2004 01:38:49 AM CEST
