Pleae read the whole thing, I know that it is long but I really need help.
I have been working for days trying to get IP Masquerading up and
running on my machine. I cannot get it running and I have no idea what the
problem can be at this point.
Here is a list of what I have done up until now:
1. Compiled Kernel 2.0.35 to support 2 3Com 3C509 Ethernet cards. Said yes
instead of module when doing "make config" to load the drivers in the kernel
and not as modules so I can use both at the same time.
2. As part of step one, compiled in all of the masquerading options.
3. I have DHCP get an address for my external (eth0) interface, this works
4. I have a private address on the internal (eth1) interface and on my pc.
5a. I can ping the internal interface from the PC.
5b. I can ping the external interface from the PC.
6. I then played with ipfwadm to set up the masquerading and forwarding
rules. At one point I got so frustrated that I turned on all outgoing and
incoming rules to default to accept everything.
7. I put the forwarding rule as follows:
ipfwadm -F -a m -W eth0 -S 192.168.1.0/24
This does not work. When I try to ping something on the internet, I get
"Request timed out". The packet count from the ipfwadm -F -l -e does not
increase at all. It is like the forwarding rule is not even seeing the
packets. When I do a tcpdump on eth1, all of the packets are indeed coming
into the interface.
What can I do at this point? Does anyone know if this can be solved? Do I
have to "turn on" IP Masqerading some how. Is there some way to verfiy that
do indeed have it in the kernel and running.
Please help me out,