Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Aug 2003 21:21:31 +0200
From:      Marcin Gryszkalis <mg@fork.pl>
To:        freebsd-ipfw@freebsd.org
Subject:   Re: hostnames resolving problem
Message-ID:  <3F466D3B.9090406@fork.pl>
In-Reply-To: <6.0.0.14.0.20030821203538.025c0440@mail.newspace.net.br>
References:  <6.0.0.14.0.20030821203538.025c0440@mail.newspace.net.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-08-22 01:38, Antonio Torres wrote:
>> (I'm using ipfw2 on 4-STABLE). The ipfw resolves name to
>> *first* ip assigned to the name - but I expect to have *all*
>> ip addresses in the rule. eg.

> the "name to IP" feature only aplies at rule load !
> i.e. when, and only when, the ipfw rule is loaded the name is translated 
> to IP...
> 
> look on `man ipfw` for "me" clause (me= my IP address)...

yes, I know that - but - isn't my question/description clear?
Maybe I'll extend the example.

I issue follownig command:

# ipfw add 10000 allow tcp from any to smtp.o2.pl smtp setup

Current result is that following rule is loaded:

10000 allow tcp from any to 212.126.20.58 dst-port 25 setup

Expected result is following:

10000 allow tcp from any to 212.126.20.58, 212.126.20.60, 212.126.20.61 dst-port 25 setup

(the name smtp.o2.pl has 3 IP addresses assigned)

regards
-- 
Marcin Gryszkalis
http://fork.pl
<><



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