~ubuntu-branches/ubuntu/natty/arno-iptables-firewall/natty

« back to all changes in this revision

Viewing changes to share/arno-iptables-firewall/plugins/50transparent-dnat.plugin

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2010-01-10 16:46:32 UTC
  • mfrom: (1.1.8 upstream) (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100110164632-d8e9r8svapi2qkec
Tags: 1.9.2.h-1
* New upstream release (Closes: #550222, #553036).
* Unify dependency-based boot-order and old-style update-rc.d, to be similar
  to shorewall's behavior.
* Add lintian override. The init script does handle 'stop', but it is
  shadowed by an if-clause. The 'else' branch handles 'stop' as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# Last changed          : March 19, 2009
9
9
# Requirements          : kernel 2.6 + ip_nat + iptable_nat
10
10
# Comments              : This plugin enables transparent DNAT for internal hosts for
11
 
#                         certain ports. Meaning you can redirect certain TCP/UDP ports (ie. http)
 
11
#                         certain ports. Meaning you can redirect certain TCP/UDP ports (eg. http)
12
12
#                         which should be redirected from a certain INET address to an
13
13
#                         internal address.
14
14
#
89
89
}
90
90
 
91
91
 
92
 
# Check sanity of ie. environment
 
92
# Check sanity of eg. environment
93
93
plugin_sanity_check()
94
94
{
95
95
  if [ -z "$DNAT_MY_INTERNAL_IP" ] || [ -z "$DNAT_MY_EXTERNAL_IP" ]; then