Allowing VMware Workstation share through CentOS' firewall filter

خرید بک لینک

I have set up some virtual machines using VMware Workstation PRO 12 in my server (running on CentOS 7 3.10.0-327.28.2.el7.x86_64 keel) and it works fine as long as the firewall is disabled. Now i want to activate the firewall and allow the communication to be established. here is a sum up of the setup that i have

Chain INPUT (policy ACCEPT) target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere anywhere tcp dpt:domain ACCEPT udp -- anywhere anywhere udp dpt:bootps ACCEPT tcp -- anywhere anywhere tcp dpt:bootps ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT all -- anywhere anywhere
INPUT_direct all -- anywhere anywhere
INPUT_ZONES_SOURCE all -- anywhere anywhere
INPUT_ZONES all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited ACCEPT tcp -- 192.168.0.0/24 anywhere tcp dpt:krb524 ACCEPT tcp -- 192.168.0.0/24 anywhere tcp dpt:https

Chain FORWARD (policy ACCEPT) target prot opt source destination
ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable REJECT all -- anywhere anywhere reject-with icmp-port-unreachable ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT all -- anywhere anywhere
FORWARD_direct all -- anywhere anywhere
FORWARD_IN_ZONES_SOURCE all -- anywhere anywhere
FORWARD_IN_ZONES all -- anywhere anywhere
FORWARD_OUT_ZONES_SOURCE all -- anywhere anywhere
FORWARD_OUT_ZONES all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT) target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:bootpc OUTPUT_direct all -- anywhere anywhere
ACCEPT tcp -- 192.168.0.0/24 anywhere tcp dpt:krb524 ACCEPT tcp -- 192.168.0.0/24 anywhere tcp dpt:https

Chain FORWARD_IN_ZONES (1 references) target prot opt source destination
FWDI_public all -- anywhere anywhere [goto] FWDI_public all -- anywhere anywhere [goto]

Chain FORWARD_IN_ZONES_SOURCE (1 references) target prot opt source destination

Chain FORWARD_OUT_ZONES (1 references) target prot opt source destination
FWDO_public all -- anywhere anywhere [goto] FWDO_public all -- anywhere anywhere [goto]

Chain FORWARD_OUT_ZONES_SOURCE (1 references) target prot opt source destination

Chain FORWARD_direct (1 references) target prot opt source destination

Chain FWDI_public (2 references) target prot opt source destination
FWDI_public_log all -- anywhere anywhere
FWDI_public_deny all -- anywhere anywhere
FWDI_public_allow all -- anywhere anywhere

Chain FWDI_public_allow (1 references) target prot opt source destination

Chain FWDI_public_deny (1 references) target prot opt source destination

Chain FWDI_public_log (1 references) target prot opt source destination

Chain FWDO_public (2 references) target prot opt source destination
FWDO_public_log all -- anywhere anywhere
FWDO_public_deny all -- anywhere anywhere
FWDO_public_allow all -- anywhere anywhere

Chain FWDO_public_allow (1 references) target prot opt source destination

Chain FWDO_public_deny (1 references) target prot opt source destination

Chain FWDO_public_log (1 references) target prot opt source destination

Chain INPUT_ZONES (1 references) target prot opt source destination
IN_public all -- anywhere anywhere [goto] IN_public all -- anywhere anywhere [goto]

Chain INPUT_ZONES_SOURCE (1 references) target prot opt source destination

Chain INPUT_direct (1 references) target prot opt source destination

Chain IN_public (2 references) target prot opt source destination
IN_public_log all -- anywhere anywhere
IN_public_deny all -- anywhere anywhere
IN_public_allow all -- anywhere anywhere

Chain IN_public_allow (1 references) target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ctstate NEW

Chain IN_public_deny (1 references) target prot opt source destination

Chain IN_public_log (1 references) target prot opt source destination

Chain OUTPUT_direct (1 references) target prot opt source destination

I tried some commands to use this but no results

iptables -A OUTPUT -p tcp -s 192.168.0.0/24 --dport 4444 -j ACCEPT

iptables -A INPUT -p tcp -s 192.168.0.0/24 --dport 4444 -j ACCEPT

iptables -A OUTPUT -p tcp -s 192.168.0.0/24 --dport 443 -j ACCEPT

iptables -A INPUT -p tcp -s 192.168.0.0/24 --dport 443 -j ACCEPT

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: allow vmware workstation through firewall, نویسنده: استخدام کار بازدید: 478 تاريخ: دوشنبه 1 شهريور 1395 ساعت: 17:37

صفحه بندی