how to check which settings or rules block access by firewalld - firewalld

I`m trying install a guest vm with bridge network setting on fedora 32, but in the guest can only access host when firewalld on host is turned on.
I have set LogDenied=all, but nothing logged.
How can I check or monitor which settings or rules in firewalld block guest vm access the network.

Related

VirtualBox: Host can not SSH to Guest

i'm having some issue with m VirtualBox installation, 6.1.22.
I have a VM with SUSE (SL12P1) for 64bit as a guest operative system, I have already installed the extension package and I'm trying to reach the guest from the host-system (Windows10) using ssh.
I have set the network adapter as "Bridge", in this way the guest has a 192.168.120.x IP, which i verified with ifconfig while the host has an IP of 192.168.120.y.
I can ping the guest from the host, but I cannot ssh the guest from the host system.
Notice that:
The firewall has been disabled
I have enabled Hyper-V virtualization.
I have tried setting the network adapter as NAT, and use port forwarding, but the ssh does not work either
The firewall for SuSE was active by default, after disabling it everything worked.

not able to access virtual machine centos from other computers

I have setup apache on centos 7 vm inside ubuntu host. I can access the webserver my giving ip of guest on the host fine. But, If I try to access it from another computer on the network , it does not work. I cannot even ping to my guest vm ip from other computers.there is no firewall in centos and no selinux.please advise.I am using KVM
Check your route
apache2 restrictions
/etc/sysconfig/network-scripts/ifcfg-??
when you say you can access do you mean when on the host you can access the host? if this is the case can you ping out? alot of info is missing to determine what is wrong
if it is and I am guessing the configuration on the network device make sure to systemctl restart network when you are done

Why do I get an error when connecting to port 80 between guests

I have two VMs. Both on the nat (vmnet8) adapter. Both machines appear to be on the same subnet.
Guest1 - 192.168.18.146
Guest2 - 192.168.18.150
I can ssh between the machines. However, when I try http it fails:
[root#localhost conf]# wget 192.168.18.146
--2016-02-18 09:53:03-- http://192.168.18.146/
Connecting to 192.168.18.146:80... failed: No route to host.
How can I access a webserver hosted on guest1 from guest2?
I have also tried a custom adapter and bridged with the same result.
OS firewall issue. I originally verified that iptables was not running but another service, firewalld was running and blocking access to port 80. Disabling the firewall allows me to access port 80 from my guests and host.

How to install whm,cPanel in my laptop?

I want to install whm & cpanel in my laptop. I install centOs 6.4 using oracle virtualBox as per instruction/iso in http://www.comunidadhosting.com/t/tutorial-de-como-instalar-cpanel-en-localhost.18879/.
After install it i check IP and it show me 10.0.2.15 . but my main problem is I am not able ping to guest machine from my host. When I ping from my guest to host machine then it's working fine , and host get internet access also.
I use NAT in networking.
Can any body tell me what is the problem and how to solve it ?
You need to check if you have a bridged connection OR a NAT connection with the outside host network. Both should have the same network connection and IP may be same/different.
And, if you have done this, then you need to disable the firewall on the guest-machine side so that your host machine could connect to the VM.
Your ping may then be failing because of getting blocked by the VM's firewall.

Accessing host machine IIS from a guest OS in VMWare

How can I access a site configured in IIS 7 on the host machine from a guest OS in VMWare (Fedora 10). I have configured the VM to use "NAT"
Depends on your network configuration of vmware product you are using (player, server, workstation). If it is set for a bridged mode, then you can do it as any other machine - by host machine's IP. If it is a "host only" or NAT mode - check what is the gateway IP for the guest (/sbin/route), and try using it:
# /sbin/route
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.x.y.z 0.0.0.0 UG 0 0 0 eth0
In this case, 10.x.y.z is the ip of the host machine.
Pretty easy...
Step 1 Configure IIS on the host OS to include a binding, if you would like to use a "url". for example mySite.com
Step 2. In the Guest open up the hosts file c:\windows\system32\drivers\etc\hosts.
Add the entry
[hostip address] [host iis bining url]
Example
192.168.0.1 mySite.com
restart your browser in the guest, and you should be good to go.

Resources