[[PageOutline]] Hier werden die Anpassungen an der Standard-Paedml festgehalten. Bei Updates kann es vorkommen, dass die Änderungen überschrieben werden, diese müssen dann von Hand nachgebessert werden oder aber sie liegen im svn und können automatisch eingefügt werden. = Firewall-Einstellungen in ''/etc/init.d/linuxmuster-base'' = Für die LTSP_Server müssen in der Firewll Freigaben gemacht werden. Das passiert am Ende der Datei im Abschnitt start und restart: {{{ workaround(){ # accept proxy iptables -A IN-eth1-ALLOWED -s 10.32.1.251/32 -j ACCEPT # accept ProxMoxPaedml iptables -A IN-eth1-ALLOWED -s 10.32.1.2/32 -j ACCEPT # accept LTSP-SERVER-KVM (proxmoxltsp1-proxmoxltsp7) iptables -A IN-eth1-ALLOWED -s 10.32.2.101/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.102/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.103/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.104/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.105/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.106/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.107/32 -j ACCEPT # accept LTSP-SERVER (ltsp1-ltsp7) iptables -A IN-eth1-ALLOWED -s 10.32.2.1/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.2/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.3/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.4/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.5/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.6/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.7/32 -j ACCEPT # accept Boot-Sticks (1-4) iptables -A IN-eth1-ALLOWED -s 10.32.2.201/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.202/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.203/32 -j ACCEPT iptables -A IN-eth1-ALLOWED -s 10.32.2.204/32 -j ACCEPT } RC=0 case "$1" in start) start_firewall ; RC="$?" workaround ; ;; stop) stop_firewall ; RC="$?" ;; restart) stop_firewall ; RC="$?" if [ "$RC" = "0" ]; then start_firewall ; RC="$?" fi workaround ; ;; reload) reload_firewall ; RC="$?" workaround ; ;; }}} = Workstationimport in ''/usr/share/linuxmuster/scripts/wimport.sh'' = Die Workstations werden beim ersten Booten mit PXE vom paedml in die Datei /etc/linuxmuster/workstations aufgenommen (zum booten per PXE siehe http://paedml.kg-fds.de/trac/wiki/AdminPxe) - import_workstations erzeugt dann Workstationaccounts und schaltet die Clients auf der Firewall frei: {{{ Raum;Rechner;Gruppe;MAC;IP;netmask;NB;NB;NB;[1|R];[0|22] }}} Bei Imaging [letzte Zahl ganz hinten] bedeutet bei linusmuster.net: - 0: Workstationaccount anlegen aber nicht per Linbo berücksichtigen (Eintrag in /etc/dhcp3/dhcpd.conf.linuxmuster ohne Option pxelinux.configfile) - 22: Workstationaccount anlegen und per Linbo berücksichtigen (Eintrag in /etc/dhcp3/dhcpd.conf.linuxmuster mit Option pxelinux.configfile) Wir haben uns die vorletzte, von der linuxmuster.net nicht genutzte Zahl gekrallt und dort hinterlegt, ob ein !RemboHost vorliegt. Das Script /usr/local/sbin/make_ltsp_config (benutzt /usr/local/sbin/make_ltsp_config.php) erzeugt daraus die Konfigurationsdateien fü den dnsmasq.d auf den LTSP-Servern, dem paedml und dem proxys, lädt diese auf die Server hoch und startet dort den dnsmasq neu. Dabei muss einmal das Key-Passwort eingegeben werden. Das Script wertet die beiden letzten Felder aus (Feld 9 und 10): || Feld 9 || Feld 10 || Bedeutung || || 1 || 22 || Linbo-Host - Eintrag in paedml/clients || || 1 || 0 || Laptop etc - Eintrag in paedml/clients || || R || 0 || Rembo-Host - Eintrag in rembo/clients || Die folgende Anpassung ist in der wimport.sh nötig, damit unsere Anpassungen funktionieren (ganz am Ende): {{{ #echo " * Reloading DHCP service... isc-dhcp-server" #if reload isc-dhcp-server; then # echo " ...done." #else # echo " failed!" # RC=1 #fi #/etc/init.d/bind9 force-reload || RC=1 echo " * Erzeuge neue Konfiguration für DNSMASQ ..." /usr/local/sbin/make_ltsp_config }}} ---- [[CC_BY_NC_SA(J. Baumgärtner, R. Kupper, Kepler-Gymnasium Freudenstadt)]]