• 860

[研究所] MikroTik RouterOS 學習 (持續更新)

感謝 pctine 兄的回應。

我後來在網頁上找到的 SXT Lite5 firmware 版本是 3.19,升級後,boot 的問題就解決了。

本來以為使用system routerboard upgrade ,升級的是最新的版本,所以才想要降版,但是又找不到舊版的 bootloader 的載點。幸好換到3.19版,就正常了。
那 請問,該如何將 routeros 已經使用vpn client (pptp)撥到其他的 vpn server . 連接到的 ip 對映給後面的一台機器?

routeros vpn client -> lan ip 192.168.88.xx
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即可
/ip route
add distance=1 gateway=pptp-client1 routing-mark=to_pptp-client1

這部份不行,要指定 dst. Address:

我原本在想,如果只是一個 ip 就使用 ip /route 指定給vpn 介面
但後來還是不行

elodie319 wrote:
那 請問,該如何將 ...(恕刪)


(site A)VPN client <-----> site B (VPN Server)


1.從 site A VPN client 出去的封包做 NAT masquerade.

2.於 site A VPN client 端 NAT 做 dstnat 對應到 site A LAN 內部 server

3.於 site A 設定 ip route, 指定至 site B 網段經 VPN tunnel.

4.site B LAN interface 要啟用 proxy arp

這樣做就夠了.
FB: Pctine
elodie319 wrote:
/ip routea...(恕刪)
小弟給您的資料是正確的,這是從個人主機匯出的.

/ip route命令中沒有dst-address的原因是因為地址為0.0.0.0/0 ,
匯出時系統會省缺,不是小弟刻意忽略dst-address.
gfx 前輩 可以work 了

這樣就可以少掉設定 vpn 的部份

vpn 的部份 max mtu 設定1460 運作ok .
我的是固定6ip 供參
我的lan and wan 都是1500 .
不過,他似乎沒辦法判斷 lan 是9k

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
  • 860
內文搜尋
X
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 860)
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?