netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: david-b@pacbell.net
Cc: netdev@vger.kernel.org, linux@rainbow-software.org
Subject: Re: PATCH: usbnet: doc updates
Date: Mon, 06 Sep 2010 12:57:48 -0700 (PDT)	[thread overview]
Message-ID: <20100906.125748.189711276.davem@davemloft.net> (raw)
In-Reply-To: <537964.70523.qm@web180307.mail.gq1.yahoo.com>

From: David Brownell <david-b@pacbell.net>
Date: Mon, 6 Sep 2010 11:28:48 -0700 (PDT)

> You wouldn't know of a Linux distro that comes
> with a "this box will be a NAT firewall" setup
> option?  Ubuntu only has that aftermarket AFAICT.

Just do a bare debian install and put something like the file below in
your /etc/network/interfaces, it's what I use.

eth0 is outgoing, eth1 is internal network.  Change eth0 to a dhcp
config if that is what you use.

I also use dnsmasq as the dhcp server for the internal network.

IP addresses variable'ized to protect the innocent :-)

--------------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
      address $(INTERNET_IP)
      netmask $(INTERNET_NETMASK)
      network $(INTERNET_NETWORK)
      broadcast $(INTERNET_BROADCAST)
      gateway $(INTERNET_GATEWAY)
      dns-nameservers $(INTERNET_DNS_1) $(INTERNET_DNS_2)

allow-hotplug eth1
iface eth1 inet static
      address 11.0.0.1
      netmask 255.0.0.0
      network 11.0.0.0
      broadcast 11.255.255.255
      up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

  reply	other threads:[~2010-09-06 19:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-06  4:48 PATCH: usbnet: doc updates David Brownell
2010-09-06  4:57 ` David Miller
2010-09-06 18:28   ` David Brownell
2010-09-06 19:57     ` David Miller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-09-06  0:06 David Brownell
2010-09-06  0:12 ` David Miller
2010-09-06  4:38   ` David Brownell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100906.125748.189711276.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=david-b@pacbell.net \
    --cc=linux@rainbow-software.org \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).