Git Product home page Git Product logo

Comments (21)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
不知道是不是说清楚了,上面那几张截图是在windows下连接vpn�
��有使用ddwrt的情况下的配置信
息。

Original comment by [email protected] on 31 May 2010 at 9:19

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
非常清楚了。我目前判斷是 router_dhcp.jpg  
這裡設定問題。請問一下:

1. 你的WAN是PPPoE嗎, 也就是一般的ADSL嗎
2. router_dhcp.jpg  這張圖裡面 Gateway 
192.168.1.1應該是不需要設置的

Original comment by [email protected] on 31 May 2010 at 9:27

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
感谢回答
1.这台ddwrt路由器是接在公司局域网内部的,分配的地址192.168
.1.2是公司内部局域网地址,
192.168.1.1这台是局域网的出口路由器.
2.我不知道不设置是不是可以,我一会儿试试.

下面附几张截图,关于这台翻墙路由器的lan和wan设置信息

Original comment by [email protected] on 31 May 2010 at 9:38

Attachments:

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
好像 router ip 那儿的 gateway 必须得设一个啊

Original comment by [email protected] on 31 May 2010 at 9:41

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
router_wan.jpg  這張圖設置錯誤了

如果公司網路是DHCP發放IP給你的話,例如發給你192.168.172.22 
甚至隨機發給你的話,

你設置router IP 192.168.1.2 netmask 255.255.255.0 即可, 
這裡完全不需要再設置Gateway了。

能否再描述一下你的公司DHCP發放的IP網段以及公司網關IP?




Original comment by [email protected] on 31 May 2010 at 9:46

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
没有启用dhcp, 公司网关是 192.168.1.1, 
局域网设置就是192.168.1.0/255.255.255.0 

Original comment by [email protected] on 31 May 2010 at 9:51

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
"你設置router IP 192.168.1.2 netmask 255.255.255.0 即可, 
這裡完全不需要再設置Gateway
了。"
---------
但是似乎那个文本输入框不能为空??? 
不需要设置,但是我也无法清除现有的设置啊

Original comment by [email protected] on 31 May 2010 at 9:53

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
[deleted comment]

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
好的,所以你是使用static 
方式,這時候DD-WRT其實是在公司給你的IP下面另外再切出一個
subnet

這樣設定看看

WAN Connection Type: static IP 
然後會看到可以設置的部分, 這裡填寫公司的IP資訊,例如
IP: 192.168.1.2 (公司給你的IP)
mask: 255.255.255.0
GW: 192.168.1.1 (公司的GW)

然後設置你的router, 切出另一個subnet

router IP: 192.168.100.1
mask: 255.255.255.0
GW不需要設定

這時候DDWRT就會建立一個192.168.100.0/24的subnet,而這個subnet裡��
�的所有client就可以透過
DDWRT連出去。

你要的是這樣的結果嗎?

Original comment by [email protected] on 31 May 2010 at 10:03

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
嗯... 
实际上我可以自由使用公司的ip地址,不需要再另外切出subnet
,我设想的是现在局域网里
有两台路由器,一台是192.168.1.1,一台是192.168.1.2,普通工作�
��途的话将网关设为
192.168.1.1就行了,如果需要翻墙就将网关设置为192.168.1.2。不�
��道这样可否实现? 不过另开
subnet的想法也可以,我试试

Original comment by [email protected] on 31 May 2010 at 10:06

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
另外你说的gw不需要设定,我不知道如何不做任何设定,如果
删除文本框里的数字会跳出提示窗
口,必须要填写,那么应该怎么填,0.0.0.0吗?

Original comment by [email protected] on 31 May 2010 at 10:10

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
yes 0.0.0.0

你先試試看另開subnet吧

Original comment by [email protected] on 31 May 2010 at 10:23

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
>我设想的是现在局域网里有两台路由器,一台是192.168.1.1,��
�台是192.168.1.2,普通工作用途的话将网
关设为192.168.1.1就行了,如果需要翻墙就将网关设置为192.168.1
.2

這個架構不是不可能,但是需要花一些時間調整腳本,目前��
�部分用戶都不是這個scenario, 所以我就不打算調
整腳本了,再麻煩您試試看subnet的方式,並讓我知道是否成��
�,謝謝!


Original comment by [email protected] on 31 May 2010 at 10:27

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
嗯,刚试了,没有成功。wan设置见附图,pptp 
client也启用了,firewall也配置了,但是启用以后
执行cat /tmp/autoddvpn.log却没有任何输出,当然也就没有连上了

Original comment by [email protected] on 31 May 2010 at 10:32

Attachments:

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
你有辦法ssh進去ddwrt裡面,打一下which tee
我看一下是不是沒有tee這個指令?

目前我寫入log的方式是用tee命令,不過我這邊有一台是刷比��
�新的ddwrt版本,裡面沒有tee指令,
我正在開發一個新版的。

另外,如果你ssh進去成功之後,試著手動下rc_firewall的那一整
行命令,然後把畫面的輸出貼給我看一下,也許
我可以幫忙。

Original comment by [email protected] on 31 May 2010 at 11:06

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
[deleted comment]

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
對了如果你能ssh進去,再幫忙測試一下幾個:

1. ping 192.168.1.1  確定你跟公司gw是通的
2. ping 你VPN的IP, 確定你可以出公司gw到VPN public IP
3. ifconfig ppp0 確定你的PPTP VPN有撥上。
這個如果沒有播上的話,你可以連續打,如果發現2-3min都沒��
�上,但是1~2的測試都是OK的話,那就是
PPTP無法連接的問題。

如果1-3都OK, 
那就手動執行那行rc_firewall命令,並且把輸出貼給我看看

Original comment by [email protected] on 31 May 2010 at 11:09

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
我這邊發現,如果WAN是static 
IP的話,網路一帶起來就直接執行wget可能會有問題,
我這邊調整一下腳本,應該等一下就可以釋放出一個測試版��
�了。

你這邊可以先ssh進去手動執行rc_firewall看看。

Original comment by [email protected] on 31 May 2010 at 11:22

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
[deleted comment]

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
20100531的dev version我剛剛放出了,請幫忙測試看看
http://code.google.com/p/autoddvpn/wiki/DevVersion
目前發現DD-WRT的 WAN形態不能設置為static IP, 
否則可能PPTP無法撥號成功,這可能是ddwrt的bug

Original comment by [email protected] on 31 May 2010 at 11:56

from autoddvpn.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
新版應該已經解決了,見
http://code.google.com/p/autoddvpn/wiki/HOWTO

Original comment by [email protected] on 22 Jun 2010 at 11:06

  • Changed state: Verified

from autoddvpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.