Need help setting up my LAN's gateway to my ISP.

/etc/rc.d/rc.inet1 on client machine contains:

IPADDR="169.254.1.4"    # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="169.254.1.0"   # REPLACE with YOUR network address!
BROADCAST="169.254.1.255"       # REPLACE with YOUR broadcast address, if you
                        # have one. If not, leave blank and edit below.
GATEWAY="169.254.1.1"   # REPLACE with YOUR gateway address!

/etc/rc.d/rc.inet1 on gateway machine contains:

IPADDR="169.254.1.1"    # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="169.254.1.0"   # REPLACE with YOUR network address!
BROADCAST="169.254.1.255"       # REPLACE with YOUR broadcast address, if you
                        # have one. If not, leave blank and edit below.
GATEWAY=""              # REPLACE with YOUR gateway address!

I have set up my own DNS server that acts a master for my own domain [conyers.net]
Have tried with both a blank 'root.hints' and a complete 'root.hints' file.

/etc/resolv.conf on both machines:

domain conyers.net
search conyers.net globalserve.net
# my nameserver
nameserver 169.254.1.4
# ISP's [globalserve.net] nameserver
nameserver 209.90.128.2

/etc/host.conf on both machines:

order hosts, bind
multi on

/etc/named.conf on DNS machine [Nebula]:

// Config file for caching only name server

options {
        directory "/var/named";

        // Uncommenting this might help if you have to go through a
        // firewall and things are not working out:

        // query-source address * port 53;
};

zone "." {
        type hint;
        file "root.hints";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "pz/127.0.0";
};

zone "conyers.net" {
        notify no;
        type master;
        file "pz/conyers.net";
};

zone "1.254.169.in-addr.arpa" {
        notify no;
        type master;
        file "pz/169.254.1";
};

[if you want a copy of the /var/named/pz/* files I'll send them too, but all this was done according to the DNS-HOWTO and all works well for the LAN]

When I try to connect with the Internet from a client machine [i.e. Nebula] it does not 'route' through the proxy machine [i.e. Cygnus]. Here is an error message from the program setiathome:

gethostbyname: Connection timed out
Server host unknown

[which sounds like a DNS problem]

ping and telnet to anywhere outside the LAN also do not respond.

Client Machine:
Nebula:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        3 eth0
loopback        *               255.0.0.0       U     0      0        3 lo
default         Cygnus.conyers. 0.0.0.0         UG    1      0       15 eth0

Gateway/Proxy Machine [with ppp0 active, i.e. modem connected to ISP]:
Cygnus:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
tor36.globalser *               255.255.255.255 UH    0      0        0 ppp0
localnet        *               255.255.255.0   U     0      0       20 eth0
loopback        *               255.0.0.0       U     0      0        1 lo
default         tor36.globalser 0.0.0.0         UG    0      0       15 ppp0

Gateway/Proxy Machine [with ppp0 inactive, i.e. modem hung up]:
Cygnus:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0       24 eth0
loopback        *               255.0.0.0       U     0      0        1 lo
 

That's all the relevant info I can think of, if you need more then email me.

p.s. there are no firewall rules preventing access [yet].
 

Reply via email to