2016年2月17日 星期三

AP(WIFI)大哉問


1.      通常在AP佈署之前,會做訊號探勘,所謂的事前規劃。有幾點需要注意!


甲、金屬屏蔽(防火閘門、金屬樑柱、金屬隔間、電冰箱、微波爐、鐵櫃…)AP直接存取路徑須避開這些物品。

乙、覆蓋率與訊號衰減(隔間牆、樓面牆),計算距離與衰減的程度,是否需要密集的佈署。

丙、適合的位置(裸露或者是至於隱蔽處),通常輕鋼架上面會是個好選擇,如果不是要注意失竊的問題。走PoE與否引響佈線。

2.      AP的選擇 功能與價錢

甲、干擾考量,選擇2.4GHz或5GHz考量,2.4GHz可以覆蓋較大的空間、5GHz則是干擾較少且速度較快,可以支持802.11ac雙頻。

乙、與Switch之間的架構規劃 與 網路架構的安全性考量(身分驗證機制)

丙、售價是否在預算空間內、數量是否足以涵蓋需求範圍。

3.      擴張性

甲、未來空間延展,是否還能有對應型號可以採購或擴充。

乙、考量未來升級的可能性,韌體、保固、維護計畫。

丙、用戶增加時的可用性。

2015年11月10日 星期二

Install/Configuration Remote Desktop Licensing

Install Remote Desktop Licensing
1)     In Server Manager, open the Manage menu and click Add Roles and Features.

2)     Click Next until you get to the Server Roles page. Check the box next to Remote Desktop Services and click Next.

3)     Click Next until you get to the Role Services page. Check the box next to Remote Desktop Licensing and click Next.

4)     Click Add Features if prompted.

5)     Then finish the wizard to install the role service.


Activate Remote Desktop Licensing

1)     After RD Licensing is installed, in Server Manager, open the Tool menu, expand Terminal Services and click Remote Desktop Licensing Manager.
2)     The tool should find the local server. If it does not, right-click All servers, click Connect and type in the name of the local server. Once the local server can be seen in the list, right-click the server and click Activate Server.

3)     In the Welcome to the Activate Server Wizard page, click Next.

4)     In the Connection Method page, click Next.

5)     In the Company Information page, enter the required information and click Next.

6)     All of the fields on the Company Information page are optional so you do not have to enter anything. Click Next.

7)     In the Completing the Activate Server Wizard page, uncheck the box next to Start Install Licenses Wizard now and click Finish. Since the session hosts will be configured to pull Per User licenses, there is no need to install licenses on the RD Licensing Server.

8)     In RD Licensing Manager, right-click the server and click Review Configuration.

9)     Ensure you have green check marks. If the person installing Remote Desktop Licensing does not have permissions to add the server to the Terminal Server License Servers group in Active Directory, ask a domain admin to do it manually. If you have the proper permissions, click Add to Group.

10)     Click Continue when prompted that you must have Domain Admins privileges.

11)  Click OK when prompted that the computer account has been added.

12)  Click OK to close the window.


Remote Desktop Licensing Configuration
Do the following on your 2012 R2 Remote Desktop Session Hosts. The only way to configure Remote Desktop Licensing is using group policy (local or domain).
1)     For local group policy, run gpedit.msc.

2)     Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Licensing.

3)     Double-click Use the specified Remote Desktop license servers. Change it to Enabled and enter the names of the XenDesktop Controllers. Click OK.

4)     Double-click Set the Remote Desktop licensing mode. Change it to Enabled and select Per User. Click OK.

5)     In Server Manager, open the Tools menu, expand Terminal Services and click RD Licensing Diagnoser.

6)     The Diagnoser should find the license server and indicate the licensing mode. It’s OK if there are no licenses installed on the Remote Desktop License Server.

2015年9月9日 星期三

NetScaler Backup And Restore Step By Step




Objects
liccense file(.lic file)
configuration(ns.conf)
certification(SSL Cert)

Lab Infrastuucture
Old NetScaler Backup to New NetScaler
Down Old NetScaler

VPX Check Networking Interface
0. Import New NetScaler VPX or New MPX
1. check both MAC Address (License Issue)
2. restart both NetScaler (Disconection/Down Services)
3. On Old NetScaler: use winSCP copy /var/ns_sys_backup/.tgz to local computer
4. On New NetScaler: system/backup and restore Create New Backup FileName:
5. On New NetScaler: use WinSCP Rename /var/ns_sys_backup/.tgz to _old.tgz
6. Upload local computer .tgz to New NetScaler:/var/ns_sys_backup/
7. Restart New NetScaler
8. On New NetScaler: system/backup and restore To restore .tgz
9. Check restore state then reboot
10. Check New NetScaler configuration/license/certification

2015年8月17日 星期一

Citrix NetScaler Two Arm Mode SNIP Record Issue


在Citrix的環境中,NetScaler提供了良好的接入點解決方案,但是也造成了一些稽核上的困境。

有客戶面臨到經過了NetScaler後無法正確取得Source IP的困擾,即Web Server透過NetScaler (Two-Arm Mode)做Loadbalance後,無法看到Client IP Address的問題,只能看到SNIP(NetScaler的Ssub Net IP Address)的問題。
我們提供了下述解決方式:

