Rain'_阳光 发表于 2015-7-9 17:13:42

双ADSL做了PCC,用户不会跳转到HOTSPOT认证页

双ADSL做了PCC,用户不会跳转到HOTSPOT认证页,,,手动打开是可以的 ,,经排查是哪儿进哪儿出的四线标记引起的,,禁用就可以,,但是也得要哪儿进哪儿出啊,求助解决办法,



ADSL和PCC的设置如下

/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 primary-dns=222.85.85.85 secondary-dns=222.88.88.88
/ip address add address=172.16.0.1/255.255.0.0 interface=lan comment=LAN
/ip firewall mangle add chain=forward comment="change MSS" protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
/interface pppoe-client add name=pppoe-out1 interface=wan1 user=637116991550 password=321321 add-default-route=no disabled=no
/interface pppoe-client add name=pppoe-out2 interface=wan2 user=637116991601 password=321321 add-default-route=no disabled=no
/ip firewall mangle add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=adsl_conn_1 passthrough=yes
/ip firewall mangle add action=mark-routing chain=output comment="" connection-mark=adsl_conn_1 disabled=no new-routing-mark=adsl_rout_1 passthrough=yes
/ip firewall mangle add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out2 new-connection-mark=adsl_conn_2 passthrough=yes
/ip firewall mangle add action=mark-routing chain=output comment="" connection-mark=adsl_conn_2 disabled=no new-routing-mark=adsl_rout_2 passthrough=yes
/ip firewall mangle add action=mark-connection chain=prerouting comment=PCC_1 disabled=no dst-address-type=!local in-interface=lan new-connection-mark=adsl_conn_1 passthrough=yes per-connection-classifier=both-addresses:2/0
/ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=adsl_conn_1 disabled=no in-interface=lan new-routing-mark=adsl_rout_1 passthrough=yes
/ip route add check-gateway=ping comment=ADSL_1 disabled=no distance=1dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=adsl_rout_1
/ip route add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1
/ip firewall nat add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out1
/ip firewall mangle add action=mark-connection chain=prerouting comment=PCC_2 disabled=no dst-address-type=!local in-interface=lan new-connection-mark=adsl_conn_2 passthrough=yes per-connection-classifier=both-addresses:2/1
/ip firewall mangle add action=mark-routing chain=prerouting comment="" connection-mark=adsl_conn_2 disabled=no in-interface=lan new-routing-mark=adsl_rout_2 passthrough=yes
/ip route add check-gateway=ping comment=ADSL_2 disabled=no distance=1dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=adsl_rout_2
/ip route add comment="" disabled=no distance=2 dst-address=0.0.0.0/0 gateway=pppoe-out2
/ip firewall nat add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out2


幸福依旧 发表于 2015-7-14 17:03:18

换个脚本,或者修改output里面有个选项也可以!

yjcoke 发表于 2015-7-23 18:20:45

input删除即可
页: [1]
查看完整版本: 双ADSL做了PCC,用户不会跳转到HOTSPOT认证页