架設OpenVPN可參考: http://dreamtails.pixnet.net/blog/post/30797812
如下,我們將開啟OpenVPN對內interface的Proxy ARP功能。
方法一: 可即時生效。
# echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
eth0為OpenVPN內部網路的interface.
方法二: OpenVPN電腦重開機後還會生效。
# vim /etc/sysctl.conf
-------------------------------
......
net.ipv4.conf.eth0.proxy_arp = 1
......
-------------------------------
dreamtails 發表在 痞客邦 留言(0) 人氣()
Step 1) 移除/root/dir目錄裡鏈結到其他地方的檔案。
# find / -lname /root/dir/\* 2>/dev/null -exec unlink {} \;
Step 2) 移除/root/dir目錄下所有鏈結(Symbol link).
# find /root/dir -lname \* -exec unlink {} \;
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment:
# cd /home/admin
Create a test file.
# touch Source
Create three symbol links(test001, test002, and test003) below,
# ln -s /home/admin/Source /tmp/test001
# ln -s /home/admin/Source /tmp/test002
# ln -s /home/admin/Source /tmp/test003
dreamtails 發表在 痞客邦 留言(0) 人氣()
Step 1) Go to http://xquartz.macosforge.org/landing/ , download XQuartz-x.x.x.dmg and install it.
Step 2) Go to 「LaunchPad」 --> Open 「X11」
Step 3) Click the "right button" on X11 icon of Dock. --> go to 「Application(應用程式)」 --> Click 「Terminal(終端機)」, then xterm is open.
Step 4) type a command "ssh -X <username>@<hostname or IP>" to connect a host in xterm.
Step 5) type a command "virt-manager".
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N2048, N3048
Secnario: 我想設定第48 port為Trunk port(帶VLAN ID為1011 and 1012的Tags)
Solution: 在Switch加上以下這幾行
# enable
# configure
# vlan 1011,1012
# exit
# interface vlan 1011
# ip address 10.11.0.253 255.255.0.0
# exit
# interface vlan 1012
# ip address 10.12.0.253 255.255.0.0
# exit
# interface gigabitethernet 1/0/48
# switchport mode trunk
# switchport trunk allowed vlan 1011,1012
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N2048, N3048
Secnario: 我想設定第1 port為Access port(帶VLAN ID為1011的Tags)
Solution: 在Switch加上以下這幾行
# enable
# configure
# vlan 1011
# exit
# interface vlan 1011
# ip address 10.11.0.253 255.255.0.0
# exit
# interface gigabitethernet 1/0/1
# switchport access vlan 1011
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N3048
Secnario: 我想設定VLAN 1011與1012這兩個網段可以拿到VLAN 192網段192.168.1.1這台DHCP server發的IP
Solution: 在Switch加上以下這幾行,主要是設定要DHCP relay的VLAN與DHCP server的IP
# enable
# configure
# ip helper-address 192.168.1.1 dhcp
# dhcp l2relay vlan 1011,1012
dreamtails 發表在 痞客邦 留言(0) 人氣()
Environment: N2048, N3048
Secnario: 所有接在N2048與N3048的機器都能互通,唯獨與Switch不同網段的機器連不到Switch(例如: 10.10.10.10要連到switch ip: 192.168.0.252)
Solution: 在Switch上加上以下這一行
# ip default-gateway 192.168.0.254
dreamtails 發表在 痞客邦 留言(0) 人氣()
此篇會講到以下相關這幾個功能:
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) 人氣()
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) 人氣()