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
/proc/sys/net/ipv4/ip_forward is set to 1Code:. . 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; . .
i then type
comp2 gets an ip if i call ifup or pump, it also has /etc/resolv.conf containing 192.168.0.1Code:iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
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

π Juniper Networks EX2300-C-12P 12Γ Gigabit PoE+ β’ 2Γ 10G SFP+ Compact Switch β‘
$109.99
Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P
$149.99
Juniper Networks EX2300-48P 48-Port PoE Gigabit Switch (Renewed)
$361.91
Juniper QFX5100-48S-3AFI 48-Port SFP+ 6 QSFP+ 2x SFP/RJ-45 Management
$249.97
Juniper MX204 +JUNOS and Dual Power Supply
$7299.99
Juniper QFX5120-48Y-AFO 48 x 1/10/25GB SFP28 + 8 x 40/100GB Switch w/Dual AC
$10499.99
Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p Discounted Cosmetic
$79.86
Juniper EX2300-C-12P 12 Port Gigabit PoE+ 2x10G SFP+ Managed Compact Switch
$179.99
Juniper Networks Mist Wireless Access Points, Model AP45
$59.99
Juniper EX3400-24P 24-Port PoE+ GbE + 4-Port 1/10Gb SFP Switch
$245.00