[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vmware & ip masq



I'm doing exactly this: debian 2.4.x custom kernel + vmware + masquerading.

Maker sure that the ipt_MASQUERADE module is loaded, and make sure the
iptables debian package is installed.

Then add an IP address to your ethernet card that is on the same subnet as
your vmware machine:
eg: ifconfig eth0 add 192.168.155.2

Set your vmware OS'es default gateway to be that address (easier if you
disable dhcp in your guest and just hard code the configuration).

enable ip_forwarding:
echo 1 > /proc/sys/net/ipv4/ip_forward

apply one iptables rule:
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

-Tupshin

----- Original Message -----
From: "Titus Barik" <barik@techspot.com>
To: <debian-user@lists.debian.org>
Sent: Saturday, August 25, 2001 2:54 PM
Subject: vmware & ip masq


> Huzza! It's me again.
>
> I'm running Woody with a 2.4.6 custom kernel. Here's what I'm trying to
> do. I have a VMWare host-only network running Windows 98 SE. The virtual
> machine's IP is 192.168.155.128. The host machine is 128.61.40.17, and
> is accessed through VMWare Win98 session as 192.168.155.1.
>
> Because of the way our University is setup, we can only have one IP per
> port. As such, I need to do some routing to get the 192.168.155.* VMs to
> access the outside world (instead of just the host).

> One solution that has worked is to use Squid proxy for HTTP. But I would
> much rather use IP Masquerading, except I'm not sure how.
>
> I'm pretty much a Debian newbie, and I know I've asked a lot from the
> list, but I'd really appreciate it if someone could tell me how to get
> this setup going (i.e., what kernel options do I need? how do I setup
> iptables?, etc.).
>
> If there is a relatively newbie friendly document that one could refer
> me to, that would work as well.
>
> Thanks in advance!
>
> Titus Barik (barik@techspot.com)
> AIM: TBarik  ICQ: 1604453
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>
>



Reply to: