Page 1 of 1

2 gateway - http traffics for one and antother traffic to 2g

Posted: Mon Jul 24, 2006 9:20 pm
by patagonia
Hi, i want to route the http traffics to the gateway 1 ans another traffics to the other gateway (2). The question is how to mangle that traffics with mark-packet, mark-connection, or mark routing ?

______________MIKROTIK____________NETWORKS________ROUTER
LAN local-------192.168.1.2/24---------192.168.1.200~254
LAN Wifi----------10.0.0.2/24------------10.0.0.200~254
WAN1-----------192.168.11.2/24-----------------------------192.168.11.1/24
WAN2-----------192.168.10.2/24-----------------------------192.168.10.1/24

i have dhcp in the rango 200~254 in both lan.
i try to read the manual, but my englesh is too bad :cry:
thanks......

Posted: Tue Jul 25, 2006 8:38 am
by sergejs
To mark http traffic from the users,
ip firewall mangle add chain=prerouting src-address=client_subnet_network_address dst-port=80 protocol=tcp action=mark-routing new-routing-mark=HTTP
Set routing-mark to alternative route entry.

Posted: Tue Jul 25, 2006 6:37 pm
by patagonia
Thanks !! Serjegs, but i don`t know how to route this traffics for only one internet connection. Really i have 2 connection to internet using pppoe client in ether2 and ether3, and now i route all the traffic to ether2. Just want to separate de http traffic to ether3.

Thanks..

Posted: Wed Jul 26, 2006 7:32 am
by jo2jo
look into:

ip> routes and filter using a packet mark