PDA

View Full Version : Problems regarding DNS/routing



Partisan
11-08-2005, 07:57 PM
Hi community,

I've got some troubles using my computer as a router.

Here is a short glimpse at my situation.

comp1 is running a hd-installation of the latest knoppix 4.02 CD Image, german.
comp2 is a laptop computer and sometimes connected to comp1's net over a hub.
comp1 has two ethernet network cards, eth1 and eth2
eth1 is responsible for my inet connection over ppp
eth2 should act as dhcp and router
dhcp is working fine (dhcp3-server)

but although i think i have set up everything alright, comp1 won't let comp2 access the net.
here's what i made at comp1:
in /etc/dhcp3/dhcpd.conf


.
.
option domain-name-servers 192.168.0.1;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
range 192.168.0.100 192.168.0.200;
.
.


/proc/sys/net/ipv4/ip_forward is set to 1
i then type

iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE

comp2 gets an ip if i call ifup or pump, it also has /etc/resolv.conf containing 192.168.0.1

no matter if i turn the /usr/sbin/firewall on or off
nameresolving and routing won't work from comp1


Did I forget something? Is there a trick?

Thanks for any help.

cheers,
Partisan