hi everybody,
this *should* work, but i'm stuck somewhere, and i don't know enough
about networking to solve it on my own.
at home, i have a linux box running 2.2.5-15 from a RH6.0 distribution.
this box is connected to the outside world via pacbell adsl with a
static IP (on eth0). it's also connected, using another nic, to a
private 192.168.0.X network on eth1.
on this linux box i have a virtualized W98 machine running (see
www.vmware.com). the virtual machine is connected via bridged networking
to eth1, and from it i can ping my linux box, my laptop on the local
network, and my networked printer. also, from my linux box, i can ping
my virtual machine. (i also have my linux directories mounted via samba
on my virtual machine, so i feel good that the local network is working
okay.)
however, i can't seem to get ip masquerading working, since i cannot
ping the linux eth0 from my VM (the basic forwarding step). nor, for
that matter, can i ping any external IP address from my VM.
i do have the gateway for my VM set to 192.168.0.10 (linux eth1).
here's what may be relevant information:
ifconfig on the linux box (i commented out my actual address):
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:X.X.X.X Bcast:X.X.X.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:808318 errors:0 dropped:0 overruns:0 frame:0
TX packets:649043 errors:0 dropped:0 overruns:0 carrier:0
collisions:66 txqueuelen:100
Interrupt:3 Base address:0xf800
eth1 Link encap:Ethernet HWaddr 00:40:05:A5:0F:85
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:387487 errors:0 dropped:0 overruns:0 frame:0
TX packets:214567 errors:0 dropped:0 overruns:0 carrier:0
collisions:6293 txqueuelen:100
Interrupt:10 Base address:0xfc80
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:1770 errors:0 dropped:0 overruns:0 frame:0
TX packets:1770 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
here's netstat -rn, where $MY_IP1 is my eth0 external IP, and $MY_IP2 are
the first three octets of that IP address:
adsl-<21> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
$MY_IP1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
$MY_IP2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 $MY_IP2.254 0.0.0.0 UG 0 0 0 eth0
here's ip_forward:
me-<22> cat /proc/sys/net/ipv4/ip_forward
1
here's the ipchains -L output:
(root) me-<23> ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy DENY):
target prot opt source destination ports
MASQ all ------ 192.168.0.40 anywhere n/a
Chain output (policy ACCEPT):
thanks in advance for any suggestions on where to look!
regards,
ron ho
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
http://tiffany.indyramp.com/mailman/listinfo/masq
Admin requests can be handled by web (above) or [EMAIL PROTECTED]