I am using Red hat Linux server 7. & i have Linux mint in my red hat virtual machine. I stored some files in my web server (Which is in host machine). Now i want access it in guest OS (Linux mint). So i tried to entering my web server IP in my guest OS. But i receive “Unable to connect” error in my browser (in guest OS). But able to access it in my host OS. There is anyway to access?
Please check the iptables and turn off your RHEL 7 Firewall…afterwards try to ping between host and guest OS or vice versa…
1 Like
Thanks after disabling firewall, now works fine. Is there any way do that with out disabling firewall?
Permanently disable the firewall
# systemctl disable firewalld
Temporary disable the firewall
# systemctl stop firewalld
Thats all…
Hello, i want this without disabling firewall
Turn On Firewall then
Put the guest OS IP and MAC key to allowed / white list of firewall…
afterwards
# systemctl restart firewalld
1 Like
How to add white list. In hosts.allow file?
say some example
From Firewall configuration
1 Like
I need Command line way. Explain in CLI way
To start GUI
# firewall-config
To start with CLI
# firewall-cmd --permanent --zone=work --add-source=192.168.0.1/24
# firewall-cmd --permanent --zone=work --add-port=8080/tcp
# firewall-cmd --reload