[Novalug] Ubuntu Router

Will Rigby wrigby@gmail.com
Wed Mar 21 15:14:52 EDT 2007


I'm probably mistaken, but arent all 10.*.*.* networks private, and
therefore unroutable?

On 3/21/07, Kevin Dwyer <kevin@pheared.net> wrote:
>
> On Wed, Mar 21, 2007 at 09:32:23AM -0400, Brian Steisslinger wrote:
> > Has anyone got any tips for setting up an ubuntu box to route between
> two
> > segments.
> >
> > I've got two wired NICS
> >
> > 10.1.1.1
> > and
> > 10.1.2.1
> >
> > I am trying to set up a host on the 10.1.2.1 subnet and route the
> traffic to
> > the 10.1.1.1 subnet
> >
> > Any ideas?
>
> Make sure the netmask is set properly on both interfaces.  I'm assuming
> you want 10.1.1/24 and 10.1.2/24.  (The netmask is 255.255.255.0 in both
> cases.)
>
> You need to turn on IP forwarding.
> echo 1 > /proc/sys/net/ipv4/ip_forward
>
> (This isn't persistent across reboots.)
>
> Barring anything more complicated, you probably don't need much more
> configuration than that.  Make sure your iptables rules are configured
> how you want them.  Read up on using Linux as a router for more
> interesting configurations.
>
> -kpd
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.firemountain.net/pipermail/novalug/attachments/20070321/e7434a34/attachment.htm>


More information about the Novalug mailing list