Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2000 19:42:39 +0200
From:      Gerhard Sittig <Gerhard.Sittig@gmx.net>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Help : about ipnat rdr problem
Message-ID:  <20000629194239.X9883@speedy.gsinet>
In-Reply-To: <001401bfe171$bd65e970$a60211ac@hef>; from mlist@mail2.cosco.com.cn on Thu, Jun 29, 2000 at 10:28:26AM %2B0800
References:  <001401bfe171$bd65e970$a60211ac@hef>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 29, 2000 at 10:28 +0800, He Feng(BJ) wrote:
> 
> # cat /etc/ipnat.conf
> 
> map ep0 172.17.2.0/24 -> 202.99.99.99/32 portmap tcp/udp 10000:65000
> rdr ep0 202.99.99.99/32 port 110 -> 172.17.2.229 port 110 tcp/udp

ipnat rules are sensitive to the order they're specified in,
IIRC.  rdr usually has to be above map, and more concrete map
(single hosts) has to be before general map (network) rules.
And the above lines miss an icmp (i.e. w/o tcp/udp) map rule.

> #ipnat -C
> #ipnat -f /etc/ipnat.conf

Don't know if this will hurt, but I stick with the "ipnat -CF -f
$CFGFILE" I've seen in OpenBSD installations.


virtually yours   82D1 9B9C 01DC 4FB4 D7B4  61BE 3F49 4F77 72DE DA76
Gerhard Sittig   true | mail -s "get gpg key" Gerhard.Sittig@gmx.net
-- 
     If you don't understand or are scared by any of the above
             ask your parents or an adult to help you.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000629194239.X9883>