Two Networks on one System

Daniel Feenberg feenberg at nber.org
Tue Jun 21 11:19:41 UTC 2011



On Mon, 20 Jun 2011, Martin McCormick wrote:

> 	I would like to say that I got it working, but after
> looking at the duel-homed host section of the Handbook, I am
> still stuck. A Google search turned up a thread from a couple of
> years ago that almost echoed my exact words. We've got a system
> with network interfaces on two disjointed networks. No routing
> is desired, but we very much want for both interfaces to be
> accessible from the world so each interface has to know about
> its nearest gateway just as the primary interface knows about
> the default route. What one seems to always be able to do is get
> the primary up and talking to the world with no real trouble.
> The secondary is on its network and you can log in from another
> host on the same subnet but you can never see it from the world,
> at large.
>

Several thoughts:

  (1) Are you sure the 2nd network is working? Can you test it
      without the complication of dual interfaces?

  (2) Without very special software, the interface for outbound
      packets is determined exclusively by the destination address,
      with no influence by the address of the incoming packet to
      that process. So when you log in via interface B, the return
      packets will likely come from interface A. Is there a firewall
      or router configured to restrict those outgoing packets?

  (3) The FreeBSD part of this "should just work". If you just use
      sysinstall to install the second interface, that should be enough,
      no other configuration is required. I would look at network
      devices for the ource of the problem.

  (4) Section 31.2 of the Handbook is entirely about using the FreeBSD
      box as a gateway or router to connect the two networks. I don't
      think you want to do that. They don't have a section on having
      a FreeBSD box belong to two networks, and not route between them,
      perhaps because it doesn't require any additional configuration.
      See (3) above.

Daniel Feenberg


More information about the freebsd-questions mailing list