2015年11月4日星期三

SRX & J Series Site-to-Site VPN Configuration Tools

Juniper 有一個很方便的tools 幫助你在SRX & J Series firewall or VPN gateway 建立VPN .

https://www.juniper.net/support/tools/vpnconfig/

2015年10月26日星期一

Manually sync AD account to Office 365.

Office 365 有提供一個Tools (Directory Sync tool )能夠把現有AD account Sync上office 365.
但如果只是使用Password Sync而不是Single sign-on , 這樣每一次sync都要等待一段時間才能update account info 去office 365. 
這樣能夠使用Synchronization Service Manager tools 手動sync AD account 至office 365
這個一個Tools 能夠在C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe 找到.



在這一個tools 能夠檢查Log 和 手動sync account至office 365.
在Action > Run  分別有以下兩個大選項
Active Directory Connector 
Windows Azure Active Directory Connector 
要手動將account sync上office 365就需要先由AD import Data 至Dirsync 再由 Dirsync export 至o365.

程序由Action > Run > Active Directory Connector >Delta import Delta Sync



執行後而success 在tools的左下方能夠檢查更改了什麼.

然後就需要由Dirsync Server 的資料Export 至Office 365 .

Action > Run > Windows Azure Active Directory Connector > Export 


之後就能夠馬上在office 365 看得見在AD 上建立的account .




2015年3月30日星期一

Esxi update from the command


ESXI 有好多種update version 的方法...包括有ISO , Update Manager , bundle zip file .
當中我比較喜歡使用bundle 經由cli update version. 主要原因是用ISO 光碟既形式去update 雖要reboot server最少兩次. 要一部server reboot兩次實在太長時間了XD, 而很好用的update manager 只能在有vcenter 的情況下使用...


1. 首先先upload你需要update 的bundle zip . 大多數的情況下我都會使用vSphere Client 直接upload 至storage 或是使用WinScp.

2.Enable SSH service

3.進入Maintenance mode . 可使用這一個vim-cmd hostsvc/maintenance_mode_enter

4. update cmd 如下
esxcli software vib install -d "File_location"
注意File_location 必需要係Full patch
就好像如下
esxcli software vib update -d "/vmfs/volumes/LocalDisk/ISO/VMware-ESXi-6.0.0-2494585-HP-600.9.1.39-Mar2015-depot.zip

5.update 完後reboot 再Exit Maintenance mode. 可使用這一個vim-cmd hostsvc/maintenance_mode_exit

2012年12月13日星期四

Windows Server 2012 VDI 新增更多Virtual Desktops和維護

一間公司總是加人手...這樣也會需要加更多的 Virtual Desktop
只需要在RD Service >Collection >Virtual Desktops >Tasks>Add Virtual Desktop便可







輸入需要增加多少台Virtual Desktop











分配在那一台Virtual Host (但是我現在只有一台 所以都設定在同一個Host)

之後按下 Create 就可.

完成後在Virtual Desktops 也會增加新的 Virtual Desktops














除了新增更多Virtual Desktop 外...其實可能想增加Virual Desktop 的CPU 和RAM 或是在 所有Virual  Desktop 更新Software/安裝新的software

這樣我就需要在 一開始建立的 Virtual Desktop Template 下手了

先由再簡單的增加CPU 和 Memory試

首先 先去Hyper-V Manager 找回 之前建立好的 Templat 的VM >右鍵 > Settings












現在的Memory是2GB  ..我將會改為1GB

改好後在Virtual Desktops > Tasks > Recreate All Virtal Desktops




選擇返個 Template VM











因為Receate VM 期間 ,都不夠使用VM 的 所以microsoft 就好貼心地給你個 task scheduler
但我現在只是測試,所以就馬上recreate virtaul deskops.

 














之後按下Create
再等一段時間



















然後在看看重新建立的VM 也Memory 也變了1GB.












接住也嘗試一下 新增software 在所有的VM

其實跟更改Virtual CPU 和 Memory 也是更改Template VM 再一次 Recrute All Virtual Desktop

先Start up 部Template VM 咁原先這一台 Template VM 是新裝什麼都沒有的.

現在就裝個Adobe reader 作為示範.





















安裝後 個Template 已經有Adobe reader 就做一次Sysprep
不過做之前也最好做一次Snapshot ,之後有問題也能力還原

執行 "cmd"

輸入 "cd C:\Windows\System32\Sysprep" (去到 sysprep folder)

輸入 "sysprep /oobe /generalize /shutdown" (執行sysprep)

這樣它就會執行Sysprep , 然後會自動關機.



















 然後r跟之前一樣 Recreate All Virtuak Desktops


完成後在 Remote 入 Virtual Desktops 就見到 已經安裝好了Adobe reader

 以後Update Software 或安裝新的也能夠這樣做.

