elodie319 wrote:您說的是"功夫網路".
那 請問,該如何將 ...(恕刪)
假設pptp-server地址是123.123.123.123 帳號:vpn 密碼:vpn
指定的裝置ip是:192.168.88.100
對應如下:
/interface pptp-client
add add-default-route=no allow=mschap2 connect-to=123.123.123.123 \
dial-on-demand=no disabled=no keepalive-timeout=10 max-mru=1400 max-mtu=1400 \
mrru=disabled name=pptp-client1 password=vpn profile=default-encryption user=vpn
/ip firewall mangle
add action=mark-routing chain=prerouting src-address=192.168.88.100 \
dst-address=!192.168.88.0/24 new-routing-mark=to_pptp-client1 passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pptp-client1
/ip route
add distance=1 gateway=pptp-client1 routing-mark=to_pptp-client1
把範例中幾個重要的關鍵字先做修改,再匯入您的ROS即可

add distance=1 gateway=pptp-client1 routing-mark=to_pptp-client1
這部份不行,要指定 dst. Address:
我原本在想,如果只是一個 ip 就使用 ip /route 指定給vpn 介面
但後來還是不行
elodie319 wrote:
gfx 前輩 可以...(恕刪)
您可下載mturoute.exe (dos執行檔)做測試.
https://dl.dropboxusercontent.com/u/34743921/mturoute.exe
mturoute用法與ping相同,如:
mturoute 192.168.1.12
mturoute tw.yahoo.com
顯示的Path MTU ,即最佳連線MTU值.
elodie319 wrote:
我的lan and ...(恕刪)
您的是固6,所以WAN MTU當然是1500;PPPoE用戶則會是1492或者其它.
LAN (Ethernet)的MTU則一定是1500,這是常數...除非您刻意變更它.
稍早您設定功夫網的電腦,您可測mturoute tw.yahoo.com
最佳MTU一定不會是1500或者1460 ,而是PPTP的1408或者1400.
您可以試試.
----------------------------------------
在做mturoute測試時,最大ICMP payload即最佳MSS(最大分段大小)
而MSS與MTU(最大傳輸單元)則是相差20個IP頭與20個TCP頭的關係.
所以最佳MSS+40 ,即最佳MTU
http://www.mobile01.com/topicdetail.php?f=110&t=3205444&p=278#53208552
內文搜尋

X