iptableÀ» ÀÌ¿ëÇÑ °¡»ó nic ÇÊÅ͸µ ¹®Á¦

Pike   
   Á¶È¸ 5997   Ãßõ 0    

서버에 vm을 깔아서 사용중입니다.

 

설치된 VM끼리 서로 통신을 하면 안되기에 iptable에서 해당 NIC끼리는 output 필터링을 걸어놓았는데

 

막상 돌아가는 걸보면 서로 통신이 잘 됩니다.

 

어떻게 해야 vm끼리 통신을 막을수 있을까요.


m38-z1:~ # iptables -L

Chain INPUT (policy ACCEPT)

target     prot opt source               destination         


Chain FORWARD (policy ACCEPT)

target     prot opt source               destination         

ACCEPT     all  --  anywhere             anywhere            PHYSDEV match --physdev-in vif7.0 

ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED PHYSDEV match --physdev-out vif7.0 

chain-vif7.0  all  --  anywhere             anywhere            PHYSDEV match --physdev-out vif7.0 

ACCEPT     all  --  anywhere             anywhere            PHYSDEV match --physdev-in vif11.0 

ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED PHYSDEV match --physdev-out vif11.0 

chain-vif11.0  all  --  anywhere             anywhere            PHYSDEV match --physdev-out vif11.0 

ACCEPT     all  --  anywhere             anywhere            PHYSDEV match --physdev-in vif12.0 

ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED PHYSDEV match --physdev-out vif12.0 

chain-vif12.0  all  --  anywhere             anywhere            PHYSDEV match --physdev-out vif12.0 


Chain OUTPUT (policy ACCEPT)

target     prot opt source               destination         


Chain chain-vif11.0 (1 references)

target     prot opt source               destination         

ACCEPT     icmp --  anywhere             anywhere            icmp echo-request 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:telnet 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 

ACCEPT     tcp  --  anywhere             anywhere            source IP range 1.1.1.1-1.1.1.1 tcp dpt:ftp 

ACCEPT     tcp  --  anywhere             anywhere            source IP range 3.3.3.3-3.3.3.3 tcp dpt:ntp 

ACCEPT     udp  --  anywhere             anywhere            udp spts:bootps:bootpc 

DROP       all  --  anywhere             anywhere            


Chain chain-vif12.0 (1 references)

target     prot opt source               destination         

ACCEPT     icmp --  anywhere             anywhere            icmp echo-request 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:telnet 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 

ACCEPT     tcp  --  anywhere             anywhere            source IP range 1.1.1.1-1.1.1.1 tcp dpt:ftp 

ACCEPT     tcp  --  anywhere             anywhere            source IP range 3.3.3.3-3.3.3.3 tcp dpt:ntp 

ACCEPT     udp  --  anywhere             anywhere            udp spts:bootps:bootpc 

DROP       all  --  anywhere             anywhere            


Chain chain-vif7.0 (1 references)

target     prot opt source               destination         

ACCEPT     icmp --  anywhere             anywhere            icmp echo-request 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:telnet 

ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:http 

ACCEPT     tcp  --  anywhere             anywhere            source IP range 1.1.1.1-1.1.1.1 tcp dpt:ftp 

ACCEPT     tcp  --  anywhere             anywhere            source IP range 3.3.3.3-3.3.3.3 tcp dpt:ntp 

ACCEPT     udp  --  anywhere             anywhere            udp spts:bootps:bootpc 

DROP       all  --  anywhere             anywhere


현재 iptables의 세팅입니다.

여기서 어떻게 바꿔야 가능할까요?

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¹Ú 2012-03
¾î¶² ¼Ö·ç¼ÇÀÎÁö´Â ¸ð¸£°ÚÁö¸¸ °¡»ó½ºÀ§Ä¡¿¡¼­ vlanÀ» ³ª´©½Ã¸é µË´Ï´Ù.

´õ ÀÚ¼¼ÇÏ°Ô ÇÊÅ͸µÇϽ÷Á¸é °°Àº³×Æ®¿÷¿¡ µÎ°í iptables¿¡¼­ ÇϽðųª ¹æÈ­º®¼­¹ö¸¦ Çϳª µû·Î ¸¸µå¼Å¼­ »ç¿ëÇϽô°͵µ ÁÁÀ»µíÇÕ´Ï´Ù.


QnA
Á¦¸ñPage 3588/5606
2014-05   4552498   Á¤ÀºÁØ1
2015-12   1102087   ¹é¸Þ°¡
2012-03   13419   ±èÁöȯ1
2012-03   5578   ÀÎõIº£¸®
2012-03   5860   ¹æoÈ¿o¹®
2012-03   4412   2CPUÃÖÁÖÈñ
2012-03   6700   Á¤ÀºÁØ1
2012-03   4385   Won³«¿¬
2012-03   5933   ¹Ì¼ö¸Ç
2012-03   5495   ¹ÚÈñÀÏ
2012-03   5495   ¹æoÈ¿o¹®
2012-03   6052   À嵿°Ç2014
2012-03   5392   ¸Í¹°
2012-03   8825   ¼­Á¤¿í
2012-03   4640   ¸Ó¶óÄ«´Âµ¥
2012-03   4761   ¹Ì¼ö¸Ç
2012-03   4535   Â÷Çõ±Ù
2012-03   5998   Pike
2012-03   30656   ±è°Ç¿ì
2012-03   21191   ¸¶ÀÌÄÚÄÚ
2012-03   7121   ±è°Ç¿ì
2012-03   4754   Á¶¿î