From owner-freebsd-questions@FreeBSD.ORG Sun Nov 2 08:07:26 2003 Return-Path: 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 E1E9E16A4CE for ; Sun, 2 Nov 2003 08:07:26 -0800 (PST) Received: from g38.rdsbv.ro (g38.rdsbv.ro [193.231.237.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id D13E643FBD for ; Sun, 2 Nov 2003 08:07:25 -0800 (PST) (envelope-from petre@kgb.ro) Received: from dzerjinski.kgb.ro (kgb [193.231.237.196]) by g38.rdsbv.ro (Postfix) with ESMTP id 28EEC11A5; Sun, 2 Nov 2003 18:07:24 +0200 (EET) From: Petre Bandac Organization: KGB To: Doug Poland , questions@freebsd.org Date: Sun, 2 Nov 2003 18:07:23 +0200 User-Agent: KMail/1.5.1 References: <20031102004208.GA44763@polands.org> In-Reply-To: <20031102004208.GA44763@polands.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311021807.23408.petre@kgb.ro> Subject: Re: NAT and gateway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: petre@kgb.ro List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Nov 2003 16:07:27 -0000 snack% /sbin/ifconfig rl0: flags=8843 mtu 1500 inet 213.157.171.x netmask 0xffffff00 broadcast 213.157.171.255 ether 00:02:44:30:dc:4b media: Ethernet autoselect (100baseTX ) status: active rl1: flags=8843 mtu 1500 inet 213.157.185.x netmask 0xfffffff0 broadcast 213.157.185.239 inet 192.168.200.1 netmask 0xffffff00 broadcast 192.168.200.255 ether 00:02:44:34:8c:72 media: Ethernet autoselect (100baseTX ) status: active lp0: flags=8810 mtu 1500 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 that is what you want to do ? On Sunday 02 November 2003 02:42 Anno Domini, Doug Poland wrote using one of his keyboards: > Hello, > > I'm running 4.8-STABLE. I've got a question about NAT and gateway. > Today, I'm running a typical NAT configuration like this... > > if0 = public_ip > if1 = private_lan > > Everything is working fine, internal clients use if1 and their gateway > and their addresses are translated and sent out on if0. > > My question is: can I alias if1 with a public IP and point other > clients (also with public IP) if1 as their gateway? In this case, I > would want if1 to route to if0 and have their public IPs remain intact. > > I'm asking this as a questions because I've just tried it and packets > are not routing from if1 to if0. > > Many thanks for your help. -- Login: petre Name: Petre Bandac Directory: /home/petre Shell: /usr/local/bin/zsh On since Sun Nov 2 12:51 (EET) on ttyv0, idle 5:15 (messages off) No Mail. No Plan.