PC Infinity's Archiver

閒魂 發表於 2007-2-22 22:24

有冇人對整 VPN 教學有興趣?

琴晚整左個 Hall to Home 既簡單 VPN!#yeah#

nissin 發表於 2007-2-22 23:09

[quote]原帖由 [i]閒魂[/i] 於 2007-2-22 22:24 發表
琴晚整左個 Hall to Home 既簡單 VPN!#yeah# [/quote]

咁係咪可以用你個vpn access到campus 先access 到的 database?

閒魂 發表於 2007-2-22 23:28

[quote]原帖由 [i]nissin[/i] 於 2007-2-22 23:09 發表


咁係咪可以用你個vpn access到campus 先access 到的 database? [/quote]

咁就搵錯地方了… polyU 本身都有 VPN!#no#

nissin 發表於 2007-2-22 23:35

[quote]原帖由 [i]閒魂[/i] 於 2007-2-22 23:28 發表


咁就搵錯地方了… polyU 本身都有 VPN!#no# [/quote]

就係用vpn都唔入得個d

閒魂 發表於 2007-2-22 23:40

咁我諗我都入唔到…

nissin 發表於 2007-2-22 23:55

你試下得唔得
[url=http://www.lib.polyu.edu.hk/cgi-bin/pwd_specs_stand.pl]http://www.lib.polyu.edu.hk/cgi-bin/pwd_specs_stand.pl[/url]
[url=http://www.ihserc.com/cgi-bin/ihslogin]http://www.ihserc.com/cgi-bin/ihslogin[/url]

情長仔 發表於 2007-2-23 00:47

係pcin 個wiki post #yup#

ANTI@# 發表於 2007-2-23 01:56

[quote]原帖由 [i]情長仔[/i] 於 2007-2-23 00:47 發表
係pcin 個wiki post #yup# [/quote]
有d咁既野咩???

閒魂 發表於 2007-2-23 02:32

[quote]原帖由 [i]ANTI@#[/i] 於 2007-2-23 01:56 發表

有d咁既野咩??? [/quote]點解佢會知 @_@ ???

Oatrina 發表於 2007-2-23 12:46

我有興趣 #good# #good#

nissin 發表於 2007-2-23 23:08

[quote]原帖由 [i]情長仔[/i] 於 2007-2-23 00:47 發表
係pcin 個wiki post #yup# [/quote]

我上次打完晒preview完想save...
和記死左 #sm# #sm# #sm#

閒魂 發表於 2007-2-24 09:08

非常簡單版…

Download
[url]http://openvpn.net/download.html[/url]

Environment:

Server : idler.no-ip.org, server, linux
Hall computer name: sagittarius, WinXP

At server
run the following command:

cd /usr/share/openvpn/easy-rsa/
. ./vars
./clean-all
./build-ca # Enter the information as required

Country Name (2 letter code) [KG]:
State or Province Name (full name) [NA]:
Locality Name (eg, city) [BISHKEK]:
Organization Name (eg, company) [OpenVPN-TEST]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:OpenVPN-CA
Email Address [[email]me@myhost.mydo[/email]main]:

./build-key-server server
./build-key sagittarius
./build-dh

transfer ca.crt sagittarius.crt sagittarius.key to sagittarius (3 files), use a secure way.

mv ca.crt dh1024.pem server.crt server.key /etc/openvpn/

vi /etc/openvpn/server.conf
------------------------------------------------
port 1194
proto udp        # You may use TCP
dev tun                # tun for routing, tap for bridging

ca ca.crt
cert server.crt
key server.key
dh dh1024.pem

server 172.16.0.0 255.255.255.0                # Assign subnet
ifconfig-pool-persist ipp.txt                # Record of client, used when OpenVPN goes down or is restarted, then reconnect them
push "route 192.168.0.0 255.255.255.0"        # Let client route according these
push "route 10.0.0.0 255.255.255.0"
push "dhcp-option WINS 172.16.0.1"        # Let client use this WINS server
client-to-client                        # Allow client see client
keepalive 10 120
;comp-lzo                # Don't enable, it is terrible slow
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
------------------------------------------------

cd /etc/openvpn
ln -s server.conf openvpn.conf
/etc/init.d/openvpn restart

At client running windows XP, goto C:\Program Files\OpenVPN\config
create client.ovpn, use notepad edit it.

------------------------------------------------
client
dev tun
proto udp
remote idler.no-ip.org 1194
remote [url]www.pcinhk.com[/url] 1194        # They are same but as back up for ddns resolving failure
remote-random                        # random choose
resolv-retry infinite
nobind
persist-tun
ca ca.crt
cert sagittarius.crt
key sagittarius.key
;comp-lzo
verb 3
------------------------------------------------

Start it as services called "OpenVPN". If it get connected, then test it with ping, then test with samba.

For details, let's see [url]http://openvpn.net/howto.html[/url]

閒魂 發表於 2007-2-24 09:20

OpenVPN 是非常安全的 VPN,使用 OpenSSL,連線內容已被加密…沒人會知你用網絡做什麼,由於也不用 IPsec,不用特別的 kernel 選項,也容易穿過 firewall,可算是只要有 internet 就能 connect!

key 要由 server 針對每部機發出,不是 key signing machine 發的 key 一定不能 connect!因為發 key 要先有 ca.key。

至於 SSL 為何安全,因為加密和解密是用不同的 key 做的…
連線建立前,雙方都有一對自己的 key,就是 private key 和 public key(私匙/公匙),公匙可以人人都知道,但私匙就只有自己才知道…
傳送時以對方的公匙加密,接收到以自己的私匙解密,沒有私匙可說是一定解不到的!因此 SSL 就係咁安全…

頁: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.