LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2018, 08:06 PM   #1
LawsonRL
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Rep: Reputation: Disabled
Arrow SuSE LEAP 15 firewalld


I have been trying to install SuSe LEAP 15 on a system with the idea of a web server with multiple virtual instances of apache2. However, I am still tripping over the new firewalld (new in LEAP 15). I cannot even ping a dns server.

I can see that there is an Ethernet cable connected, but I cannot ever disable firewalld so that I can check everything else out. Other than connected cables nothing works. I come from the world of iptables and since I do not have any connectivity at all, I cannot install any additional packages or perform any updates. I started "IX" with AT&T UNIX and moved along to Linux beginning with Slackware with distributions less than 1. Now I feel like I am on another planet

I have configured the network using Yast2 network settings:
Name IP Device Notes
Network Bridge 0 No IP br0
Network Bridge 1 No IP br1
1 GB card 192.168.1.60 eth0 enslaved in br1
100 MB card 192.168.1.70 eth1 enslaved in br0

Beyond this network configuration, I cannot see the ip addresses 60 and 70 with a network scan, and they are unusable.

I would appreciate something in the way of a configuration guide for the firewalld. I have been unable to find any on line assistance since it is so new, and I cannot add anything since I have no connectivity. Thanks for any help or places to look.
 
Old 08-16-2018, 11:53 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,809
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by LawsonRL View Post
I would appreciate something in the way of a configuration guide for the firewalld. I have been unable to find any on line assistance since it is so new, and I cannot add anything since I have no connectivity. Thanks for any help or places to look.
I don't use firewalld, but https://doc.opensuse.org/documentati...wall.firewalld looks like a place to start. It may be part of a default 15.0 installation.
 
1 members found this post helpful.
Old 08-17-2018, 07:27 AM   #3
Honest Abe
Member
 
Registered: May 2018
Distribution: CentOS 7, OpenSUSE 15
Posts: 420
Blog Entries: 1

Rep: Reputation: 202Reputation: 202Reputation: 202
Quote:
Originally Posted by LawsonRL View Post
I have been trying to install SuSe LEAP 15 on a system with the idea of a web server with multiple virtual instances of apache2. However, I am still tripping over the new firewalld (new in LEAP 15). I cannot even ping a dns server.

I can see that there is an Ethernet cable connected, but I cannot ever disable firewalld so that I can check everything else out. Other than connected cables nothing works. I come from the world of iptables and since I do not have any connectivity at all, I cannot install any additional packages or perform any updates. I started "IX" with AT&T UNIX and moved along to Linux beginning with Slackware with distributions less than 1. Now I feel like I am on another planet

I have configured the network using Yast2 network settings:
Name IP Device Notes
Network Bridge 0 No IP br0
Network Bridge 1 No IP br1
1 GB card 192.168.1.60 eth0 enslaved in br1
100 MB card 192.168.1.70 eth1 enslaved in br0

Beyond this network configuration, I cannot see the ip addresses 60 and 70 with a network scan, and they are unusable.

I would appreciate something in the way of a configuration guide for the firewalld. I have been unable to find any on line assistance since it is so new, and I cannot add anything since I have no connectivity. Thanks for any help or places to look.
I find it easier to let NetworkManager control the networks, but maybe that's just me. Check if you are using network.service or NetworkManager with the following -

Code:
$systemctl status network.service
$systemctl status NetworkManager
Note: The commands may be run as a local/limited user account. Hence the '$'..

Then check the status of your firewalld service -

Code:
$ systemctl status firewalld
(if memory serves me correct, firewalld is activated at the first installation and allows only ssh and DHCP)

Also, when you say network scan, did you do it with nmap ? Here's a cool tutorial in case you need it.
 
1 members found this post helpful.
Old 08-18-2018, 09:24 PM   #4
LawsonRL
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
firewalld is wicked.service - blocking everything

Quote:
Originally Posted by Honest Abe View Post
I find it easier to let NetworkManager control the networks, but maybe that's just me. Check if you are using network.service or NetworkManager with the following -

Code:
$systemctl status network.service
$systemctl status NetworkManager
Note: The commands may be run as a local/limited user account. Hence the '$'..

Then check the status of your firewalld service -

Code:
$ systemctl status firewalld
(if memory serves me correct, firewalld is activated at the first installation and allows only ssh and DHCP)

Also, when you say network scan, did you do it with nmap ? Here's a cool tutorial in case you need it.
When I issued the command for NetworkManger I am advised that it is loaded, disabled, and inactive (dead) - vendor preset is disabled
When I issued the command for network.service I am advised that I am running wicked.service and that it is loaded, enabled, and active (excited), vendor preset is disabled
When I issued the command for firewalld, it is running, enabled, and the vendor preset is disabled

Apparently there is not supposed to be a firewall enabled by default, but I have one enabled somehow. I have tried to shut down firewalld, disable it, or unload it to no avail using yast2. Do you have any ideas as to how I can get this system to communicate?

(I have to hand type because I cannot run putty so these lines are not as neat as Linux presents them.)

