双线AD VPN 到固定IP的问题
两个AD上ROS。下面是三层交换。VPN拔号到一个固定IP上的ROS。
原来一个AD上的时候。固定IP上的ROS可以PING到AD三层一台机器的IP。
现在2条AD做分流后。不能到PING固定IP的ros了。
但ad上的ROS 可以PING到固定IP的ROS
四线AD遇到过,但是我在mangle指定int和out以后就正常了。不过想指定VPN拨的时候用哪条AD就一直没弄好。总是指定第一条AD拨VPN,烦。 大家一起想想办法吧.! 此贴可以收了,已经给你解决了;P;P 解决了。。。变通解决方法。。。感谢。。
但不是完美解决方法!
算了,能用就行了! 本帖最后由 cspm333 于 2016-5-4 10:17 编辑
/ip firewall address-list
add list=ADSL1 address=1.1.1.1
add list=ADSL2 address=2.2.2.2
add list=Lan address=192.168.20.0/24
add list=Lan address=192.168.40.0/24
add list=Lan address=192.168.50.0/24
add list=Lan address=192.168.100.0/24
script:
:for i from=1 to=2 \
do={/interface pppoe-client monitor "ADSL$i" once \
do={:if ( address]!=$"local-address") \
do={/ip firewall address-list set address=$"local-address"}}}
/ip firewall mangle
#遇標記時例外的情況
add action=accept chain=prerouting src-address-list=Lan dst-address-list=Lan
add action=accept chain=prerouting src-address-list=Lan dst-address-type=local
add action=accept chain=output dst-address-list=Lan
#從ADSL進入的封包,要從原ADSL接口返回
add action=mark-connection chain=prerouting dst-address-list=ADSL1 new-connection-mark=ADSL1_conn passthrough=yes
add action=mark-connection chain=prerouting dst-address-list=ADSL2 new-connection-mark=ADSL2_conn passthrough=yes
add action=mark-routing chain=output connection-mark=ADSL1_conn new-routing-mark=to_ADSL1 passthrough=no
add action=mark-routing chain=output connection-mark=ADSL2_conn new-routing-mark=to_ADSL2 passthrough=no
add action=mark-routing chain=prerouting connection-mark=ADSL1_conn new-routing-mark=to_ADSL1 \
src-address-list=Lan passthrough=no
add action=mark-routing chain=prerouting connection-mark=ADSL2_conn new-routing-mark=to_ADSL2 \
src-address-list=Lan passthrough=no
#Site-to-Site用,可供GRE/IPIP/IPSEC local-address指定任一ADSL
add action=mark-routing chain=output new-routing-mark=to_ADSL1 passthrough=no src-address-list=ADSL1
add action=mark-routing chain=output new-routing-mark=to_ADSL2 passthrough=no src-address-list=ADSL2
cspm333 发表于 2016-5-4 02:47
/ip firewall address-list
add list=ADSL1 address=1.1.1.1
add list=ADSL2 address=2.2.2.2
测试后回复你!
谢谢。
页:
[1]