Hello Everybody!

Sorry to bother you all - but I just can NOT get ip-masqurade to work
:(

I have my two network cards working - and compiled the kernel (2.0.36)
according to the howto!

etho have access to the internet (works fine by itself)
eth1 have access to the local network

eth1 = 192.168.1.1

The other machines on the network is pointing to 192.168.1.1 as the
gateway!

In my rc.local file I have specified the following:

#!/bin/sh

/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc

ipfwadm -F -p deny
ipfwadm -F -a accept -S 192.168.1.0/24 -m

/sbin/route add default gw 24.132.2.1 eth0


after boot-up my routing table looks like this:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        2 eth1
24.132.2.0      *               255.255.254.0   U     0      0        1 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         *               0.0.0.0         U     0      0        9 eth0

ok..I guess the gw command did not work - not to worry, I will add it
manually:

# /sbin/route add default gw 24.132.2.1 eth0
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        2 eth1
24.132.2.0      *               255.255.254.0   U     0      0        2 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         h3rtr1.a2000.nl 0.0.0.0         UG    0      0        2 eth0
default         *               0.0.0.0         U     0      0        5 eth0

hmm.. 2 defaults ? - if I remove them, I loose connection to my box
(working on it remotely!)

well ... I wonder what da heck could be wrong - maybe ip forwarding ?

# cat /proc/sys/net/ipv4/ip_forward
1

nope :(

then what - anyone have any good ideas ?  -  I messed around with it a
lot - so I do not know if I missed something - or accidently destroyed
anything - if anyone could help me, I would be VERY grateful!

:)

Thanks

'Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]

Reply via email to