Second router help
Posted: Sat Jul 25, 2015 7:43 pm
Hi everyone!
I'm probably being really stupid with this one, but some help would be apprecited,
I have two wan connections, one comes direct into the mikrotik, one into the other router
What I want to do is to be able use the talk talk wan as a failover / load balancing gateway (so it looks like this:)
I have connected the LAN port of the talk talk box into eth2 on the mikrotik
This is the IP Scheme
LAN1 (mikrotik) : 10.1.1.0/16
LAN2 (talk talk) : 192.168.1.0/24
so I need to be able to get anything in LAN1 to talk to aything in LAN2 (such as the talk talk routers web iface), i tried this :
/ip route add dst-address=192.168.1.0/24 gateway=192.168.1.1
but when I run a ping from my 10.1.1.1 client PC or the router command line I still cannot ping anything on the talk talk lan. ( so I'm clearly missing something) and the router says unreachable in winbox
Once I've done that I need to be able to use the talk talk as a load balance / failover set up, I tried this:
/ ip firewall address-list
add list="Allowed-Internet" address=10.1.1.1/16 comment="allowed use of internet" disabled=no
/ ip firewall nat
add chain=srcnat action=masquerade out-interface="WAN - 01" src-address-list="Allowed-Internet" comment="Gateway 10.1.1.1/16" disabled=no
add chain=srcnat action=masquerade out-interface="WAN - 02" src-address-list="Allowed-Internet" comment="Gateway 192.168.1.1/24" disabled=no
/ ip firewall mangle
add chain=prerouting action=mark-routing new-routing-mark="WAN-01" src-address-list="WAN-01" passthrough=no comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="WAN-02" src-address-list="WAN-02" passthrough=no comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="HTTP traffic" passthrough=no dst-port=80 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SSL traffic" passthrough=no dst-port=443 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="POP3 traffic" passthrough=no dst-port=110 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SMTP traffic" passthrough=no dst-port=25 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="P2P traffic" passthrough=no p2p=all-p2p comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SSH Traffic" passthrough=no dst-port=22 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SNMP Traffic" passthrough=no dst-port=161 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="Unknown traffic" passthrough=no comment="" disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="WAN - 01" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark="WAN - 02" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark="HTTP traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="SSL traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="POP3 traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="SMTP traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark="P2P traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="SSH traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="Unknown traffic" comment="" disabled=no
but because I can't get the routing right, I can't use the 192.168.1.1 gateway and send some traffic via the talk talk router,
any help would be appreciated!
thanks,
Ainsey11
I'm probably being really stupid with this one, but some help would be apprecited,
I have two wan connections, one comes direct into the mikrotik, one into the other router
What I want to do is to be able use the talk talk wan as a failover / load balancing gateway (so it looks like this:)
I have connected the LAN port of the talk talk box into eth2 on the mikrotik
This is the IP Scheme
LAN1 (mikrotik) : 10.1.1.0/16
LAN2 (talk talk) : 192.168.1.0/24
so I need to be able to get anything in LAN1 to talk to aything in LAN2 (such as the talk talk routers web iface), i tried this :
/ip route add dst-address=192.168.1.0/24 gateway=192.168.1.1
but when I run a ping from my 10.1.1.1 client PC or the router command line I still cannot ping anything on the talk talk lan. ( so I'm clearly missing something) and the router says unreachable in winbox
Once I've done that I need to be able to use the talk talk as a load balance / failover set up, I tried this:
/ ip firewall address-list
add list="Allowed-Internet" address=10.1.1.1/16 comment="allowed use of internet" disabled=no
/ ip firewall nat
add chain=srcnat action=masquerade out-interface="WAN - 01" src-address-list="Allowed-Internet" comment="Gateway 10.1.1.1/16" disabled=no
add chain=srcnat action=masquerade out-interface="WAN - 02" src-address-list="Allowed-Internet" comment="Gateway 192.168.1.1/24" disabled=no
/ ip firewall mangle
add chain=prerouting action=mark-routing new-routing-mark="WAN-01" src-address-list="WAN-01" passthrough=no comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="WAN-02" src-address-list="WAN-02" passthrough=no comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="HTTP traffic" passthrough=no dst-port=80 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SSL traffic" passthrough=no dst-port=443 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="POP3 traffic" passthrough=no dst-port=110 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SMTP traffic" passthrough=no dst-port=25 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="P2P traffic" passthrough=no p2p=all-p2p comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SSH Traffic" passthrough=no dst-port=22 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="SNMP Traffic" passthrough=no dst-port=161 protocol=tcp comment="" disabled=no
add chain=prerouting action=mark-routing new-routing-mark="Unknown traffic" passthrough=no comment="" disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="WAN - 01" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark="WAN - 02" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark="HTTP traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="SSL traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="POP3 traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="SMTP traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=255 target-scope=10 routing-mark="P2P traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="SSH traffic" comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=10.1.1.1 scope=255 target-scope=10 routing-mark="Unknown traffic" comment="" disabled=no
but because I can't get the routing right, I can't use the 192.168.1.1 gateway and send some traffic via the talk talk router,
any help would be appreciated!
thanks,
Ainsey11