[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Firewalls and IP Maskerade



On Wed, Jan 17, 2001 at 10:12:33AM -0500, Serge Gibeau wrote:
>     Hey,
> 
>  I am able to access the internet from my linux box. I tried a few sites
> with lynx, and they all connected.  My /etc/network/interface file has the
> following entry when I boot up, which is sufficient to properly configure my
> cable modem NIC as it seems.
> 
>  iface eth1 inet dhcp

<caveat>zero-knowledge dchp-ignoramus, speaking</caveat>

if it's that simple to get your linux connected to the www,
then once yuo figure out how to establish whatever your
default/gateway IP gadget is, the rest is cake:

	iface lo inet loopback

	# your local private LAN:
	iface eth0 inet static
		address 192.168.1.1
		# you can use any 192.168.*.* address
		netmask 255.255.255.0
		network 192.168.0.0
		broadcast 192.168.1.255
	# have all your other 192.168.*.* computers use
	# <address> from above as their router/default/gateway

	iface eth1 inet dhcp

	# my static setup:
	#iface eth1 inet static
	#	address 208.33.90.85
	#	netmask 255.255.255.0
	#	network 208.33.90.0
	#	broadcast 208.33.90.255
	#	gateway 208.33.90.84

> That /etc/network/interface file is "execute" on start-up I gather? Could I

yep, via /etc/init.d/networking, which calls 'ifup' to
interpret the /etc/network/interfaces file. i think.

> add an entry for my other NIC? How would I do so if possible? It doesn't
> seem like I will need to reconfigure the eth1 NIC (since I can access the
> net). But if I had to and wanted to configure it has a "static ip",  how
> would I go about finding my cable modem ip (24.200.41.cablemodemIPnumber)?

good question. maybe someone with brain cells is listening and
will supply an answer. i know you can do 'traceroute' to see the
first hop, but that's awful klutzy to put into a script. there's
gotta be a better way.

> Finally, I tried the apt-get command. I got an error saying it could not
> find the packages or something.  Do I have to specify where it should look
> for it (soruces.lists or something)?

isn't it fun tracking down documentation and pointers? :)

	http://www.eGroups.com/files/newbieDoc/apt-get-intro.html

--

/etc/apt/sources.list is the sucker to nail down, and here's how
you do that (at least my potato uses apt-setup nicely):

	apt-setup

[[
if you don't have apt-setup, hopefully you have the original CD
still and can do

	apt-cdrom add

to make sure your CD is apt-friendly, and then

	apt-get install base-config

which contains the apt-setup utility.
]]


-- 
will@serensoft.com    ***    http://www.dontUthink.com/



Reply to: