You'll need to insert the rules in the "forward" chain of iptables. As an example, here's a line that blocks new connections from outside (eth0) to my protected network (connected to eth1) (it will allow the protected machines to reach out, though, not what you wanted)
iptables -A FORWARD -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -i eth0 -o eth1 -j DROP
Why don't you post your ifconfig -a output -- there is some vmnet1 device for your vmware -- and your current iptables ruleset.
If you want to block everything to and from your vmware machine, you could also just stop forwarding completely,
echo 0 > /proc/sys/net/ipv4/ip_forward
or in /etc/sysctl.conf to make it permanent.
Hope it helps,
mlp
|