返回列表 發帖

【RouterOS】——怎样route traffic to the remote gateway

本帖最後由 角色 於 2014-11-17 14:07 編輯

两个routerboards (Routerboard A,B)用VPN连起来是非常方便的,但是怎样把PC 插入Routerboard A,然后把PC的traffic 转到Routerboard B的gateway走呢?

应该这样说,因为RB的RouterOS一般都有default configuration file,里面已经有default route 0.0.0.0/0,所以用/interface pptp-client里的default route 0.0.0.0/0没有起作用。所以我们用policy route才能完成。

下面的10.0.81.0/24是我的router的network ID,你们可以改回default network 192.168.88.0/24。
  1. /ppp profile
  2. add name="profile-hk" use-encryption=yes

  3. /interface pptp-client
  4. add name="pptp-hk" connect-to=ip_address_or_hostname user="john" \
  5. password="john-passowrd" profile=profile-hk

  6. /ip firewall mangle
  7. add chain=prerouting action=mark-routing new-routing-mark=through_vpn_hk \
  8. protocol=tcp src-address=10.0.81.0/24

  9. /ip firewall nat
  10. add chain=srcnat action=masquerade src-address=10.0.81.0/24 \
  11. out-interface=pptp-hk

  12. /ip route
  13. add dst-address=0.0.0.0/0 gateway="pptp-hk" routing-mark=through_vpn_hk
複製代碼

本帖最後由 角色 於 2013-11-16 13:17 編輯

问题是local traffic么怎样route到remote gateway呢?



根据雯雯的信息就是红色部分那一条route,ChinaIP就是用来让大陆local的route从local gateway走。
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

TOP

TOP

有updated信息放在一楼。

TOP

The following post gives you a very good tutorial of how to set up a client (PPTP) to a remot PPTP server and route the packets to the remote server gateway.

http://strongvpn.com/setup_mikrotik_pptp.html

TOP

More information from MikroTik Forum

http://forum.mikrotik.com/viewtopic.php?t=73775

TOP

哈哈,你把RouterOS的功能都发挥得淋漓尽致!!!佩服!

TOP

返回列表