
ryuuuu
(usa Outra)
Enviado em 18/06/2020 - 11:17h
O setup e um host machine 192.100.200.1 com duas redes virtuais connectadas , a 192.100.200.0 e a 182.158.50.0.
Tem duas virtual machines 192.100.200.100 and 192.100.200.110 na primeira rede e uma na segunda rede 182.158.50.1.
Estou configurando o iptables da vm1.
Eu preciso que ping funcione so na virtual network 192.100.200.0 e partindo do host pra vm1.
E o ssh so funcione da host machine pra vm1.
Mas o trafego da virtual network 182.158.50.1 ta chegando na 192.100.200.0.
O que esta errado nesse iptables?
IPTABLES
Chain INPUT (policy DROP 0 packets, 0 bytes)
target prot opt in out source destination
PING icmp -- * * 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
SHELL tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy DROP 0 packets, 0 bytes)
target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
target prot opt in out source destination
Chain PING (1 references)
target prot opt in out source destination
ACCEPT icmp -- * * 192.100.200.0/24 192.100.200.0/24
DROP all -- * * 0.0.0.0/0 0.0.0.0/0
Chain SHELL (1 references)
target prot opt in out source destination
ACCEPT all -- * * 192.100.200.1 192.100.200.100
DROP all -- * * 0.0.0.0/0 0.0.0.0/0