Re: How can I route through a pc that is also using a router??

From: Steve Bertrand (iaccounts_at_ibctech.ca)
Date: 09/28/04

  • Next message: Eric Crist: "Re: IP address conflicts"
    Date: Tue, 28 Sep 2004 08:59:46 -0400 (EDT)
    To: "Mark Jayson Alvarez" <jay2xra@yahoo.com>
    
    

    > 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"
    >

    _______________________________________________
    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"


  • Next message: Eric Crist: "Re: IP address conflicts"

    Relevant Pages

    • Re: Accessing Shared Printer on 2nd subnet - Firewall/Group Policy pro
      ... but has the workstation been restarted after the GPO applied? ... Getting the GPO changes to the machine is one thing,...having them take ... > Sharing" exception is enabled by group policy in the workstation's Windows ... it is set for "My network (subnet) only." ...
      (microsoft.public.windows.server.sbs)
    • Re: Some theory about name resolution
      ... The reason you can see other workstations on the same VLAN is becuase you ... resolves the address by doing a broadcast on your subnet looking for this ... If I ping a workstation name ...
      (microsoft.public.win2000.networking)
    • Re: Master Browser not working on server
      ... > The result of browcon (I ran it on a workstation as well as on the server, ... > The domain master browser for the specified domain could not be found. ... Attempt to map a share from the PDC to the workstation and vice ... If you only have 1 machine on this paticular subnet acting ...
      (microsoft.public.windows.server.networking)
    • Re: Cant access resources at remote site
      ... "Everything is a class B subnet. ... > I have a users workstation that accesses resources at a remote site. ... We failed over to our disaster site and ran the necessary scripts ...
      (microsoft.public.win2000.networking)
    • Re: Master Browser not working on server
      ... >> The result of browcon (I ran it on a workstation as well as on the ... >> The domain master browser for the specified domain could not be found. ... > setting to false on all machines on that paticular subnet. ... > an SMB but doesn't guarentee this ...
      (microsoft.public.windows.server.networking)