Red Hat SATELLITE 5.1.0 RELEASE NOTES Spezifikationen Seite 131

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 137
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 130
$my_vm.DisplayType = 'VNC'
$uv = update-vm -vmobject $my_vm
$sv = start-vm -VmObject $my_vm
} else {
$my_vm = add-vm -name $baseName$i -templateobject $my_temp -HostClusterId $my_clusId
-copytemplate -Vmtype server -Async
#Until BZ 617730 and 617725 are addressed, use this work around
$my_vm.DisplayType = 'VNC'
$my_vm.DisplayType = 'VNC'
$uv = update-vm -vmobject $my_vm
}
}
firewall-config.sh
#!/bin/bash
# PORTS="80 443 50007 50006 50008 50009 21064 11111 5404 5405"
# PROTOS="udp tcp"
# Backup existing iptables file
cp /etc/sysconfig/iptables{,.orig}
# Grab the ports
echo "Please put the ports you would like to firewall here, separated by a space:"
read PORTS
# Grab the protocols
echo "Please put the protocols you would like to firewall here, separated by a space:"
read PROTOS
# Create the rhcf chain
iptables --new-chain RHCF
iptables --insert INPUT --jump RHCF
for PROTO in ${PROTOS}; do
for PORT in ${PORTS}; do
iptables --append RHCF --protocol ${PROTO} --destination-port ${PORT} --jump ACCEPT
echo "iptables --append RHCF --protocol ${PROTO} --destination-port ${PORT} --jump
ACCEPT"
done
done
131
www.redhat.com
Seitenansicht 130

Kommentare zu diesen Handbüchern

Keine Kommentare