From owner-freebsd-questions@FreeBSD.ORG Tue Sep 28 12:57:38 2004 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 0717E16A4D2 for ; Tue, 28 Sep 2004 12:57:38 +0000 (GMT) Received: from pearl.ibctech.ca (dev.eagle.ca [209.167.58.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D869643D5A for ; Tue, 28 Sep 2004 12:57:36 +0000 (GMT) (envelope-from iaccounts@ibctech.ca) Received: (qmail 17431 invoked by uid 1002); 28 Sep 2004 12:59:48 -0000 Received: from iaccounts@ibctech.ca by pearl.ibctech.ca by uid 89 with qmail-scanner-1.22 (clamscan: 0.73. spamassassin: 2.64. Clear:RC:1(127.0.0.1):. Processed in 1.631999 secs); 28 Sep 2004 12:59:48 -0000 Received: from unknown (HELO webmail.ibctech.ca) (127.0.0.1) by localhost.ibctech.ca with SMTP; 28 Sep 2004 12:59:46 -0000 Received: from 209.167.16.15 (SquirrelMail authenticated user steve@ibctech.ca); by webmail.ibctech.ca with HTTP; Tue, 28 Sep 2004 08:59:46 -0400 (EDT) Message-ID: <3669.209.167.16.15.1096376386.squirrel@209.167.16.15> In-Reply-To: <20040928071623.5871.qmail@web51604.mail.yahoo.com> References: <004501c4a527$d22898c0$4611a8c0@SATPC> <20040928071623.5871.qmail@web51604.mail.yahoo.com> Date: Tue, 28 Sep 2004 08:59:46 -0400 (EDT) From: "Steve Bertrand" To: "Mark Jayson Alvarez" User-Agent: SquirrelMail/1.4.3a X-Mailer: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-questions@freebsd.org Subject: Re: How can I route through a pc that is also using a router?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 12:57:38 -0000 > My workstation and the testmachine both belongs to the > same subnet: > > Here are the details: > > workstation --> 10.10.8.110 > testmachine --> 10.10.8.111 > > Gateway --> 10.10.8.254 > > DNS ---> 202.90.128.3 > 202.90.158.101 > > Proxy ---> 202.90.128.14 Port: 3128 > First, enable bridging in your kernel, by adding: options BRIDGE Then add the following to /etc/sysctl.conf: net.link.ether.bridge.enable=1 net.link.ether.bridge_ipfw=1 net.link.ether.bridge_cfg=xl0,xl1 ...assuming xl0 and xl1 are your two physical interfaces. If you do not have IPFW enabled on the test gateway, leave out the line that says bridge_ipfw=1 in sysctl.conf. You can't route through the test gateway, as it is on the same subnet as everything else (both sides of it), so you must bridge it. Now you are in a position to tap into the bitstream for ALL network traffic. HTH, Steve > > > > > > > > > > > > > --- Andrew wrote: > >> Hi! >> >> Describe the test-machine, please. If both >> workstations are on the same >> subnet, you should probably configure the >> test-machine as an >> ip-forwarder or even as an ethernet-level bridge. If >> your personal >> workstation is on a different subnet, which is not >> serviced by proxy or >> dns, you should configure NAT on the test-machine. >> >> In general, there's little problem in cascading >> gateway installations. >> >> Regards, >> Andrew P. >> >> >> > Good day! >> > I have two workstations at work, 1 my personal, >> and >> > the other, a test machine. >> > >> > My boss told me to configure a pcrouter, that is, >> the >> > testmachine and let my personal pc connect through >> the >> > internet through the testmachine: >> > >> > Here's the scenario: >> > >> > The testmachine already knows how to connect >> through >> > the outside world but, also through a gateway.... >> > >> > >> > testmachine(10.10.8.111)--->gateway(10.10.8.254)---->[proxy]---->[DNS]-- >> -->internet >> > >> > >> > And to let my pc connect to the internet through >> the >> > testmachine, I've set its default gateway to the >> ip of >> > the test machine. >> > >> > >> > But it doesn't seem to work. When I tried to lauch >> my >> > browser, the error indicates that it cannot seem >> to >> > find its way to the proxy server. >> > >> > I've tried adding another line in my routing table >> > like this: >> > >> > Destination Gateway >> > proxy(202.90.128.14) testmachine(10.10.8.111) >> > >> > But it still won't work. >> > >> > Do you know what i've been missing here? I'm >> thinking >> > perhaps the test machine should connect to the >> > internet directly without using a gateway >> anymore.. >> > >> > Any idea? >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >