LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   can't filter traffic of vmware guest os (https://www.linuxquestions.org/questions/linux-networking-3/can%27t-filter-traffic-of-vmware-guest-os-354116/)

xadian 08-17-2005 02:17 AM

can't filter traffic of vmware guest os
 
Hi

I'm using iptables to filter my network traffic. Host OS is Suse 9.3, guest (vmware) is Windows XP Prof.. The problem is: I can't create any rules that match the Windows XP network packages. I already blocked the whole network traffic but XP was still able to conect to the internet.
When I tried to use ebtables it was the same problem (also no matching of guest OS-packages). Is there no way to filter the guest OS netwrok traffic with the host OS's firewall?

thx xadian

PenguinPwrdBox 08-18-2005 11:02 AM

You should have a virtual interface that is designed soley for the use of the guest OS.
Your iptables rules must target this interface.

mlp68 08-18-2005 04:50 PM

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


All times are GMT -5. The time now is 11:06 AM.