dcurtisfra:
Thanks for pointing information sources, had a look at those. I need to have a closer look…
arvidjaar:
Yes, two, thinking: that way I will have no problems keeping them separate.
About /etc/sysctl.d:
The directory contains a file “70-yast.conf”, with content:
net.ipv4.ip_forward = 0
net.ipv6.conf.all.forwarding = 0
net.ipv6.conf.all.disable_ipv6 = 1
-which looks to me like what I wanted to get (no forwarding, no IPv6)
But that’s it, nothing else, no 50-*.conf files as I’ve seen before.
Is it that the directory /etc/sysctl.d/ is not used anymore but Yast is not aware of that and happily writes there thinking someone will read them?
The Security and Hardening Guide dcurtisfra mentiones says in “25.2 Masquerading basics”:
“However, the router must be configured before it can forward such packets. For security reasons, this is not enabled in a default installation. To enable it, add the line net.ipv4.ip_forward = 1 in the file /etc/sysctl.conf. Alternatively do this via YaST, for example by calling yast routing ip-forwarding on.”
I think I tried to do the opposite of this using Yast, failing.
The file /etc/sysctl.conf reads:
####
#
# /etc/sysctl.conf is meant for local sysctl settings
#
# sysctl reads settings from the following locations:
# /boot/sysctl.conf-<kernelversion>
# /lib/sysctl.d/*.conf
# /usr/lib/sysctl.d/*.conf
# /usr/local/lib/sysctl.d/*.conf
# /etc/sysctl.d/*.conf
# /run/sysctl.d/*.conf
# /etc/sysctl.conf
#
# To disable or override a distribution provided file just place a
# file with the same name in /etc/sysctl.d/
#
# See sysctl.conf(5), sysctl.d(5) and sysctl(8) for more information
#
####
-i.e. empty from the system’s point of view. But as it mentions “/etc/sysctl.d/*.conf”, one might think that the file “70-yast.conf” would be read(?).
Should I add a line net.ipv4.ip_forward = 0 in the file /etc/sysctl.conf?
About firewalld
Yast2 - services manager says:
* firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2021-09-17 04:38:40 EEST; 5h 51min ago
Docs: man:firewalld(1)
Main PID: 1154 (firewalld)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/firewalld.service
`-1154 /usr/bin/python3 /usr/sbin/firewalld --nofork --nopid
From the above I guess it is active (if Yast is to be trusted).
So far, I have configured firewall with Yast. The Security and Hardening Guide, in 25.4 firewalld mentions firewall-config. I installed it and had a glimpse, need to dig it further to get some idea of it.