Date: Tue, 28 Sep 2004 08:59:46 -0400 (EDT) From: "Steve Bertrand" <iaccounts@ibctech.ca> To: "Mark Jayson Alvarez" <jay2xra@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: How can I route through a pc that is also using a router?? 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>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <infofarmer@mail.ru> 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3669.209.167.16.15.1096376386.squirrel>