From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 00:04:25 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CFFE16A41F for ; Fri, 2 Sep 2005 00:04:25 +0000 (GMT) (envelope-from drgenio@hotmail.com) Received: from hotmail.com (bay103-f41.bay103.hotmail.com [65.54.174.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A35B43D45 for ; Fri, 2 Sep 2005 00:04:25 +0000 (GMT) (envelope-from drgenio@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 1 Sep 2005 17:04:24 -0700 Message-ID: Received: from 65.54.174.200 by by103fd.bay103.hotmail.msn.com with HTTP; Fri, 02 Sep 2005 00:04:24 GMT X-Originating-IP: [65.54.174.200] X-Originating-Email: [drgenio@hotmail.com] X-Sender: drgenio@hotmail.com From: "Dr. Genio" To: freebsd-net@freebsd.org Date: Fri, 02 Sep 2005 00:04:24 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 02 Sep 2005 00:04:24.0912 (UTC) FILETIME=[E0D3DD00:01C5AF51] Subject: routing question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 00:04:25 -0000 Hi everyone. I'm trying to do some strange things to the routing table, and I can't get them to work. Our ISP assigned us a /26 subnet. xxx.xxx.xx.1 is the main router, a Cisco 2511. xx.xx.xx.2 is the main server, and there are a few machines. This server, a FreeBSD is an access server, which allowed our Wireless customers to access the internet. The BSD server has 2 NICs: one to the public internet, and the other to the Access Point. We had to move from a PPTP setup to a DHCP setup because PPTP keeps disconnecting the customers. With PPTP, the machine did Proxy-ARP so I could give the customers public addresses via PPTP. Now with DHCP we moved the customers to a NAT setup, and reserve public addresses for special customers. The problem is, I can't route the public addresses to the second NIC. What I did was this: nic 1: xl0, xxx.xxx.xxx.2 netmask 255.255.255.192 nic 2: xl1, 10.5.5.10 netmask 255.255.255.0 nic 2: xl1, xxx.xxx.xxx.4 netmask 255.255.255.255 alias on the main router, I added static route of xxx.xxx.xxx.4/32 via xxx.xxx.xxx.2, and it worked, I get pings from the public internet. so I added a machine on the private LAN and set it an IP of xxx.xxx.xxx.5/24 gateway xx.xxx.xx.4, and a static route on the BSD server of "xxx.xxx.xxx.5/32 via xxx.xxx.xx.4", trying to route packets to .5 via .4 instead of .2, so packets would go via xl1 rather than xl0. But it doesn't seem to work. I get TTL exceeded, even from inside the BSD server. Also on the main router to the public internet i added a route to .5/32 via .4. How can I make this work? Thanks in advance, Hernán