firewall problem

Hi, i installed openSUSE leap 15.1 in server version on virtual machine, installed apache, configured everything, redirected port 80. it works from virtual machine but if i want to access it from my windows where the machine is - it don’t work

i think issue is in firewall configuration i was looking on the internet how to fix it but nothing helped >:(

im newbie on opensuse and on linux overall

sorry for my english and please help :slight_smile:

Hi, welcome to these forums.

Can you tell us how you are trying to access the webserver from your Windows machine?
Is the webserver running on it’s own IP as well as 127.0.0.1 ?
Is the VMs networking configured ?

Well, I guess that would depend on what you searched for. :wink:

Open the graphical ‘firewall-config’ utility and enable the http service (port 80) and if required you can also allow https (port 443) as well. Once done, select Options > Runtime To Permanent’ and you should be good to go.

This can also be done via the ‘firewalld-config’ CLI with something like…

sudo firewall-cmd --permanent --add-port=80/tcpsudo
firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload

virtual machine is configured correctly i think because i’ve done it already on Cent OS and it worked

to access server im typing http://(ip adress) it doesnt matter if i type internal or public ip it doesnt work anyway

server is running on its own ip

wow firewall-cmd worked thanks

Surprise surprise. :wink:

Refrain from thinking. :wink: Always show what you have:

erlangen:~ # firewall-cmd --list-services 
dhcpv6-client **http** minidlna ssh
erlangen:~ #