I'm using the 2.1.110 kernel. I've also installed the newest ipchins
program to adjust the forwarding rules in the kernel, and compiled
ip-firewalling, masquerading, etc into the kernel. Now, I had
masquerading working under 2.1.88, but after the upgrade to 110, it
stopped working. Here's how I do it.
MAC: ip address - 129.168.1.2
gateway 129.168.1.1
Linux eth0 ip - 129.168.1.1
gateway dynamic ppp0 default gw.
Ok, I dialup, and it works great from my end. I can telnet to my linux
box from my mac, so I know my ethernet card is setup correctly. Now, I
use a command like this:
bash# ipchains -A forward -j MASQ -s 129.168.1.2
bash# ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
target prot opt source destination ports
MASQ all ------ 129.168.1.2 anywhere n/a
Chain output (policy ACCEPT):
bash# route
Destination Gateway Genmask Flags Metric Ref Use Iface
209.54.235.4 * 255.255.255.255 UH 0 0 0 ppp0
129.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 209.54.235.4 0.0.0.0 UG 0 0 0 ppp0
So, my question is what am I doing wrong? Routeing looks fine, and I
don't get any errors from ipchains. I know ipchains works because I can
do things like reject icmp pings on lo interface. Thanks for the help in
advance.
-CJO-
C.J. Oster (Linux Guru/Surge Addict)
--------------------------------------------------------------------
[EMAIL PROTECTED] | P.O. Box 132 | while( asleep() != true )
[EMAIL PROTECTED] | Ponca City, OK 74602 | sheep++;
--------------------------------------------------------------------
"Linux, for people with an IQ above 98" - Bumper Sticker
"Hm, a little big for a cup holder... Why does it say '4x' on it?"