LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2005, 02:17 AM   #1
xadian
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
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
 
Old 08-18-2005, 11:02 AM   #2
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
You should have a virtual interface that is designed soley for the use of the guest OS.
Your iptables rules must target this interface.
 
Old 08-18-2005, 04:50 PM   #3
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vmware guest awilisch Linux - Software 1 01-24-2005 07:35 PM
WinXP guest on VMWARE supermatt Linux - Software 1 03-13-2004 11:41 AM
How to filter traffic using port+process in IPTables muath Linux - Security 10 03-01-2004 11:20 AM
Vmware Salck 9.0 as Guest ? Gerardoj Linux - General 7 06-29-2003 07:55 PM
vmware in xp with redhat 8.0 guest dmarkow Linux - Software 2 04-05-2003 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration