PC Infinity's Archiver

AlfredChan 發表於 2009-6-19 15:59

I can connect to openvpn server under win7/vista successfully

I have used lots of time struggling on this issue...
Luckily, I got successful finally

觀星是答案 發表於 2009-6-19 17:33

well
好難架咩 ? 我前日想起個 OpenVPN server, 可惜 Win7 可能未 support, 太煩了
都係換返 dd-wrt 做 PPTP server 算

閒魂 發表於 2009-6-19 23:18

[quote]I have used lots of time struggling on this issue...
Luckily, I got successful finally
[size=2][color=#999999]AlfredChan 發表於 2009-6-19 15:59[/color] [url=http://www.pcinhk.com/discuz/redirect.php?goto=findpost&pid=137014&ptid=2107642][img]http://www.pcinhk.com/discuz/images/common/back.gif[/img][/url][/size][/quote]
just post your step #hehe#

AlfredChan 發表於 2009-6-21 11:04

If you want to use push "redirect-gateway" function, you have to type the following commands

step1:  iptables -t nat -A POSTROUTING -o eth0 (change to vpn server's interface which hold the real IP)  -j SNAT --to 63.127.146.199 (changed to vpn server's real IP)
step2: iptables -A FORWARD  -j ACCEPT
step3: iptables -L -t nat     (list all rules,have a look of result)
step4: echo 1 > /proc/sys/net/ipv4/ip_forward

----------------------------------------------------------------------------
Edit your server.conf with adding the following lines
push "dhcp-option DNS xxx.xxx.xxx.xxx" where xxx.xxx.xxx.xxx is your ISP's DNS
push "redirect-gateway"
-----------------------------------------------------------------------------
Edit client.ovpn under win7/vista with the adding the following lines for successful connection
route-method exe
route-delay 10

Finally, restart your openvpn server. Everything is supposed to be ok then!  Enjoy it:)

觀星是答案 發表於 2009-6-21 12:22

O甘煩 ~
我用 PPTP, 咩都唔駛做都可以用 VPN 個 network 上網 (因為 default 已經係 "use server gateway")

AlfredChan 發表於 2009-6-22 10:41

well...your solution is quite good...
How to use PPTP server ?

觀星是答案 發表於 2009-6-22 11:02

[quote]well...your solution is quite good...
How to use PPTP server ?
[size=2][color=#999999]AlfredChan 發表於 2009-6-22 10:41[/color] [url=http://www.pcinhk.com/discuz/redirect.php?goto=findpost&pid=137257&ptid=2107642][img]http://www.pcinhk.com/discuz/images/common/back.gif[/img][/url][/size][/quote]
easy 得太過份了
[url]http://www.hkepc.com/forum/viewthread.php?tid=1153322&page=20#pid18623234[/url]

AlfredChan 發表於 2009-6-23 10:01

ya...the setting is really easy and PPTP is good to use, thanks for your recommendation!

頁: [1]

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