Showing posts with label ISP. Show all posts
Showing posts with label ISP. Show all posts
Thursday, 3 December 2015
Friday, 9 October 2015
Mikrotik Loadbalancing 2 WAN 1 LAN Full Script Download Backup
First of all change the interfaces name set as Local, wlan1 and wlan2 and then open new terminal from winbox and paste bellow code there. All settings successfully done.
/ ip address
add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=Local
add address=10.111.0.2/24 network=10.111.0.0 broadcast=10.111.0.255 interface=wlan2
add address=10.112.0.2/24 network=10.112.0.0 broadcast=10.112.0.255 interface=wlan1
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1,10.112.0.1 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=wlan1 action=masquerade
add chain=srcnat out-interface=wlan2 action=masquerade
/ ip firewall mangle
add chain=input in-interface=wlan1 action=mark-connection new-connection-mark=wlan1_conn
add chain=input in-interface=wlan2 action=mark-connection new-connection-mark=wlan2_conn
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wla1
add chain=output connection-mark=wlan1_conn action=mark-routing new-routing-mark=to_wla2
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wla1
add dst-address=0.0.0.0/0 gateway=10.111.0.2 routing-mark=to_wla2
Thursday, 7 May 2015
1 LAN 4 WAN Mikrotik Load Balancing Full Setting with Backup File
Its very easy to configure you mikrotik router for load balancing there is nothing any difficulty if you feel you can't do that you can get backup file from us in just $20 or Rs 1500 Pakistani rupees.
You can configure according to bellow settings.
#|/ip address/ip address add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.255 interface=ether1/ip address add address=192.168.2.2/24 network=192.168.2.0 broadcast=192.168.2.255 interface=ether2/ip address add address=192.168.3.2/24 network=192.168.3.0 broadcast=192.168.3.255 interface=ether3/ip address add address=192.168.4.2/24 network=192.168.4.0 broadcast=192.168.4.255 interface=ether4/ip address add address=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=ether5 comment="default configuration"#|/ip firewall mangle/ip firewall mangle add chain=input in-interface=ether1 action=mark-connection new-connection-mark=ether1_conn/ip firewall mangle add chain=input in-interface=ether2 action=mark-connection new-connection-mark=ether2_conn/ip firewall mangle add chain=input in-interface=ether3 action=mark-connection new-connection-mark=ether3_conn/ip firewall mangle add chain=input in-interface=ether4 action=mark-connection new-connection-mark=ether4_conn/ip firewall mangle add chain=output connection-mark=ether1_conn action=mark-routing new-routing-mark=to_ether1/ip firewall mangle add chain=output connection-mark=ether2_conn action=mark-routing new-routing-mark=to_ether2/ip firewall mangle add chain=output connection-mark=ether3_conn action=mark-routing new-routing-mark=to_ether3/ip firewall mangle add chain=output connection-mark=ether4_conn action=mark-routing new-routing-mark=to_ether4/ip firewall mangle add chain=prerouting dst-address=192.168.1.0/24 action=accept in-interface=ether5/ip firewall mangle add chain=prerouting dst-address=192.168.2.0/24 action=accept in-interface=ether5/ip firewall mangle add chain=prerouting dst-address=192.168.3.0/24 action=accept in-interface=ether5/ip firewall mangle add chain=prerouting dst-address=192.168.4.0/24 action=accept in-interface=ether5/ip firewall mangle add chain=prerouting dst-address-type=!local in-interface=ether5 per-connection-classifier=both-addresses-and-ports:4/0 action=mark-connection new-connection-mark=ether1_conn passthrough=yes/ip firewall mangle add chain=prerouting dst-address-type=!local in-interface=ether5 per-connection-classifier=both-addresses-and-ports:4/1 action=mark-connection new-connection-mark=ether2_conn passthrough=yes/ip firewall mangle add chain=prerouting dst-address-type=!local in-interface=ether5 per-connection-classifier=both-addresses-and-ports:4/2 action=mark-connection new-connection-mark=ether3_conn passthrough=yes/ip firewall mangle add chain=prerouting dst-address-type=!local in-interface=ether5 per-connection-classifier=both-addresses-and-ports:4/3 action=mark-connection new-connection-mark=ether4_conn passthrough=yes/ip firewall mangle add chain=prerouting connection-mark=ether1_conn in-interface=ether5 action=mark-routing new-routing-mark=to_ether1/ip firewall mangle add chain=prerouting connection-mark=ether2_conn in-interface=ether5 action=mark-routing new-routing-mark=to_ether2/ip firewall mangle add chain=prerouting connection-mark=ether3_conn in-interface=ether5 action=mark-routing new-routing-mark=to_ether3/ip firewall mangle add chain=prerouting connection-mark=ether4_conn in-interface=ether5 action=mark-routing new-routing-mark=to_ether4#|/ip route/ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_ether1 check-gateway=ping/ip route add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_ether2 check-gateway=ping/ip route add dst-address=0.0.0.0/0 gateway=192.168.3.1 routing-mark=to_ether3 check-gateway=ping/ip route add dst-address=0.0.0.0/0 gateway=192.168.4.1 routing-mark=to_ether4 check-gateway=ping/ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping/ip route add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 check-gateway=ping/ip route add dst-address=0.0.0.0/0 gateway=192.168.3.1 distance=3 check-gateway=ping/ip route add dst-address=0.0.0.0/0 gateway=192.168.4.1 distance=4 check-gateway=ping#|/ip firewall nat/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade/ip firewall nat add chain=srcnat out-interface=ether2 action=masquerade/ip firewall nat add chain=srcnat out-interface=ether3 action=masquerade/ip firewall nat add chain=srcnat out-interface=ether4 action=masquerade#| DHCP server is on switch, with address pool 192.168.0.100-192.168.0.200/ip pool add name=default-dhcp ranges=192.168.0.100-192.168.0.200/ip dhcp-server add name=default address-pool=default-dhcp interface=ether5 disabled=no/ip dhcp-server network add address=192.168.0.0/24 gateway=192.168.0.1 dns-server=192.168.0.1 comment="default configuration"#| DNS/ip dns set allow-remote-requests=yes/ip dns static add name=router address=192.168.0.1#| Now Configure DNS server so users can resolve hostnames,#| Ex.cache-size=5000KiB#| DNS Google = 8.8.8.8,8.8.4.4#| DNS 3BB = 110.164.252.222,110.164.252.223/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000K max-udp-packet-size=512 servers=8.8.8.8,8.8.4.4
After configuring please give us feed back.
Subscribe to:
Posts
(
Atom
)

