Vorlage:Rocky Setup: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
==Hostname==
==Hostname==
*hostnamectl hostname <span style="color:red">'''FQDN'''</span>
*hostnamectl set-hostname <span style="color:red">'''FQDN'''</span>


==Netzwerk==
==Netzwerk==
Zeile 7: Zeile 7:
*nmcli con mod enp0s3 ipv4.dns <span style="color:red">'''NS'''</span>
*nmcli con mod enp0s3 ipv4.dns <span style="color:red">'''NS'''</span>
*nmcli con mod enp0s3 ipv4.method manual
*nmcli con mod enp0s3 ipv4.method manual
*nmcli con mod enp0s3 ipv4.dns-search <span style="color:red">'''DOM'''</span>
*nmcli con mod enp0s3 connection.autoconnect yes
*nmcli con mod enp0s3 connection.autoconnect yes
*nmcli con up enp0s3
*nmcli con up enp0s3
==Hintergrund==
;Die Verbindungen findet ihr hier:
*DIR: /etc/NetworkManager/system-connections/
;In unserem Fall
*cat /etc/NetworkManager/system-connections/enp0s3.nmconnection
<pre>
[connection]
id=enp0s3
uuid=40ff96e5-0c0d-31de-9bf0-f75da265425b
type=ethernet
autoconnect-priority=-999
interface-name=enp0s3
timestamp=1784278716


==Nameserver & Suchdomain==
[ethernet]
Der DNS wird bereits über nmcli gesetzt. Suchdomain ergänzen:
 
*nmcli con mod enp0s3 ipv4.dns-search <span style="color:red">'''DOM'''</span>
[ipv4]
*nmcli con up enp0s3
address1=192.168.3.127/24
==Tools die wir haben wollen==
dns=192.168.20.1;
*dnf install vim sudo git curl tcpdump nmap wget epel-release policycoreutils-python-utils tar
dns-search=it.int;
gateway=192.168.3.254
method=manual
 
[ipv6]
addr-gen-mode=eui64
method=auto


== Kit Stamm-CA ziehen und in das System einbauen==
[proxy]
*wget https://web.samogo.de/certs/ca.crt
</pre>
*cp ca.crt /etc/pki/ca-trust/source/anchors/
*update-ca-trust extract
== Zertifikat und Key holen ==
* wget -nv -O /tmp/own.int.tgz https://web.samogo.de/certs/it2XX.int.tgz
* tar -C /tmp -xvzf /tmp/own.int.tgz
* mv /tmp/fullchain.pem /etc/ssl/own.crt
* mv /tmp/privkey.pem /etc/ssl/own.key

Aktuelle Version vom 20. Juli 2026, 06:35 Uhr

Hostname

  • hostnamectl set-hostname FQDN

Netzwerk

  • nmcli con mod enp0s3 ipv4.addresses IP/CIDR
  • nmcli con mod enp0s3 ipv4.gateway GW
  • nmcli con mod enp0s3 ipv4.dns NS
  • nmcli con mod enp0s3 ipv4.method manual
  • nmcli con mod enp0s3 ipv4.dns-search DOM
  • nmcli con mod enp0s3 connection.autoconnect yes
  • nmcli con up enp0s3

Hintergrund

Die Verbindungen findet ihr hier
  • DIR: /etc/NetworkManager/system-connections/
In unserem Fall
  • cat /etc/NetworkManager/system-connections/enp0s3.nmconnection
[connection]
id=enp0s3
uuid=40ff96e5-0c0d-31de-9bf0-f75da265425b
type=ethernet
autoconnect-priority=-999
interface-name=enp0s3
timestamp=1784278716

[ethernet]

[ipv4]
address1=192.168.3.127/24
dns=192.168.20.1;
dns-search=it.int;
gateway=192.168.3.254
method=manual

[ipv6]
addr-gen-mode=eui64
method=auto

[proxy]