LPIC-2 Flashcards
what’s the purpose of an authoritative nameserver
holding zone data for domains
config dir of sendmail?
/etc/mail
Apache2 SSL relevant options?
SSLEngine, SSLCertificateFile, SSLCertificateKeyFile, SSLCACertificateFile
which kernel module is necessary for a DHCP server?
packet socket
What’s the name of the BIND package?
bind
You can configure a caching-only server in one of three ways. Name them.
forwarding only, full recursive or both (full recursive if forward fails)
use kill(all) to reload the config of BIND
kill -s SIGHUP or killall -s SIGHUP named
fetch the current root zone file with dig
dig . ns @a.root-servers.net > db.cache
name alternative DNS Servers
dnsmasq, djbdns and PowerDNS
use “net” to join a domain with adminstrative user “adminuser”
net join member -U adminuser
which binary utility scans your smb.conf for errors?
/usr/bin/testparm
how to display the current status of samba connections?
/usr/bin/smbstatus
name the two daemons of samba
nmbd and smbd
where are the samba logfiles stored and which naming convention is used for client logs?
/var/log/samba
client logfiles are either named after their IP or name
how would you connect to samba share “allusers” on 192.168.1.1 with username “foo” on command line?
smbclient “//192.168.1.1/allusers” -U foo
how would you show available shares on 192.168.1.1 via command line with user “bar”?
smbclient -L 192.168.1.1 -U bar
name smbclient’s option to provide user and pw from a file
-A
if you provide smbclient a auth file, which options does it have to contain and which permissions are necessary?
username, password, domain
0440 or 0600
configure your OpenVPN CA
./vars, ./clean-all, ./build-ca
create keys for OpenVPN Server and a client
./build-key-server, ./build-key
how to build the diffie-hellman parameters for OpenVPN?
./build-dh
specify the file “ca.crt” related to OpenVPN
Copy to: server and all clients
Purpose: CA certificate
Secret: No
specify the file “ca.key” related to OpenVPN
Copy to: Key signing machine only
Purpose: CA Key
Secret: yes
specify the file “dh1024.pem” related to OpenVPN
Copy to: server only
Purpose: Diffie Hellman parameters
Secret: No
specify the file “server.crt” related to OpenVPN
Copy to: server only
Purpose: Server certificate
Secret: no
specify the file “server.key” related to OpenVPN
Copy to: server only
Purpose: Server key
Secret: yes
specify the file “client.crt” related to OpenVPN
Copy to: client only
Purpose: Client certificate
Secret: no
specify the file “client.key” related to OpenVPN
Copy to: Client only
Purpose: Client key
Secret: yes
which options of OpenVPN allows communication between different client networks?
client-to-client
on which port in OpenVPN listening?
1194 UDP
advertise a 10.60.0.0/24 subnet to OpenVPN clients
push “route 10.60.0.0 255.255.255.0”
build a point-to-point connection to remote IP 1.2.3.4 with device tun1, local IP 10.9.8.1 and remote 10.9.8.2
openvpn –remote 1.2.3.4 –dev tun1 –ifconfig 10.9.8.2 10.9.8.1
do a dns lookup on google.com using the caching dns server of the local machine. Provide commands with dig, host and nslookup
dig google.com @127.0.0.1
host google.com 127.0.0.1
nslookup google.com 127.0.0.1
name the 4 main daemons of djbdns
dnscache, tinydns, rbldns, axfrdns
TSIG?
Transaction SIGnature
which two commands are used to sign a zone file?
dnssec-keygen and dnssec-signzone
which option is used to tell named to run in a chroot environment?
-t
In which directory are DNS zone files typically stored?
/var/named
which 3 options are necessary for squid in order to configure a ACL?
auth_param, acl, and http_access, proxy_auth
how to enable user web pages in apache?
UserDir
which two ways of apache can by used to serve virtual domains?
VirtualDocumentRoot and VirtualHost
name the option of apache to enable SSL
SSLEngine On
which option is used to force SSL for apache?
SSLRequireSSL
This directive sets the directory where you keep the Certificates of Certification Authorities (CAs)
SSLCACertificatePath
This directive identifies the SSL certificate file
SSLCertificateFile
show all configured vHosts
apachectl -t -D DUMP_VHOSTS
create a RSA certificate
openssl req -new
create a RSA private key (server.key) with triple-des encryption and 2048 bit
openssl genrsa -des3 -out server.key 2048
create a CSR with server.key to server.csr
openssl req -new -key server.key -out server.csr
PAM management groups
auth, account, session, password