2012年12月12日星期三

Windows Server 2012 VDI 安全性

安全性

Server 2012 VDI default是允許 Client 存取 virtual desktops 的資源 
但是能夠好簡單地關閉一些資源的
在RD service >Collections > (你的VDI 名稱) > Properties >Tasks>Edit Properties

在Virual Desktop Collection Client 便能設定 能夠存取那一些資源

































設定好後 嘗試連線Remote App 也會發現了 少了部份能夠整選擇的選項

例如好似變了跟下圖一樣.



















Windows Server 2012 VDI 實作 (設定篇。下)

上一篇試作的VDI 只能夠在local networks 使用.但如果要將這個Service 在Internet 使用 就必須裝RD Gateway.

在RD Service > Overview > Deployment overview 按下RD Gateway
























2012年12月11日星期二

Windows Server 2012 VDI 實作 (設定篇。上)







安裝後在Server Manager 就會多了一個"Remote Desktop Services.





















在RD Service 你會看現VDI 的基本的架構圖.



















2012年12月6日星期四

Windows Server 2012 VDI 實作 (安裝篇)

在這個BYOD年代 VDI 也是一種幾不錯的資安手法.而在Server 2012 VDI 設定上比Server 08 來又更簡單,還有在Server 2012 看得出也很重視VDI 很多設定都變得很簡單.

在Add Roles and Features Wizard 選擇" Remote Desktop Services insallation".


















IBM X3650 Can't reinstall Windows Server

在IBM server 上裝了Windows server 2012 會在Server BIOS boot option增加了一個"Windows Boot Manager".這一個會更有快更有效地進入Windows.

但是當想重裝個windows 的時候就發現會 Boot CD Failed .
你換了碟或是轉了CD BOOT , 都有會同一個情況.
其實只是在BIOS的Boot Option > Delete Boot Option, 把"Winodws Boot Manager" Delete後使可以.


2012年11月18日星期日

實作Server 2008 to 2012 AD Migration (二)

 做完了Dcpromo 後 Server2012 便會自動reboot一次

接住便是一些檢查動作,
DNS Server DC Record 是否已經建立



"AD Users and Computer"  Domain Controllers,


















"AD Site and Services"  NTDS Setting



















這一些檢查其實是很重要的....AD的健康是否正常很多時候都是建立的出現的

2012年11月17日星期六

實作Server 2008 to 2012 AD Migration (一)

Server 08 to 12 可以話係咁多代最簡單的....不用係08 Server Server 用adprep upgrade Domain Controller ,又不用在Server 轉個Functional level, 這一些動作都由Server 2012幫你做好.

下面係實作了~

2012年11月16日星期五

IBM X3500 M4 安裝Esxi 5.1 後出現Error 燈

當我想嘗試把一台IBM x3500 M4 由ESXi 5.0 升到ESXI 5.1...
發覺Server正前方出現 Error Light ..經過一輸的查證後 應該問題出在IBM Server UEFI  firmware上 















最簡單的解決方法是先去IBM Support download ,先搵你的Server 型號, OS 選擇任何一個也可以

在眾多的firmware 和drive 尋找  "IBM uEFI Flash Update" ,然後把它Download 下來.

然後在Server BIOS 設定IMM...然後在IMM Server Management >Server Firmware

upload file 再upgrade. 重新開機就可以了~
 

IBM / HP ESXi 5.1 ISO download


其實IBM 和 HP 都會自行製作一些ESXi ISO image 給自家的品牌Server 有更好的Drive support 或有更詳細的資料顯示, 例如 BIOS Version ,Server Model 等等


IBM ESXi 5.1 download Link:
http://www-03.ibm.com/systems/x/os/vmware/esxi/


HP ESXi 5.1 download Link:

https://my.vmware.com/web/vmware/details?downloadGroup=HP-ESXI-5.1.0-GA-10SEP2012&productId=285

2012年11月15日星期四

在vSphere Client 開啟SSH的方法

由vSphere Client 開啟

在Esxi Host>Configuration>Software >Security Profile> Service >


選擇Service的Properties> 在SSH 選擇Options

















係Service Commands ,Click Start. 就可以SSH入Esxi
















2012年11月14日星期三

All Esxi Ports

All Esxi Ports

ESX3
ProductPortProtocolSourceTargetPurpose
Data Recovery22024TCPData Recovery vSphere Client Plug-inData Recovery ApplianceData Recovery management
ESX 3.x80TCPVI / vSphere clientESXi/ESX HostRedirect Web Browser to HTTPS Service (443)
ESX 3.x443TCPVI / vSphere clientESXi/ESX HostVI / vSphere client to ESXi/ESX Host management connection
ESX 3.x902TCPVI / vSphere clientESXi/ESX HostVI / vSphere client to ESXi/ESX hosted VM connectivity (MKS)
ESX 3.x903TCPVI / vSphere clientESXi/ESX HostVM Remote Console

