Amigo sinceramente n testei esse script do pcc com hotspot na mesma maquina, sei q no site internacional tem um script adptado por eles para funcionar hotspot e pcc na mesma maquina, de uma procurada la e adpte seu pcc para o mesmo q o deles, ou faça pcc separado do hotspotCitação:
amigo, coloquei essa opção no meu mais não vai, na hora que habilito o hotspot, a rede para, continua em abrir a pagina de autenticação ..
segue as regras novamente ..
Código :
/ip firewall nat add action=passthrough chain=unused-hs-chain comment=\ "place hotspot rules here" disabled=yes add action=masquerade chain=srcnat comment="masquerade hotspot network" \ disabled=no src-address=10.10.10.0/24 add action=masquerade chain=srcnat comment="Mascaramento do PCC" disabled=no \ out-interface=Oi_UP_512 add action=masquerade chain=srcnat comment="" disabled=no out-interface=\ Oi_UP_256
Código :
/ip firewall mangle add action=mark-connection chain=input comment="" connection-state=new \ disabled=no in-interface=Oi_UP_256 new-connection-mark=Oi_UP_256_conn \ passthrough=yes add action=mark-connection chain=input comment="" connection-state=new \ disabled=no in-interface=Oi_UP_512 new-connection-mark=Oi_UP_512_conn \ passthrough=yes add action=mark-routing chain=output comment="" connection-mark=\ Oi_UP_256_conn disabled=no new-routing-mark=to_Oi_UP_256_conn \ passthrough=yes add action=mark-routing chain=output comment="" connection-mark=\ Oi_UP_512_conn disabled=no new-routing-mark=to_Oi_UP_512_conn \ passthrough=yes add action=accept chain=prerouting comment="" disabled=no dst-address=\ 189.80.16.80/29 in-interface=Rede_Local add action=accept chain=prerouting comment="" disabled=no dst-address=\ 189.80.219.80/29 in-interface=Rede_Local add action=mark-connection chain=prerouting comment="" disabled=no \ dst-address-type=!local in-interface=Rede_Local new-connection-mark=\ Oi_UP_512_conn passthrough=yes per-connection-classifier=\ both-addresses:2/0 add action=mark-connection chain=prerouting comment="" disabled=no \ dst-address-type=!local in-interface=Rede_Local new-connection-mark=\ Oi_UP_256_conn passthrough=yes per-connection-classifier=\ both-addresses:2/1 add action=mark-routing chain=prerouting comment="" connection-mark=\ Oi_UP_512_conn disabled=no in-interface=Rede_Local new-routing-mark=\ to_Oi_UP_512_conn passthrough=yes add action=mark-routing chain=prerouting comment="" connection-mark=\ Oi_UP_256_conn disabled=no in-interface=Rede_Local new-routing-mark=\ to_Oi_UP_256_conn passthrough=yes
Código :
ip>route add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\ 189.80.16.81 routing-mark=to_Oi_UP_256_conn scope=30 target-scope=10 add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\ 189.80.16.81 scope=30 target-scope=10 add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\ 189.80.219.81 routing-mark=to_Oi_UP_512_conn scope=30 target-scope=10 add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\ 189.80.219.81 scope=30 target-scope=10
Código :
/ip address add address=10.10.10.1/24 broadcast=10.10.10.255 comment=\ "Rede Local - Clientes Rua" disabled=no interface=Rede_Local network=\ 10.10.10.0 add address=189.80.16.82/29 broadcast=189.80.16.87 comment="Link Oi 256" \ disabled=no interface=Oi_UP_256 network=189.80.16.80 add address=189.80.219.82/29 broadcast=189.80.219.87 comment="Link Oi 512" \ disabled=no interface=Oi_UP_512 network=189.80.219.80