Sha256: a55aa156e6ec4f7078dcb0e94e7b97a7b011dfdac60093404c71b69c11ee7235
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
#!/bin/sh mkdir /store/firewall # Copy the service.xml firewall rules to a central storage # so they can survive reboot cp /etc/vmware/firewall/service.xml /store/firewall # Remove end tag so rule addition works as expected sed -i "s/<\/ConfigRoot>//" /store/firewall/service.xml # Add rule for vnc connections echo " <service id='0033'> <id>vnc</id> <rule id='0000'> <direction>outbound</direction> <protocol>tcp</protocol> <porttype>dst</porttype> <port> <begin>5900</begin> <end>5964</end> </port> </rule> <enabled>true</enabled> <required>false</required> </service> </ConfigRoot>" >> /store/firewall/service.xml # Copy updated service.xml firewall rules to expected location # Refresh the firewall rules cp /store/firewall/service.xml /etc/vmware/firewall/service.xml esxcli network firewall refresh # Add steps to profile.local to repeat these steps on reboot echo " cp /store/firewall/service.xml /etc/vmware/firewall/service.xml esxcli network firewall refresh" >> /etc/profile.local
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veewee-atlassian-0.3.11 | templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh |