Wow, RouterOS is turning out to be much more difficult than I expected. I would really appreciate some help/guidance/pointers/etc for my network.
I’ve attached a PDF of the network I’m trying to build. The important part for the Hex S is I will have three VLANs (10, 20, 30). I want VLANs 10 and 30 to have DHCP and DNS, and VLAN 20 only having DHCP. I would also like the management interface (webfig) to only be accessible from vlan 20 (Think I know how to configure that).
-
The combo switch/router part of the Hex S is very confusing for me. It has a switch chip, but it comes with a bridge interface by default. Why? I have a separate switch, so I have no use for switch ports on the Hex S. Can I disable the switch and delete the bridge interface? If I leave it as-is, will I be able to accomplish the above ^^?
-
VLANs, VLANs, VLANs.. I already defined a VLAN ID and specified the associated interface in the Interfaces tab and assigned each VLAN a network. How can I allow devices in each VLAN to access the internet, but disallow inter-vlan routing? Firewalls are probably my weakest point (even though I’m pretty weak with networking in general lol).
This will probably be my first post of many.
Thanks!
Here’s my config:
[admin@MikroTik] > /export hide-sensitive
# jan/02/1970 01:16:02 by RouterOS 6.47.10
# software id = 88SS-MGZU
#
# model = RB760iGS
/interface bridge
add admin-mac=18:FD:74:0A:21:51 auto-mac=no comment=defconf name=bridge
/interface vlan
add interface=ether1 name=VLAN10 vlan-id=10
add interface=ether1 name=VLAN20 vlan-id=20
add interface=ether1 name=VLAN30 vlan-id=30
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
add address=192.168.10.1/24 interface=VLAN10 network=192.168.10.0
add address=192.168.20.1/24 interface=VLAN20 network=192.168.20.0
add address=192.168.30.1/24 interface=VLAN30 network=192.168.30.0
/ip dhcp-client
add comment=defconf disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment="defconf: accept established,related,untracked" connection-state=established,related,untracked
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=accept chain=input comment="defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
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
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=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
set api disabled=yes
set winbox disabled=yes
set api-ssl disabled=yes
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
Network-2.pdf (151 KB)