Date: Sun, 2 Nov 2003 18:07:23 +0200 From: Petre Bandac <petre@kgb.ro> To: Doug Poland <doug@polands.org>, questions@freebsd.org Subject: Re: NAT and gateway Message-ID: <200311021807.23408.petre@kgb.ro> In-Reply-To: <20031102004208.GA44763@polands.org> References: <20031102004208.GA44763@polands.org>
next in thread | previous in thread | raw e-mail | index | archive | help
snack% /sbin/ifconfig rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>) status: active rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>) status: active lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311021807.23408.petre>