DD-WRT OpenVPN 上網問題

小弟剛剛 flash 左部1043ND 做 dd-wrt , 起左OpenVPN ,
發現client 可以經VPN 去 server side 但係就上唔到出面d 網,

我嘗試unselect 左 個 redirect default gateway 就得左,
但係就到client ping 唔到server 個面,

係咪Gateway set 錯呢?

thank all

有無依句

echo 1 > /proc/sys/net/ipv4/ip_forward

TOP

thank you for reply ,

係咪係 admin -> command 度打??

TOP

通常係dns 冇set or set 錯....  set 返 8.8.8.8 應該ok...

TOP

但係我ping 出面d ip 都唔得

同埋係vpn Additional Config到
我有打push "dhcp-option DNS 8.8.8.8"

TOP

小弟剛剛 flash 左部1043ND 做 dd-wrt , 起左OpenVPN ,
發現client 可以經VPN 去 server side 但係就上唔 ...
thereus 發表於 2013-6-6 13:59


"redirect default gateway" is a must..

unselect 左 個 redirect default gateway, the web browsing traffic will NOT pass through the Open VPN router and therefore you can access internet.

Reference my full setting
http://www.hkepc.com/forum/viewthread.php?tid=1774976

I believe certain setting missing in your configuration.

TOP

"redirect default gateway" is a must..

unselect 左 個 redirect default gateway, the web browsing  ...
tomleehk 發表於 2013-6-14 18:02



    關唔關version 事呢?

我見師兄個個 version 已經冇得download,

有冇話1043用邊一個version 最好

TOP

本帖最後由 tomleehk 於 2013-6-19 22:08 編輯

Possible.. Any version may has its own type of bug..

Best version can only be provided by other C-hing having identical experience/exposure on your router..

Or you can try out one-by-one beginning from the latest version..

In general,  you should check
1) Router can get WAN IP ? <= verify the WAN IP address at DD-WRT configuration main page
2) client can connect to router properly ? <= Ping router IP address ( e.g. 192.168.1.1 )  after connection
3) After connection, can client ping 8.8.8.8 ?
.....etc...

The ultimate goal is to make the client show router's WAN IP address when www.getip.com is loaded, after client is connected to VPN router properly..

TOP

Possible.. Any version may has its own type of bug..

Best version can only be provided by other C-h ...
tomleehk 發表於 2013-6-19 21:57



    thank ching 回應

我現在用的是DD-WRT v24SP2- (03/25/13) std
1)My Router can get IP
2)I can ping router from my client
3)i can ping 8.8.8.8


And here have some log on router openvpn tab:

Serverlog 20130619 22:00:14 I OpenVPN 2.3.0 mips-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Mar 25 2013
20130619 22:00:14 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:14
20130619 22:00:14 W WARNING: using --duplicate-cn and --client-config-dir together is probably not what you want
20130619 22:00:14 W NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
20130619 22:00:14 Diffie-Hellman initialized with 1024 bit key
20130619 22:00:14 Socket Buffers: R=[87380->131072] S=[16384->131072]
20130619 22:00:14 I TUN/TAP device tun2 opened
20130619 22:00:14 TUN/TAP TX queue length set to 100
20130619 22:00:14 I do_ifconfig tt->ipv6=1 tt->did_ifconfig_ipv6_setup=0
20130619 22:00:14 I /sbin/ifconfig tun2 192.168.60.1 netmask 255.255.255.0 mtu 1500 broadcast 192.168.60.255
20130619 22:00:14 I Listening for incoming TCP connection on [undef]
20130619 22:00:14 Socket flags: TCP_NODELAY=1 succeeded
20130619 22:00:14 I TCPv4_SERVER link local (bound): [undef]
20130619 22:00:14 I TCPv4_SERVER link remote: [undef]
20130619 22:00:14 MULTI: multi_init called r=256 v=256
20130619 22:00:14 IFCONFIG POOL: base=192.168.60.2 size=252 ipv6=0
20130619 22:00:14 MULTI: TCP INIT maxclients=1024 maxevents=1028
20130619 22:00:14 I Initialization Sequence Completed
20130619 22:00:17 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20130619 22:00:17 D MANAGEMENT: CMD 'state'
20130619 22:00:17 MANAGEMENT: Client disconnected
20130619 22:00:17 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20130619 22:00:17 D MANAGEMENT: CMD 'state'
20130619 22:00:17 MANAGEMENT: Client disconnected
20130619 22:00:17 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20130619 22:00:17 D MANAGEMENT: CMD 'state'
20130619 22:00:17 MANAGEMENT: Client disconnected
20130619 22:00:17 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20130619 22:00:17 D MANAGEMENT: CMD 'status 2'
20130619 22:00:17 MANAGEMENT: Client disconnected
20130619 22:00:17 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:14
20130619 22:00:17 D MANAGEMENT: CMD 'log 500'
20130619 22:00:17 MANAGEMENT: Client disconnected

TOP

本帖最後由 tomleehk 於 2013-6-19 22:19 編輯

1) Ensure "redirect default gateway"  is checked on server, save and reboot VPN router
2) Then  connect  client to VPN router, type at the DOS prompt of client
tracert      8.8.8.8  <ENTER>

and post the result..

TOP