LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-10-2001, 05:18 PM   #1
fishfork
LQ Newbie
 
Registered: Sep 2001
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Unhappy IPMasq in Debian (config & boot)


Hi,

We're getting a cable modem installed next Thursday. (We can only afford it because its shared.)

Enter Linux. 8 days ago I typed my first unix command. Since then I've even re-compiled a kernel. Terrifying!

Right then, eth0 is 192.168.1.1 and goes to a hub to which all our computers are connected.

eth1 will go to the cable modem.

dhcpd is running on eth0 to configure the LAN.

eth1 will be configured by dhcp-client.

I've set these up already.

Next is IP Masquerading.

I've been reading the HOWTOs, but they tend to be biassed towards RedHat and are either too simple or too complex.

Here goes.

1)
besides all the ipchains stuff, do I need to add lots of routes (using route), in particular a default route to eth1?

2)
There are lots of really complex lists of ipchains commands suggested. Surely
# ipchains -P input DENY
# ipchains -P output DENY
# ipchains -P forward DENY
# ipchains -A forward -s 192.168.1.1/24 -j MASQ
is all that is needed.

----
ASSIDE: I installed the ipmasq package which is supposed to do everything magically. I don't trust it, and I don't understand what it installed. It was duly removed.
----

3)
Whatever the right commands are, how do you get them to run automatically at boot?
(I've read more ways to do this than I've had hot dinners and I trust none of them!)

4)
In some scripts the IP address of eth1 is used explicitly in the ipchians commands. Would this screw everything up when eth1 gets a different address from the ISP's DHCP server?
My suggestion (above) is immune from this problem, is it not?

Thanks very much.
Richard.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a powerpc g3 b&w to boot debian or any cd techrolla Linux - Hardware 8 08-16-2004 01:48 PM
dual boot & debian installer w42w42 Debian 4 02-21-2004 11:41 PM
ipmasq debian broken ? Hubas Linux - Networking 2 01-05-2004 10:32 AM
ipmasq & rc.firewall-2.4-stronger problem mrtwice Linux - Networking 3 10-31-2002 04:05 PM
Iptables & Ipmasq playing up NiM Linux - Networking 4 08-17-2001 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration