公告版位

此篇會講到以下相關這幾個功能:
    1. CentOS 7.0 啟動OpenVPN service.
    2. 限制VPN Client只能連到公司內部的10.10.0.0/16 網段 (使用iptables)
    3. 將ca.crt , client.crt , client.key , ta.key憑證包進.ovpn檔方便VPN Client使用者方便使用.

dreamtails 發表在 痞客邦 留言(0) 人氣()

查看時區的設定為何?
# timedatectl

dreamtails 發表在 痞客邦 留言(2) 人氣()

The Dell N3048 has to config below,

    1. add "VLAN interface IP"

    2. add "static route"

    3. add command "ip routing"

 

The Juniper SRX240 has to config below,

    - add a "interface IP", if the SRX240 is routing to N3048. 

dreamtails 發表在 痞客邦 留言(0) 人氣()

Environment:

VLAN 1:

        VLAN 1 interface IP: 10.10.0.254/16

        Laptop A IP: 10.10.1.1/16

 

VLAN 2:

        VLAN 2 interface IP: 192.168.0.254/16

        Laptop B IP: 192.168.1.1/16

dreamtails 發表在 痞客邦 留言(0) 人氣()

The interface ge-0/0/0 is uplink only.

dreamtails 發表在 痞客邦 留言(0) 人氣()

問題: Windows 8/8.1 預設的「Windows 相片檢視器」看照片時,照片會有偏黃的問題。

原因: ICC色彩設定檔出了問題。

解決方法如下:
至「控制台」→點選「色彩管理」→在"裝置(D):"的下拉選單選擇「<你的顯示器名稱型號>」→打勾「在此裝置使用我的設定(U)」→移除「<原本的ICC設定檔>」→然後新增「sRGB IEC61966-2.1」的ICC設定檔→最後就點選「關閉」。

dreamtails 發表在 痞客邦 留言(1) 人氣()

A very good easy proxy server base on windows.

Name is CCProxy.

 

Official site: http://www.youngzsoft.net/ccproxy/

dreamtails 發表在 痞客邦 留言(1) 人氣()

1. The table doesn't have foreign key.

>> USE DatabaseName;

>> TRUNCATE TABLE TableName;

 

2. The table has foreign key.

>> USE DatabaseName;

>> DELETE [TableName];

>> DBCC CHECKIDENT('TableName', RESEED, 0);

dreamtails 發表在 痞客邦 留言(0) 人氣()

1. Open "Sql Server Configuration Manager".

dreamtails 發表在 痞客邦 留言(0) 人氣()

1. 開啟「新增/移除程式」選單:

「cmd」→下指令「appwiz.cpl」

 

2. 開啟「系統服務」選單:

「cmd」→下指令「services.msc」

dreamtails 發表在 痞客邦 留言(1) 人氣()

step 1: 使用"管理者權限"打開「命令提示字元」

step 2: 下指令> net user administrator /active:yes

dreamtails 發表在 痞客邦 留言(0) 人氣()

Step1)

# vim /etc/udev/rules.d/70-persistent-net.rules
-----------------------------------------------------------------------
# PCI device 0x14e4:0x1680 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:7b:d8:06", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eno16777736", NAME="eth0"
-----------------------------------------------------------------------

or

-----------------------------------------------------------------------
# PCI device 0x14e4:0x1680 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:7b:d8:06", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eno*", NAME="eth0"
-----------------------------------------------------------------------

dreamtails 發表在 痞客邦 留言(0) 人氣()

環境: CentOS 6.5 64-bit

 

Download Packages:

----------------------------------------------------------------------------------------

1. http://www.centreon.com/

 

(1) Centreon Web

http://www.centreon.com/Content-Download/donwload-centreon

 

2. http://www.nagios.com/

 

(1) Nagios Core

http://www.nagios.org/download/core/

 

(2) Nagios Plugins

http://www.nagios.org/download/plugins/

 

(3) Nagios Addons

 

NRPE:

http://www.nagios.org/download/addons/

 

NDOUtils:

http://www.nagios.org/download/addons/

----------------------------------------------------------------------------------------

 

dreamtails 發表在 痞客邦 留言(3) 人氣()

由下列訊息可以看到紅色部份就是被Firewall擋下來的session.

root@SRX-3400> show security flow cp-session source-prefix 192.168.192.192

dreamtails 發表在 痞客邦 留言(0) 人氣()

NAT_Router

 

上圖為我們的環境架構。

我們主要的設定皆在NAT Server(CentOS 6.5)上,eth0為10.10.1.1/16, Gateway為10.10.0.254,eth1為192.168.212.82/30,eth2為192.168.212.85/30


情境: 由eth1過來的封包且source ip為100.66.1.1/32, 100.66.1.2/32, 100.66.1.3/32. 這些封包將NAT為192.168.212.85並且由eth2出去。

dreamtails 發表在 痞客邦 留言(0) 人氣()