Hello to all.
i’m trying to add second wan to my Mikrotik 2011UiAS-2HnD but i have some problems
my configuration is…
# may/24/2019 12:56:48 by RouterOS 6.43.2
# software id = U1J9-FEP9
#
# model = 2011UiAS-2HnD
# serial number = xxxxxxxxxxxx
/interface l2tp-server
add name=l2tp-in1 user=vpn
add name=l2tp-in2 user=vpn2
/interface bridge
add fast-forward=no name=bridge6-9
add fast-forward=no name=bridge_Vlan3_Guests
add admin-mac=xx:xx:xx:xx:xx:xx auto-mac=no fast-forward=no name=bridge_Vlan4_HR
add fast-forward=no name=bridge_vlan2_Service
/interface ethernet
set [ find default-name=ether1 ] name=WAN1 speed=100Mbps
set [ find default-name=ether2 ] name=WAN2 speed=100Mbps
set [ find default-name=ether3 ] speed=100Mbps
set [ find default-name=ether4 ] speed=100Mbps
set [ find default-name=ether5 ] speed=100Mbps
set [ find default-name=ether6 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
set [ find default-name=ether7 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
set [ find default-name=ether8 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
set [ find default-name=ether9 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
set [ find default-name=ether10 ] advertise=10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
/interface vlan
add interface=ether5 name=vlan2_Service vlan-id=2
add interface=ether5 name=vlan3_Guests vlan-id=3
add interface=ether5 name=vlan4_HR vlan-id=4
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk,wpa-eap,wpa2-eap eap-methods="" supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=profile_HR supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=profile_Service supplicant-identity=""
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=allowed name=profile_HotSpot supplicant-identity=""
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce country=greece disabled=no distance=indoors frequency=auto mode=ap-bridge name=wlan_HR \
security-profile=profile_HR ssid=Computer-Point wireless-protocol=802.11
add disabled=no keepalive-frames=disabled mac-address=xx:xx:xx:xx:xx:xx master-interface=wlan_HR multicast-buffering=disabled name=wlan_HotSpot security-profile=\
profile_HotSpot ssid=Free_WiFi_Computer_Point wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
add disabled=no keepalive-frames=disabled mac-address=xx:xx:xx:xx:xx:xx master-interface=wlan_HR multicast-buffering=disabled name=wlan_Service security-profile=\
profile_Service ssid=Computer_Point_Service wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
/ip hotspot profile
add dns-name=hs-login.com hotspot-address=10.0.30.1 login-by=http-chap,http-pap name=hsprof1
/ip hotspot user profile
add name=social on-login="{:local date [/system clock get date ];:local time [/system clock get time ];:local uptime (1d);:local macaddressnya \$\"mac-address\";:local ipa\
ddressnya \$\"address\";[/ip hotspot user set mac-address=\$\"macaddressnya\" comment=\"social_login\" [find where name=\$user]];[/system scheduler add disabled=no int\
erval=\$uptime name=\$user on-event= \"[/ip hotspot active remove [find where user=\\\"\$user\\\"]];[/ip hotspot user remove [find where name=\\\"\$user\\\"]];[/ip hot\
spot cookie remove [find user=\\\"\$user\\\"]];[/sys sch re [find where name=\\\"\$user\\\"]]\" start-date=\$date start-time=\$time];}}" rate-limit=256k/2048k
/ip pool
add name=vpn ranges=192.168.89.2-192.168.89.255
add name=pool_vlan2_Server ranges=10.0.20.2-10.0.20.254
add name=pool_vlan3_guests ranges=10.0.30.2-10.0.30.254
add name=pool_6-9 ranges=192.168.88.2-192.168.88.20
add name=pool_vlan4_HR ranges=10.0.10.150-10.0.10.190
/ip dhcp-server
add address-pool=pool_6-9 disabled=no interface=bridge6-9 name=server6-9
add address-pool=pool_vlan2_Server disabled=no interface=bridge_vlan2_Service name=server_vlan2_Service
add address-pool=pool_vlan3_guests disabled=no interface=bridge_Vlan3_Guests name=server_vlan3_Guests
add address-pool=pool_vlan4_HR disabled=no interface=bridge_Vlan4_HR name=server_vlan4_HR
/ip hotspot
add address-pool=pool_vlan3_guests addresses-per-mac=1 disabled=no interface=bridge_Vlan3_Guests name=hotspot1 profile=hsprof1
/ppp profile
set *0 bridge=bridge_Vlan4_HR
add bridge=bridge_Vlan4_HR local-address=10.0.10.1 name=server remote-address=vpn
set *FFFFFFFE bridge=bridge_Vlan4_HR local-address=10.0.10.1 remote-address=pool_vlan4_HR
/interface bridge port
add bridge=bridge6-9 interface=ether6
add bridge=bridge6-9 interface=ether7
add bridge=bridge6-9 interface=ether8
add bridge=bridge6-9 interface=ether9
add bridge=bridge_Vlan3_Guests interface=ether3
add bridge=bridge_Vlan4_HR interface=ether4
add bridge=bridge_vlan2_Service interface=vlan2_Service
add bridge=bridge_Vlan3_Guests interface=vlan3_Guests
add bridge=bridge_Vlan4_HR interface=vlan4_HR
add bridge=bridge_Vlan4_HR interface=wlan_HR
add bridge=bridge_Vlan3_Guests interface=wlan_HotSpot
add bridge=bridge_vlan2_Service interface=wlan_Service
add bridge=bridge_vlan2_Service disabled=yes interface=WAN2
/interface bridge settings
set use-ip-firewall=yes
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface l2tp-server server
set enabled=yes use-ipsec=yes
/interface list member
add interface=bridge_Vlan4_HR list=LAN
add comment=defconf interface=WAN1 list=WAN
add interface=bridge6-9 list=LAN
add interface=bridge_Vlan3_Guests list=LAN
add interface=bridge_vlan2_Service list=LAN
add interface=l2tp-in1 list=LAN
add interface=l2tp-in2 list=LAN
add interface=WAN2 list=WAN
/interface pptp-server server
set enabled=yes
/interface sstp-server server
set default-profile=default-encryption enabled=yes
/interface wireless access-list
add vlan-mode=no-tag
/ip address
add address=10.0.10.1/24 comment=defconf interface=vlan4_HR network=10.0.10.0
add address=10.0.20.1/24 interface=vlan2_Service network=10.0.20.0
add address=10.0.30.1/24 interface=vlan3_Guests network=10.0.30.0
add address=192.168.88.1/24 interface=ether6 network=192.168.88.0
add address=192.168.1.250/24 interface=WAN1 network=192.168.1.0
add address=10.1.10.90/24 interface=WAN2 network=10.1.10.0
/ip cloud
set update-time=no
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid interface=WAN1
/ip dhcp-server network
add address=10.0.10.0/24 comment=defconf gateway=10.0.10.1 netmask=24
add address=10.0.20.0/24 comment=defconf gateway=10.0.20.1 netmask=24
add address=10.0.30.0/24 comment=defconf gateway=10.0.30.1 netmask=24
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip dns static
add address=10.0.10.1 name=router.lan
add address=192.168.2.25 disabled=yes name=clients1.google.com
add address=192.168.2.25 disabled=yes name=clients3.google.com
add address=192.168.2.25 disabled=yes name=connectivitycheck.android.com
add address=192.168.2.25 disabled=yes name=connectivitycheck.gstatic.com
/ip firewall address-list
add address=10.0.30.2-10.0.30.254 list=guestss
/ip firewall filter
add action=accept chain=input comment=api dst-port=3306 protocol=udp
add action=accept chain=input comment=api dst-port=3306 protocol=tcp
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
add action=return chain=hs-unauth disabled=yes dst-address=xxx.xxx.xxx.xxx in-interface=bridge_Vlan3_Guests
add action=return chain=hs-unauth-to disabled=yes out-interface=bridge_Vlan3_Guests src-address=xxx.xxx.xxx.xxx
add action=accept chain=forward disabled=yes dst-port=80 in-interface=WAN1 protocol=tcp
add action=drop chain=input comment="Drop new connections from blacklisted IP's to this router" connection-state=new in-interface=WAN1 src-address-list=blacklist
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
add action=accept chain=forward comment="allow ISP Modem to HR(vlan4)" dst-address=192.168.1.1 src-address=10.0.10.0/24
add action=accept chain=forward comment="allow CPSRV to Service(vlan2)" dst-address=10.0.10.2 src-address=10.0.20.0/24
add action=drop chain=forward comment="Drop From Service(vlan2) To HR(vlan4)" dst-address=10.0.10.0/24 src-address=10.0.20.0/24
add action=drop chain=forward comment="Drop From Guests(vlan3) To HR(vlan4)" dst-address=10.0.10.0/24 src-address=10.0.30.0/24
add action=drop chain=forward comment="Drop From Service(vlan2) To Guests(vlan3)" dst-address=10.0.30.0/24 src-address=10.0.20.0/24
add action=drop chain=forward comment="Drop From Guests(vlan3) To Service(vlan2)" dst-address=10.0.20.0/24 src-address=10.0.30.0/24
add action=drop chain=forward comment="Isolate Vlan3 IPs" in-interface=bridge_Vlan3_Guests out-interface=bridge_Vlan3_Guests
add action=accept chain=input comment="allow IKE" dst-port=500 protocol=udp
add action=drop chain=input comment="Block 389 for DNS fix" dst-port=389 in-interface=WAN1 protocol=udp
add action=drop chain=input comment="Block 389 for DNS fix" dst-port=389 in-interface=WAN1 protocol=tcp
add action=accept chain=input comment="allow IPsec NAT" dst-port=4500 protocol=udp
add action=accept chain=input comment="allow l2tp" dst-port=1701 protocol=udp
add action=accept chain=input comment="allow pptp" dst-port=1723 protocol=tcp
add action=accept chain=input comment="allow sstp" dst-port=443 protocol=tcp
add action=drop chain=input comment="defconf: drop invalid" connection-state=invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related disabled=yes
add action=accept chain=forward comment="defconf: accept established,related, untracked" connection-state=established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" disabled=yes
add action=return chain=hs-unauth disabled=yes dst-address=xxx.xxx.xxx.xxx in-interface=bridge_Vlan3_Guests
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=10.0.10.0/24
*****************some port forward rules************************************
add action=masquerade chain=srcnat comment="masquerade hotspot network" src-address=10.0.30.0/24
/ip hotspot user
add name=admin
/ip hotspot walled-garden
add comment="place hotspot rules here" disabled=yes
add disabled=yes dst-host=*facebook*
add disabled=yes dst-host=*akamaihd*
add disabled=yes dst-host=*fbcdn*
add disabled=yes dst-host=*instagram*
add disabled=yes dst-host=*google*
add disabled=yes dst-host=*googleapis*
add disabled=yes dst-host=*gstatic*
add disabled=yes dst-host=*googleusercontent*
add disabled=yes dst-host=*twitter*
add disabled=yes dst-host=*twimg*
add dst-host=*ipologistakias.gr*
add dst-host=*.socifi.com
add dst-host=*.facebook.com
add dst-host=*.akamaihd.net
add dst-host=*.akamai.net
add dst-host=*.edgecastcdn.net
add dst-host=*.edgekey.net
add dst-host=*.akamaiedge.net
add dst-host=*.twitter.com
add dst-host=twitter.com
add dst-host=*.twimg.com
add dst-host=*.fastly.net
add dst-host=*.licdn.net
add dst-host=*.cloudfront.net
add dst-host=facebook.com
add dst-host=*.fbcdn.net
add dst-host=*.instagram.com
add dst-host=instagram.com
add dst-host=*.cdninstagram.com
add dst-host=*.linkedin.com
add dst-host=linkedin.com
add dst-host=*.licdn.com
add dst-host=*.googleapis.com
add dst-host=*.googleusercontent.com
add dst-host=*.gstatic.com
add dst-host=*.accounts.youtube.com
add dst-host=*.apis.google.com
add dst-host=*.accounts.google.com
add dst-host=*.l.google.com
add dst-host=accounts.google.com
add dst-host=accounts.google.gr
/ip hotspot walled-garden ip
add action=accept disabled=no dst-address=xxx.xxx.xxx.xxx !dst-address-list !dst-port !protocol server=hotspot1 !src-address !src-address-list
add action=accept disabled=no dst-address=8.8.8.8 !dst-address-list !dst-port !protocol server=hotspot1 !src-address !src-address-list
/ip ipsec peer
add exchange-mode=main-l2tp generate-policy=port-strict passive=yes
/ip route
add distance=1 gateway=192.168.1.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www address=10.0.10.0/24
set ssh disabled=yes
set www-ssl address=10.0.10.0/24
set api address=0.0.0.0/0 port=3306
set winbox address=10.0.10.0/24
set api-ssl disabled=yes
/lcd
set backlight-timeout=never default-screen=stats
/lcd interface pages
set 0 interfaces=wlan_HR
/ppp secret
add name=vpn
add name=vpn2
add name=ppp1ovpn profile=server
/snmp
set enabled=yes
/system clock
set time-zone-name=Europe/Athens
/system identity
set name=ComPoint
/system logging
add disabled=yes topics=l2tp
add topics=e-mail
/system ntp client
set enabled=yes server-dns-names=0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org
/system routerboard settings
set silent-boot=no
*************some scripts*********************
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
i have try some things from varius forums but with no luck
i dont want load balancing or fail over
what i need to do is
vlan4_HR have internet through WAN1
vlan3_Guests and vlan2_Service have internet through WAN2
thats all
Any help or suggestions would be appreciate.
thank you.