I am using Netscan Tools basic edition on Windows 10, which does work, as do my older Linux systems that are running Centos 5.6 and SuSE 11.1. I have been away from the hot new stuff but now I want to run virtual apache2 instances, and figured it was time to update. firewalld has other ideas.
 
Old 08-18-2018, 09:28 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
If you want to deactivate firewalld, then do
Code:
sudo systemctl stop firewalld
Code:
sudo systemctl disable firewalld
 
1 members found this post helpful.
Old 08-18-2018, 10:47 PM   #6
LawsonRL
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Stopped firewalld

Quote:
Originally Posted by ferrari View Post
If you want to deactivate firewalld, then do
Code:
sudo systemctl stop firewalld
Code:
sudo systemctl disable firewalld
Your command lines worked, and did indeed elicit the system responses for stopping and disabling the firewall, but stopping and deactivating the firewall still does not let me get network connectivity. This makes no sense at all. Stopping the firewall should open the system up.
 
Old 08-19-2018, 12:03 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I still don't have a good picture of what you're trying to achieve here. Back to your opening post - show us how the relevant IP addresses are assigned definitively as per these commands...

Code:
ip a
Code:
ip r
 
1 members found this post helpful.
Old 08-19-2018, 01:48 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Setting up multiple virtual apache2 hosts doesn't require the use of network bridges, so further clarification from you is required here. If you want to implement IP-based virtual hosts, the following openSUSE guide may be helpful here...

https://doc.opensuse.org/documentati...host.ip_vhosts

In particular, it is mentioned...
Quote:
The physical server must have one IP address for each IP-based virtual host. If the machine does not have multiple network cards, virtual network interfaces (IP aliasing) can also be used.
 
1 members found this post helpful.
Old 08-19-2018, 10:58 AM   #9
LawsonRL
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
I still don't have a good picture of what you're trying to achieve here. Back to your opening post - show us how the relevant IP addresses are assigned definitively as per these commands...

Code:
ip a
Code:
ip r
What I am trying to achieve is connectivity to this system. I understand that it starts out alive with ssh enabled, but I cannot get into it with PUTTY on port 22 ssh.

IP addresses are shown assigned as follows using Yast2 Network Settings Overview
Name IP Device Notes
Network Bridge 0 No IP br0
Network Bridge 1 No IP br1
1 GB card 192.168.1.60 eth0 enslaved in br1
100 MB card 192.168.1.70 eth1 enslaved in br0

ip r gives no response
ip a gives me more information than I can type here and get it accurately, but the following is representative. If I could achieve connectivity, I would be able to cut and paste the details, but if I could do that I would not have any problem with the system. I simply cannot network connect to it, but it is alive on screen.

ip a gives the following,
loopback <LOOPBACK, UP, LOWER_UP> unknown state in group default
eth0 < BROADCAST, MULTICAST, UP, LOWER_UP > unknown state in group default
eth1, br0, br1 <BROADCAST, MULTICAST, UP, LOWER_UP > state up in group default

Thanks for getting involved in this mind-bender
 
Old 08-19-2018, 11:19 AM   #10
LawsonRL
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Virtual hosts

Quote:
Originally Posted by ferrari View Post
Setting up multiple virtual apache2 hosts doesn't require the use of network bridges, so further clarification from you is required here. If you want to implement IP-based virtual hosts, the following openSUSE guide may be helpful here...

https://doc.opensuse.org/documentati...host.ip_vhosts

In particular, it is mentioned...
I plan to use name based virtual hosting for 3 or 4 instances of Apache. I have a GigE card for the web traffic and a fast Ethernet card for local traffic. This is also because there was an Ethernet card driver issue in the beginning. I downloaded correct driver and installed it with a USB chip and the system quit complaining about it.

However this plan is not working because I cannot talk to my machine. There was a time when I could use Putty to talk to it, but I had no or very little external network connectivity. The system could not update itself, although it said that updates were available. If you told the machine to go ahead and update it would say that it could not access SuSe site. This is the strangest thing that I have ever run into. I would format the disk and load something else, but I really want to know what it going on here. It is a very new distribution with a firewall with a version less than one. That even sounds scary.
 
Old 08-19-2018, 12:30 PM   #11
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by LawsonRL View Post
ip r gives no response
ip a gives me more information than I can type here and get it accurately, but the following is representative. If I could achieve connectivity, I would be able to cut and paste the details, but if I could do that I would not have any problem with the system. I simply cannot network connect to it, but it is alive on screen.

ip a gives the following,
loopback <LOOPBACK, UP, LOWER_UP> unknown state in group default
eth0 < BROADCAST, MULTICAST, UP, LOWER_UP > unknown state in group default
eth1, br0, br1 <BROADCAST, MULTICAST, UP, LOWER_UP > state up in group default