官方網站參考連結
http://support.citrix.com/proddocs/topic/netscaler-load-balancing-93/ns-lb-advancedsettings-cip-tsk.html



To insert client IP address in the client request by using the configuration utility
  1. In the navigation pane, expand Load Balancing, and then click Services.
  2. In the details pane, select the service for which you want to add the client IP address in the request, and then click Open.
  3. In the Configure Service dialog box, click the Advanced tab.
  4. Under Settings, select the Client IP check box.
  5. In the Header text box, type the header tag (for example, X-Forwarded-for).
  6. Click OK.



我寫Code的一個好友跟我說,可以透過下述ASP.NET語法去取得相關IP位址資訊,請您的AP Team可以嘗試看看。
 string clientIP = GetClientIP();
        ///
        ///
取得正確的ClientIP
        ///

        ///
        protected string GetClientIP()
        {
            //判所client端是否有設定代理伺服器
            if (Request.ServerVariables["HTTP_VIA"] == null)  
                return Request.ServerVariables["REMOTE_ADDR"].ToString();
            else
                return Request.ServerVariables["
HTTP_X_FORWARDED_FOR"].ToString(); 
        }

        private static string RetrieveIP(HttpRequest request)
        {
            string ip = request.ServerVariables["HTTP_X_FORWARDED_FOR"];
            if (ip == null || ip.Trim() == string.Empty)
            {
                ip = request.ServerVariables["REMOTE_ADDR"];
            }
            return ip;
        }

參考連結

經Lab測試結果與客戶驗證證明此法有效。

2015年7月13日 星期一

台中客戶裝機遇到的三小問題匯整


1. 多重網卡的靜態路由
兩張網路卡不同網段:
A. 192.168.0.0 255.255.0.0 - GW在192.168.1.1
B. 172.16.0.0 255.255.255.0 - GW在172.16.0.1

現在有一筆路由要到10.0.0.0 255.255.0.0從A界面出去 要怎麼設?
route add 10.0.0.0 mask 255.255.0.0 192.168.1.1 if 0x2
if後面接網路卡的代號

C:\Users\Eric>route print
===========================================================================
介面清單
 13...8c a9 82 35 94 f8 ......Intel(R) WiFi Link 1000 BGN
 14...8c a9 82 35 94 f9 ......Microsoft Virtual WiFi Miniport Adapter
 15...8c a9 82 35 94 f9 ......Microsoft Virtual WiFi Miniport Adapter #2
 12...f0 bf 97 11 ed 81 ......Realtek PCIe GBE Family Controller
 11...90 00 4e a9 4a 9e ......Bluetooth 裝置 (個人區域網路)
  1...........................Software Loopback Interface 1
 25...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
 21...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
 16...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================

用cmd(命令提示字元)時,show route print,前面的代碼就是介面卡代號。

下完之後確定route print該筆靜態路由已經加入,並進行測試,例如Ping該段網路設備。
沒問題後,使用該指令加上-p在加入一次,-p會將該筆靜態路由寫入登入檔,重開機後仍然會永久生效。

參考來源:http://tonyhack.familyds.net/wordpress/?p=2491

2. 關閉UAC
http://windows.microsoft.com/zh-tw/windows/turn-user-account-control-on-off#1TC=windows-7
請參考微軟上述連結

開啟或關閉 UAC

開啟 [使用者帳戶控制設定],請按一下 [開始] 按鈕 [開始] 按鈕的圖片,然後按一下 [控制台]。 在搜尋方塊中,輸入uac,然後按一下 [變更使用者帳戶控制設定]。

執行下列其中一個動作:

若要關閉 UAC,請將滑桿移到 [不要通知] 位置,然後按一下 [確定]。  需要系統管理員權限如果提示您輸入系統管理員密碼或確認,請輸入密碼或提供確認資訊。您需要重新啟動電腦,才能關閉 UAC。

若要開啟 UAC,請移動滑桿以選擇通知您的時機,然後按一下 [確定]。  需要系統管理員權限如果提示您輸入系統管理員密碼或確認,請輸入密碼或提供確認資訊。

3. 在 Windows Server 2008 設定單一帳戶多重遠端登入的方法

長話短說,在登入檔(執行Regedit.exe)下找:"電腦設定 / 系統管理範本 / Windows 元件 / 終端機服務 / 終端機伺服器 / 連線 / 限制終端機服務的使用者只能使用一個遠端工作階段"
將其設為"已停用",套gpupdate /force即可重新連線後,即生效。

http://blog.miniasp.com/post/2010/07/26/Restrict-each-user-to-a-single-session-disable.aspx
保哥文章連結參考來源

2015年4月1日 星期三

ICA無法正常的被開啟執行,變成下載


當你連上StoreFront或WI,每次都會遇到是否需要安裝Citrix Receiver時,表示該瀏覽器很可能沒有正確的被設定APPDATA的關聯,需要檢查是否用了攜帶版本的瀏覽器。

如果是IE沒有辦法正確執行ICA檔案,很有可能是Web不在被信任的網站區塊內,必須將URL加入信任的網站,詳細請參考下述網址:

http://support.citrix.com/article/CTX804493

2015年3月24日 星期二

Cisco ASA5505 Transparent Firewall Configuration


台中某電廠的ASA 5505使用的透通式L2 Firewall的設定。

詳情請參考影片檔。