Re: [Nolug] Martian source error message

From: Andrew S. Johnson <andy_at_asjohnson.com>
Date: Sat, 29 Nov 2003 22:28:04 -0600
Message-Id: <200311292228.04493.andy@asjohnson.com>

On Saturday 29 November 2003 06:33 pm, Christoph Boget wrote:
> > Perhaps if you give us info about your network?
>
> Anything to help you help me. :p
>
> > What OS, what other boxes are on your LAN,
>
> All XP
>
> > what router or firewall are you running,
>
> IPTables
>
> > what if your default gateway address, etc. ?
>
> 192.168.0.1 for all my internal machines and my
> internal NIC.

Actually, there are two numbers that each IP host has to have
to communicate with other computers: an address and a
netmask. If a host wants to communicate with computers not
on the same subnet, then it has to have a third number, which
is the address of the gateway (a router, or a computer acting
as one) which will then relay the traffic between the local subnet
and the rest of the world. So, the computers on the internal
network need to be told that the Linux box is the router, and
that happens on the line "option routers" in your dhcpd.conf
file. Use the eth0 address here. Your Linux box will not have
a gateway on eth0, unless you get really fancy, at which point
I think you will have reached a level where you won't be asking
for much help. However, it will have to have a gateway for
it's eth1 interface, but since it is a DHCP client itself, then the
ISP's DHCP server will give the gateway address at the same
time as it gives the address, the mask, and the DNS servers.

> According to /etc/dhcpc/dhcpcd-eth1.info, the gateway
> for my external NIC is 64.237.76.254

My two NICs are set the same way, with eth0 as the internal
LAN, and eth1 as the external WAN. The difference is that
my eth1 address is static, but the DHCP clients don't need
to know what or how addresses on other subnets are assigned.
Here is my dhcpd.conf file:

# dhcpd.conf
#
default-lease-time 86400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.3.255;
option routers 192.168.3.2;
option domain-name-servers 192.168.3.2;
option domain-name "asjohnson.com";
ddns-update-style none;

subnet 192.168.3.0 netmask 255.255.255.0 {
   range 192.168.3.101 192.168.3.199;
}

For your iptables and NAT configuration, you probably want to
do something like this from the netfilter HOWTO:

http://www.netfilter.org/documentation/HOWTO//packet-filtering-HOWTO-9.html

Hope this helps,

Andy Johnson

>
> I'm not sure if I specified this previously, but it
> is worth repeating here:
>
> My linux (RH7.3) box has 2 NICs. Eth1 is connected
> to my DSL modem and gets it's IP address, via dhcp,
> from my ISP. IWO, it is a dhcp client. Eth0 is
> connected to a hub that all of my other PCs are
> connected to. Ultimately, I'm trying to set up a
> dhcp server to provide dynamic IPs to my internal
> PCs.
>
> Chris
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
> ___________________
> Nolug mailing list
> nolug@nolug.org
>

___________________
Nolug mailing list
nolug@nolug.org
Received on 11/29/03

This archive was generated by hypermail 2.2.0 : 12/19/08 EST