ESX 4
ProductPort ProtocolSourceTargetPurpose
ESX 4.x80TCPVI / vSphere clientESXi/ESX HostRedirect Web Browser to HTTPS Service (443)
ESX 4.x443TCPvSphere ClientESXi/ESX HostvSphere Client to ESXi/ESX Host management connection
ESX 4.x902TCPvSphere ClientESXi/ESX HostvSphere Client to ESXi/ESX hosted VM connectivity (MKS)
ESX 4.x903TCPVI / vSphere clientESXi/ESX HostRedirect Web Browser to HTTPS Service (443)


ESXi 3
ProductPortProtocolSourceTargetPurpose
ESXi 3.x80TCPVI / vSphere clientESXi/ESX HostRedirect Web Browser to HTTPS Service (443)
ESXi 3.x443TCPVI / vSphere clientESXi/ESX HostVI / vSphere client to ESXi/ESX Host management connection
ESXi 3.x902TCPVI / vSphere clientESXi/ESX HostVI / vSphere client to ESXi/ESX hosted VM connectivity (MKS/Remote Console)
ESXi 3.x903TCPVI / vSphere clientESXi/ESX HostVM Remote VM Console (MKS)

ESXi4
ProductPortProtocolSourceTargetPurpose
ESXi 4.x80TCPVI / vSphere clientESXi/ESX HostRedirect Web Browser to HTTPS Service (443)
ESXi 4.x443TCPVI / vSphere clientESXi/ESX HostVI / vSphere client to ESXi/ESX Host management connection
ESXi 4.x902TCPVI / vSphere clientESXi/ESX HostVI / vSphere client to ESXi/ESX hosted VM connectivity (MKS/Remote Console)
ESXi 4.x903TCPVI / vSphere clientESXi/ESX HostVM Remote Console (MKS)


ESXi5
ProductPortProtocolSourceTargetPurpose
ESXi 5.x22TCPvSphere clientESXi 5.xSSH Server
ESXi 5.x80TCPvSphere clientESXi 5.xRedirect Web Browser to HTTPS Service (443)
ESXi 5.x443TCPVI / vSphere clientESXi/ESX HostVI / vSphere client to ESXi/ESX Host management connection
ESXi 5.x902TCPvSphere ClientESXi 5.xvSphere Client access to virtual machine consoles (MKS)


vCenter 2.5.x
ProductPortProtocolSourceTargetPurpose
vCenter 2.5.x80TCPVI / vSphere clientvCenter ServerRedirect Web Browser to HTTPS Service (443)
vCenter 2.5.x443TCPVI / vSphere clientvCenter ServervSphere Client access to vCenter Server
vCenter 2.5.x903TCPVI / vSphere clientvCenter ServerVI / vSphere client to VM Console

vCenter 4.x
ProductPortProtocolSourceTargetPurpose
vCenter 4.x80TCPVI / vSphere clientvCenter ServerRedirect Web Browser to HTTPS Service (443)
vCenter 4.x443TCPvSphere ClientvCenter ServerVI / vSphere client access to vCenter Server
vCenter 4.x903TCPVI / vSphere clientvCenter ServerVI / vSphere client to VM Console
vCenter 4.x8080TCPVI / vSphere clientvCenter Server 4.xRedirect Web Browser to HTTPS Service (443)
vCenter 4.x8443TCPVI / vSphere clientvCenter Server 4.xvSphere Client access to vCenter Server

vCenter 5.x
ProductPortProtocolSourceTargetPurpose
vCenter 5.x80TCPvSphere clientvCenter ServervCenter Server requires port 80 for direct HTTP connections
vCenter 5.x443TCPvSphere clientvCenter ServervCenter Server system uses to listen for connections from the vSphere Client.
vCenter 5.x902TCPvSphere clientESXi 5.xvSphere Client uses this ports to display virtual machine consoles.
vCenter 5.x903TCPvSphere clientESXi 5.xRemote console traffic generated by user access to virtual machines on a specific host.
vCenter 5.x8080TCPvSphere clientvCenter ServerWeb Services HTTP. Used for the VMware VirtualCenter Management Web Services.
vCenter 5.x8443TCPvSphere clientvCenter ServerWeb Services HTTPS. Used for the VMware VirtualCenter Management Web Services.
vCenter 5.x9443TCPvSphere clientvCenter ServervSphere Web Client Access
vCenter 5.x10080TCPvSphere clientvCenter ServervCenter Inventory Service HTTP
vCenter 5.x10443TCPvSphere clientvCenter ServervCenter Inventory Service HTTPS