LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-20-2013, 01:02 AM   #1
dzaku
LQ Newbie
 
Registered: Jun 2011
Location: POLAND BOAT CITY
Distribution: ARCH-LINUX, DEBIAN, FEDORA, UBUNTU
Posts: 4

Rep: Reputation: Disabled
KVM bridge make restrict


Hi all

I have a few virtual machines in my kvm . I make i bridge for this to LAN and i want make restricion for acces network, acces ony for few ip addres or mac addres for machine

example

Code:
ip 192.168.1.x LAN -----[host1 ...1.10]--[host2  ...1.14]-[hostx....1.25]...
                                             eth0
                                             |        KVM
                                             Br0
                                             Vhost1----Vhost2-- Vhost3
                                           ..1.15      ..1.16    ..1.17
I wan make acces Vhost2 only for host1

I must use iptabbles or another tools

Last edited by dzaku; 03-20-2013 at 02:19 AM.
 
Old 03-25-2013, 05:18 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 661

Rep: Reputation: 71
Perhaps by setting the default rules to DROP and adding your exception?

Code:
iptables --flush
iptables --delete-chain
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

iptables -A INPUT -s ...1.10 -d ..1.16 -j ACCEPT
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kvm/libvirt bridge etheraap Linux - Server 0 02-04-2013 08:44 PM
KVM bridge to wlan0 Louis_Carole Linux - Networking 4 11-09-2012 05:13 PM
KVM bridge and iptables zefir_psv Linux - Security 3 04-17-2012 06:54 AM
debian kvm - how to bridge? raindog308 Linux - Virtualization and Cloud 3 11-14-2011 11:07 AM
Kvm using wireless bridge, how michaelux Linux - Virtualization and Cloud 1 06-07-2010 08:48 AM


All times are GMT -5. The time now is 01:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration