From owner-freebsd-questions@FreeBSD.ORG Mon Jul 18 15:36:13 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BCB316A41C for ; Mon, 18 Jul 2005 15:36:13 +0000 (GMT) (envelope-from blake.darche@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88A6A43D45 for ; Mon, 18 Jul 2005 15:36:12 +0000 (GMT) (envelope-from blake.darche@gmail.com) Received: by wproxy.gmail.com with SMTP id i11so1028998wra for ; Mon, 18 Jul 2005 08:36:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ef7YS9QmjDVPwuuNi3vJAmWiXtaktgYlnlvRgOtCaoATkxndmus437BFa0bYotxy4VqMTCMrlLt62Yz6UMMoMeNtq+KB5bu+VcvcU0yvouHU0SYbi5xS5xUUtUwhZe+hweo5BGyeHUkjcB73HIk8X7Vu/ACvguuLw8s1Ufw4Iyk= Received: by 10.54.44.53 with SMTP id r53mr404539wrr; Mon, 18 Jul 2005 08:36:11 -0700 (PDT) Received: by 10.54.57.73 with HTTP; Mon, 18 Jul 2005 08:36:11 -0700 (PDT) Message-ID: <287fd0790507180836794ba7dc@mail.gmail.com> Date: Mon, 18 Jul 2005 11:36:11 -0400 From: Blake Darche To: Chuck Swiger , freebsd-questions@freebsd.org In-Reply-To: <432433990.20050718192334@deralsem.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1556383370.20050718141952@deralsem.com> <42DBC7D6.4060305@mac.com> <432433990.20050718192334@deralsem.com> Cc: Subject: Re: Re[2]: Real IP under NAT X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Blake Darche List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2005 15:36:13 -0000 Chuck, pf can do this: " Bidirectional Mapping (1:1 mapping) A bidirectional mapping can be established by using the binat rule. A binat rule establishes a one to one mapping between an internal IP address and an external address. This can be useful, for example, to provide a web server on the internal network with its own external IP address. Connections from the Internet to the external address will be translated to the internal address and connections from the web server (such as DNS requests) will be translated to the external address. TCP and UDP ports are never modified with binat rules as they are with nat rules. Example: web_serv_int =3D "192.168.1.100" web_serv_ext =3D "24.5.0.6" binat on tl0 from $web_serv_int to any -> $web_serv_ext " http://www.openbsd.org/faq/pf/nat.html Blake On 7/18/05, DerAlSem wrote: > Hello Chuck, >=20 > Monday, July 18, 2005, 7:16:38 PM, you wrote: >=20 > > DerAlSem wrote: > > [ ... ] > >> I've 5 external (real) IP, one is assigned on external if. Also there > >> are 20 internal computers with 192.168.0.* ip's (NAT+IPFW). I need to = assign one > >> of that computer an external ip. Somebody told me, that it can be done > >> with ARP-proxy, but i couldn't find any info on that. 10x in advance. >=20 > > See "man natd": >=20 > > -redirect_address localIP publicIP > > Redirect traffic for public IP address to a machine o= n the > > local network. This function is known as static NAT.= Nor- > > mally static NAT is useful if your ISP has allocated = a small > > block of IP addresses to you, but it can even be used= in the > > case of single address: >=20 > > redirect_address 10.0.0.8 0.0.0.0 >=20 > > The above command would redirect all incoming traffic= to > > machine 10.0.0.8. >=20 >=20 > No, that won't work, because i need an external IP on LAN machine. >=20 > Ext IP adresses - 1.2.3.1-1.2.3.5 > Gate ext_if - 1.2.3.1 > Gate int_if - 192.168.0.1 > LAN (via NAT) machines - 192.168.0.2-20 > Another LAN (via NAT) machine - 1.2.3.2 >=20 > How? >=20 > -- > Best regards, > DerAlSem mailto:deralsem@deralsem.com >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >