From owner-freebsd-questions Fri Mar 1 13:24:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay03.roc.frontiernet.net (alteon01h.roc.frontiernet.net [66.133.130.238]) by hub.freebsd.org (Postfix) with SMTP id 45C0037B400 for ; Fri, 1 Mar 2002 13:23:59 -0800 (PST) Received: (qmail 31147 invoked from network); 1 Mar 2002 21:23:58 -0000 Received: from unknown (HELO blacklamb.mykitchentable.net) ([207.173.254.93]) (envelope-sender ) by relay03.roc.frontiernet.net (qmail-ldap-1.03) with SMTP for ; 1 Mar 2002 21:23:58 -0000 Received: from tagalong (unknown [192.168.1.30]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 10F43EE6F4; Fri, 1 Mar 2002 13:23:57 -0800 (PST) Message-ID: <001101c1c167$656f74c0$1e01a8c0@lc.ca.gov> From: "Drew Tomlinson" To: "Rakesh Prajapati" Cc: References: Subject: Re: Home Networking question Date: Fri, 1 Mar 2002 13:23:56 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Rakesh Prajapati" To: Sent: Friday, March 01, 2002 1:14 PM Subject: Home Networking question > > Hi , > > > BACKGROUND > ---------- > > I have a FreeBSD 4.5 REL box with 2 NIC cards and a external 56 K modem. I > have set this box as a ROUTER (nat) and also set up a firewall (ipfw). > > One NIC card connects to internal LAN , second one to CABLE MODEM BOX. > > I am able to connect fine to my internal network (through NIC1) and also > the internet (NIC2). > > PROBLEM > ------- > > The problem occurs when I dial up to my workplace using 56 K modem. I am > then able to connect to my office network through the 56 K modem but now > my INTERNET connection dosent work (NIC2). When I disconnect the 56 K > modem connection the INTERNET connection works fine again. > > > I think this has something to do with my "DEFAULT ROUTE" or routing tables > or something like that (I am throwing some technical jargons ). > > How can I solve the above problem? I want both to work at the same time , > if that's possible!! It should be. I don't know the exact command or syntax for manipulating route tables in FBSD (haven't had to do it yet) but you want something like this. 1. Your default route should be pointed to NIC2. If you dial up changes your route, try and figure out how to disable it if possible. If not, then write some script to run after dial up to overwrite it's changes. 2. Your work subnet(s) need to be setup to go out the dial up interface. So 0.0.0.0/0 would have gateway of NIC2 (default). If you work is 1.2.3.0/24 then you would set it to go out the dial up interface. HTH a little, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message