2 links e 2 serviços distintos
olá estou iniciando no under e gostaria q vcs me ajudem.... Eu tenho 1 link de 2 mega e 1 adsl de 1 mega e uso mikrotik, tenho um servidor com 3 interfaces, gostaria de q meus amigos abrissem as paginas http no adsl e todo restante no link... eu fiz da seguinte forma so q nao deu certo...
/ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=HTTPpassthrough=yes comment="" disabled=no /ip route add gateway=x.x.x.x/x routing-mark=HTTP comment="HTTP Traffic" disabled=no
/ip route rule add src-address=0.0.0.0/0 table=HTTP action=lookup me ajudem por favor... aguardo anciosa:elefant:
2 links e 2 serviços distintos
Ola Vitoria,
Tenho em produção um Load Balancing com 2 ADSL rodando normal.. em 1 cliente
e tenho outro rodando Embromatel + ADSL Velhox rodando legal... Posso te ajudar
a montar suas regras... meu msn : [email protected]
Se quiser posso te mandar exemplos....
Bom Dia...
mr. rg lhe agradeço muito
como vc me pediu vou postar as regras de como esta meu servidor ta lindo!
aguardo sua resposta:elefant:
interfaces
4 interfaces
ether 1 clientes
ether 2 adsl1
ether 3 link
ether 4 adsl2
addresses
192.168.4.254 gateway clientes
/ ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade comment="" disabled=no
add chain=srcnat out-interface=ether2 action=masquerade comment="" disabled=no
add chain=srcnat out-interface=ether3 action=masquerade comment="" disabled=no
add chain=srcnat out-interface=ether4 action=masquerade comment="" disabled=no
/ ip firewall mangle
add chain=prerouting p2p=all-p2p action=mark-connection new-connection-mark=P2P_com passthrough=yes comment="Controle p2p" \
disabled=no
add chain=prerouting connection-mark=P2P_com action=mark-packet new-packet-mark=P2P passthrough=yes comment="" disabled=no
add chain=prerouting src-address=192.168.4.7 action=mark-routing new-routing-mark=GrupoB passthrough=no comment="" \
disabled=no
add chain=prerouting src-address=192.168.4.152 action=mark-routing new-routing-mark=GrupoB passthrough=no comment="link2" \
disabled=no
add chain=prerouting src-address=192.168.4.153 action=mark-routing new-routing-mark=GrupoB passthrough=no comment="" \
disabled=no
add chain=prerouting src-address=192.168.4.197 action=mark-routing new-routing-mark=GrupoC passthrough=no \
comment="usuarios link 3" disabled=no
add chain=prerouting src-address=192.168.4.198 action=mark-routing new-routing-mark=GrupoC passthrough=no comment="" \
disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=201.89.xxx.xxx scope=255 target-scope=10 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.254.254 scope=255 target-scope=10 routing-mark=GrupoB comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.253.254 scope=255 target-scope=10 routing-mark=GrupoC comment="" disabled=no