CentOS: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(11 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
=Interface Konfiguration=
+
*[[centos-6]]
'''vi /etc/sysconfig/network-scripts/ifcfg-eth0'''
+
*[[centos-7]]
 
+
*[[centos-8]]
;DEVICE="''eth0''"
 
:Gibt den Namen der Schnittstelle an
 
 
 
;HWADDR="<nowiki>08:00:27:35:E9:2B</nowiki>"
 
:Gibt die MAC-Adresse an
 
 
 
;ONBOOT="yes"
 
:Gibt an ob die Schnittstelle beim booten gestartet werden soll
 
 
 
;IPADDR="192.168.0.100"
 
:Gibt die IP-Adresse der Schnittstelle an
 
 
 
;NETMASK="255.255.255.0"
 
:Gibt die Netzmaske der Schnittstelle an
 
 
 
;GATEWAY="192.168.0.1"
 
:Gibt den default Router an
 
=Hostname ändern=
 
*http://www.rackspace.com/knowledge_center/article/centos-hostname-change
 
==ssh enablen==
 
chkconfig sshd on
 
=openswan=
 
===nss zertifikate===
 
*to use sql format of nss db which fedora's openswan expects
 
export NSS_DEFAULT_DB_TYPE="sql"
 
*Create a new certificate database(use empty passwords)
 
certutil -N -d /etc/ipsec.d
 
*P12 import
 
pk12util -i certkey.p12 -d /etc/ipsec.d
 
*find the name of certificate in nss db
 
certutil -L -d /etc/ipsec.d
 
*Now certificates are imported into nss db in /etc/ipsec.d. Now we should
 
configure openswan to use the nss database:
 
*create file /etc/ipsec.d/nss.certs with the following:
 
@fqdn: RSA "name of certificate in nss db" ""
 
*https://lists.openswan.org/pipermail/users/2009-July/016991.html
 
*https://lists.openswan.org/pipermail/users/2012-April/021504.html
 

Aktuelle Version vom 10. November 2020, 14:34 Uhr