Thanks for getting involved in this mind-bender
It looks like your networking is not configured at all. Here's what my desktop says for those commands:
Code:
[root@webclone:~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 6c:62:6d:44:45:fa brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.55/24 brd 192.168.0.255 scope global noprefixroute enp3s0
       valid_lft forever preferred_lft forever
    inet6 fe80::6e62:6dff:fe44:45fa/64 scope link 
       valid_lft forever preferred_lft forever
[root@webclone:~]# ip r
default via 192.168.0.1 dev enp3s0 proto static metric 100 
192.168.0.0/24 dev enp3s0 proto kernel scope link src 192.168.0.55 metric 100 
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
Note the highlighted parts...that's the IP address of this desktop. Your entries don't show an IP address, therefore, your networking is not configured.

I don't know about wicked.service for networking. A search for "wicked.service Linux" yields many links about what it is and how to use it...including one link about how to turn it off and use Network Manager instead...but it's not clear (to me) if that's what you should do.

Please review the pages resulting from that search...Check back here if you don't get unstuck.
 
1 members found this post helpful.
Old 08-19-2018, 02:11 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I still don't understand why you created network bridges in the first place. Remove them and start over with IP addresses assigned to the ethernet network interfaces. For internet connectivity (as Sean already pointed out), you'll want a default route for the NIC connected to the internet-facing router.

The openSUSE Leap guide for configuring network connections via YaST (when using wicked) can be found here...
https://doc.opensuse.org/documentati...c.network.yast
 
1 members found this post helpful.
Old 08-19-2018, 03:39 PM   #13
LawsonRL
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
Network not configured at all?

Quote:
Originally Posted by scasey View Post
It looks like your networking is not configured at all. Here's what my desktop says for those commands:
Code:
[root@webclone:~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host loNetworking no
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 6c:62:6d:44:45:fa brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.55/24 brd 192.168.0.255 scope global noprefixroute enp3s0
       valid_lft forever preferred_lft forever
    inet6 fe80::6e62:6dff:fe44:45fa/64 scope link 
       valid_lft forever preferred_lft forever
[root@webclone:~]# ip r
default via 192.168.0.1 dev enp3s0 proto static metric 100 
192.168.0.0/24 dev enp3s0 proto kernel scope link src 192.168.0.55 metric 100 
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
Note the highlighted parts...that's the IP address of this desktop. Your entries don't show an IP address, therefore, your networking is not configured.

I don't know about wicked.service for networking. A search for "wicked.service Linux" yields many links about what it is and how to use it...including one link about how to turn it off and use Network Manager instead...but it's not clear (to me) if that's what you should do.

Please review the pages resulting from that search...Check back here if you don't get unstuck.
***************************
I can see where you have an IP address and I do not. I had another tip where I was told that they used NetworkManager. I simply do not understand how I can have a totally unconfigured network when the system displays (note IP addresses) the following:

IP addresses are shown assigned in the snippet below using Yast2 Network Settings Overview.

Name IP Device Notes
Network Bridge 0 No IP br0
Network Bridge 1 No IP br1
1 GB card 192.168.1.60 eth0 enslaved in br1
100 MB card 192.168.1.70 eth1 enslaved in br0

I am going to look at this for a few more days and and just format the disk and start over in another distribution
 
Old 08-19-2018, 04:26 PM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
There are two network management frameworks you can choose from: wicked (similar to traditional ifup) or NetworkManager. Either will work. If you use wicked, then you can configure by hand, or use YaST > Network Settings and configure from there. Read the openSUSE guide for more information if needed. Why are you using a network bridge configuration?
 
1 members found this post helpful.
Old 08-19-2018, 04:50 PM   #15
LawsonRL
LQ Newbie
 
Registered: Jun 2018
Posts: 22

Original Poster
Rep: Reputation: Disabled
wicked.service and a wicked problem

Quote:
Originally Posted by ferrari View Post
There are two network management frameworks you can choose from: wicked (similar to traditional ifup) or NetworkManager. Either will work. If you use wicked, then you can configure by hand, or use YaST > Network Settings and configure from there. Read the openSUSE guide for more information if needed. Why are you using a network bridge configuration?
I am using the network bridge configuration because I planned to use name based virtual apache2 webservers. It has been a while since I installed this distribution (it has not worked since I installed it, but I do not give up easily) and I forget whether the system defaulted to the bridges, or if the system set up the network that way when I set up the virtual configuration. I will try NetworkManager to see what happens but I did download Centos 7 this afternoon. This has been way too much time to try to figure out what happened. I think I have landed on the "bleeding edge" rather than the "leading edge."

Thanks to all of you who have assisted me with this problem. I will answer any replies and close this thread out if and when I change to another distribution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Screen locker broken when upgrading Leap 42.3 to Leap 15.0 Crb999 SUSE / openSUSE 6 06-18-2018 01:13 AM
[SOLVED] Upgrade my current g++ v4.9X to g++ v5.1 or newer on Suse Leap 42.3 jimonlinux Linux - Software 1 03-14-2018 05:28 PM
My suse leap 42.2 stuck and cannot boot ztdep SUSE / openSUSE 1 08-16-2017 12:27 AM
[SOLVED] Suse LEAP 42.2 not starting wlan0 automatically Crb999 SUSE / openSUSE 10 03-15-2017 10:57 AM
Suse 10.1 Leap koncept Linux - Wireless Networking 0 10-29-2006 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration