Router reaches the Internet, subnets do not

Howdy,
My RB4011 can now reach the Internet from the console, but none of the subnets can. Can someone help me with what is missing? Here's the current config (the fist three octets of public IPs changed to "xxx.yyy.zzz" for privacy.
Thank you and happy trails!

2025-02-05 12:45:52 by RouterOS 7.17.1

software id = UYDC-T41S

model = RB4011iGS+5HacQ2HnD

serial number = HF80932X5RY

/interface bridge
add admin-mac=78:9A:18:95:52:86 auto-mac=no comment=vejaconf name=bridge
add name=bridge11
add name=bridge50
add name=bridge55
add name=bridge60
add name=bridge73
add name=bridge74
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX
disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=
MikroTik-6C6C94 wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=
20/40/80mhz-XXXX disabled=no distance=indoors frequency=auto mode=
ap-bridge ssid=MikroTik-6C6C94 wireless-protocol=802.11
/caps-man datapath
add bridge=bridge74 name=datapath1
/caps-man configuration
add country=no_country_set datapath=datapath1 datapath.bridge=bridge74
installation=any mode=ap name=cfg1 ssid=3-Bar-K
/caps-man security
add authentication-types=wpa2-psk,wpa2-eap encryption=aes-ccm name=
ae-wifi-security
/interface list
add comment=vejaconf name=WAN
add comment=vejaconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk comment=vejaconf
disable-pmkid=yes mode=dynamic-keys supplicant-identity=MikroTik
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/port
set 0 name=serial0
set 1 name=serial1
/caps-man manager
set enabled=yes
/disk settings
set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes
/interface bridge port
add bridge=bridge comment=vejaconf interface=ether2
add bridge=bridge comment=vejaconf interface=ether3
add bridge=bridge comment=vejaconf interface=ether4
add bridge=bridge comment=vejaconf interface=ether5
add bridge=bridge comment=vejaconf interface=ether6
add bridge=bridge comment=vejaconf interface=ether7
add bridge=bridge comment=vejaconf interface=ether8
add bridge=bridge comment=vejaconf interface=ether9
add bridge=bridge comment=vejaconf interface=ether10
add bridge=bridge comment=vejaconf interface=sfp-sfpplus1
add bridge=bridge comment=vejaconf interface=wlan1
add bridge=bridge comment=vejaconf interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=vejaconf interface=bridge list=LAN
add comment=vejaconf interface=ether1 list=WAN
add interface=bridge11 list=LAN
add interface=bridge50 list=LAN
add interface=bridge55 list=LAN
add interface=bridge60 list=LAN
add interface=bridge73 list=LAN
add interface=bridge74 list=LAN
/ip address
add address=192.168.88.1/24 comment=vejaconf interface=bridge network=
192.168.88.0
add address=10.11.0.1/22 interface=bridge11 network=10.11.0.0
add address=10.50.0.1/22 interface=bridge50 network=10.50.0.0
add address=10.55.0.1/22 interface=bridge55 network=10.55.0.0
add address=10.60.0.1/22 interface=bridge60 network=10.60.0.0
add address=10.73.0.1/22 interface=bridge73 network=10.73.0.0
add address=10.74.0.1/22 interface=bridge74 network=10.74.0.0
add address=xxx.yyy.zzz.11/25 interface=ether1 network=xxx.yyy.zzz.0
add address=xxx.yyy.zzz.50/25 interface=ether1 network=xxx.yyy.zzz.0
add address=xxx.yyy.zzz.55/25 interface=ether1 network=xxx.yyy.zzz.0
add address=xxx.yyy.zzz.60/25 interface=ether1 network=xxx.yyy.zzz.0
add address=xxx.yyy.zzz.73/25 interface=ether1 network=xxx.yyy.zzz.0
add address=xxx.yyy.zzz.74/25 interface=ether1 network=xxx.yyy.zzz.0
/ip dhcp-client
add comment=vejaconf interface=ether1
/ip dhcp-server
add address-pool=default-dhcp interface=bridge name=vejaconf
/ip dhcp-server network
add address=192.168.88.0/24 comment=vejaconf dns-server=192.168.88.1 gateway=
192.168.88.1
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,1.0.0.1
/ip dns static
add address=192.168.88.1 comment=vejaconf name=router.lan type=A
/ip firewall filter
add action=accept chain=input comment="Opening for PVM" src-address=
xxx.yyy.zzz.99
add action=accept chain=input comment=
"vejaconf: accept established,related,untracked" connection-state=
established,related,untracked
add action=drop chain=input comment="vejaconf: drop invalid" connection-state=
invalid
add action=accept chain=input comment="vejaconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=
"vejaconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="vejaconf: drop all not coming from LAN"
in-interface-list=!LAN
add action=accept chain=forward comment="vejaconf: accept in ipsec policy"
ipsec-policy=in,ipsec
add action=accept chain=forward comment="vejaconf: accept out ipsec policy"
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="vejaconf: fasttrack"
connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=
"vejaconf: accept established,related, untracked" connection-state=
established,related,untracked
add action=drop chain=forward comment="vejaconf: drop invalid"
connection-state=invalid
add action=drop chain=forward comment=
"vejaconf: 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="vejaconf: masquerade"
ipsec-policy=out,none out-interface-list=WAN
/ip route
add gateway=xxx.yyy.zzz.1
/ipv6 firewall address-list
add address=::/128 comment="vejaconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="vejaconf: lo" list=bad_ipv6
add address=fec0::/10 comment="vejaconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="vejaconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="vejaconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="vejaconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="vejaconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="vejaconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="vejaconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=
"vejaconf: accept established,related,untracked" connection-state=
established,related,untracked
add action=drop chain=input comment="vejaconf: drop invalid" connection-state=
invalid
add action=accept chain=input comment="vejaconf: accept ICMPv6" protocol=
icmpv6
add action=accept chain=input comment="vejaconf: accept UDP traceroute"
dst-port=33434-33534 protocol=udp
add action=accept chain=input comment=
"vejaconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=
udp src-address=fe80::/10
add action=accept chain=input comment="vejaconf: accept IKE" dst-port=500,4500
protocol=udp
add action=accept chain=input comment="vejaconf: accept ipsec AH" protocol=
ipsec-ah
add action=accept chain=input comment="vejaconf: accept ipsec ESP" protocol=
ipsec-esp
add action=accept chain=input comment=
"vejaconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=
"vejaconf: drop everything else not coming from LAN" in-interface-list=
!LAN
add action=accept chain=forward comment=
"vejaconf: accept established,related,untracked" connection-state=
established,related,untracked
add action=drop chain=forward comment="vejaconf: drop invalid"
connection-state=invalid
add action=drop chain=forward comment=
"vejaconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=
"vejaconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="vejaconf: rfc4890 drop hop-limit=1"
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="vejaconf: accept ICMPv6" protocol=
icmpv6
add action=accept chain=forward comment="vejaconf: accept HIP" protocol=139
add action=accept chain=forward comment="vejaconf: accept IKE" dst-port=
500,4500 protocol=udp
add action=accept chain=forward comment="vejaconf: accept ipsec AH" protocol=
ipsec-ah
add action=accept chain=forward comment="vejaconf: accept ipsec ESP" protocol=
ipsec-esp
add action=accept chain=forward comment=
"vejaconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=
"vejaconf: drop everything else not coming from LAN" in-interface-list=
!LAN
/system clock
set time-zone-name=America/Denver
/system leds
set 0 interface=wlan1 leds="wlan1_signal1-led,wlan1_signal2-led,wlan1_signal3-
led,wlan1_signal4-led,wlan1_signal5-led" type=wireless-signal-strength
add interface=wlan1 leds=wlan1_tx-led type=interface-transmit
add interface=wlan1 leds=wlan1_rx-led type=interface-receive
/system note
set show-at-login=no
/system routerboard settings
set auto-upgrade=yes enter-setup-on=delete-key
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN

http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/310

Use two bridge max on RB4011, most routers its one, but RB4011 has two different switch chips one for ports 1-5 and one for ports 6-10
So group ports that are carrying like users/traffic in two main bridges
Bridge1 ports 1-5 and Bridge2 ports 6-10
Would probably use SFP for the internet connection since its by itself anyway and thus dont use up a bridge port for WAN connectivity.

I believe that in the NAT rule you need to use a concrete IP address and not the default masquerade because of the many addresses on the ether1 interface:

/ip firewall nat
add action=src-nat chain=srcnat ipsec-policy=out,none out-interface-list=WAN to-addresses="specific_public_IP"

Hi,
As far as I can see the only usable LAN subnet you actually have is 192.168.88.0/24, and I think it likely should work.
(It may need a specific NAT rule per @TheCat12)

The other subnets you list and attach to bridges are all on the router only, and there is only a single active address for each of them.
They have no ports attached to them.
Are these subnets supposed to be attached to devices somewhere/somehow?

Perhaps a diagram or something would be good.

The only thing I can guess/think of is that maybe for some unusual reason you want all these LAN IP ranges on one LAN network segment.
If this is the case, I think multiple VLANs, one per IP range would likely be better, and better isolation, though you would need VLAN capable switches.

If you really do want/need them all on the one LAN segment, you probably need to attach all the LAN IP addresses onto the bridge Bridge.
(You could just move one of them on to it first and see if that one works)

My final guess would then be that you then want the Lan IP addresses to map to the corresponding Wan IP addresses sort of, you likely can use a bunch of netmap NAT rules to do this.

Perhaps I am approaching the configuration in the wrong way? Should I just have one bridge, then use VLANs to map each physical ether port? If so, I do not know how to do that–even after reading documentation and other forum posts.

Here’s what I am trying to do:
Goal 1: each of the 6 static public IPs should traffic to/from its own LAN subnet assuring that all traffic from each LAN subnet uses the corresponding public IP. i.e.:

  • xxx.yyy.zzz.11 ↔ 10.11.0.0./22 [ether2]
  • xxx.yyy.zzz.50 ↔ 10.50.0.0./22 [ether3]
  • xxx.yyy.zzz.55 ↔ 10.55.0.0/22 [ether4]
  • xxx.yyy.zzz.60 ↔ 10.60.0.0./22 [ether5]
  • xxx.yyy.zzz.73 ↔ 10.73.0.0./22 [ether6]
  • xxx.yyy.zzz.74 ↔ 10.74.0.0./22 [ether7]

Goal 2: Use capsman to autoconfigure multiple Miktrotik wireless APs to manage three SSIDs which utilize both the 2GHz and 5GHz radios. Each of the 3 SSIDs would determine which LAN subnet is used (ether5, ether6, or ether7) and therefore which public IP will be used for outbound traffic.

Thank you in advance for any assistance.
–Ēriks

Lai jūsu zirgs ir stabils un taka paliek brīva

Good, the requirement discussion has started.
It would seem you want LAN consisting of 6 subnets on your router.
You wish to ensure each SUBNET uses only 1 WAN.

  1. Are they all from the same Gateway IP on ether1 ??
  2. Assuming there is no need for failover (as all from same ISP and same modem so if one goes they all go).
  3. WHY this approach.
    why not for example, all LAN users share all six WAN connections…

Hi!

You have only one functioning DHCP server, and that is on the bridge. So, you will get the IPs on every port from 2-10 and also wifi 2G and 5G.
But the issue that you do not get the internet is your masquerade rule. It is set to Out-Interface-List=WAN, but you have a DHCP client set on ether1, but you do not have ether1 under WAN interface list.

I am not entirely understand what the Goal 1 is? You’re trying to set the IP on the input interface, the same as is from outside devices subnet?

Regarding Goal 2, you can find a lot of MUMs presentation, how to configure the Capsman with 3 SSIDs.

But there is an entry alright :confused: :

/interface list member
add comment=vejaconf interface=bridge list=LAN
add comment=vejaconf interface=ether1 list=WAN
add interface=bridge11 list=LAN
add interface=bridge50 list=LAN
add interface=bridge55 list=LAN
add interface=bridge60 list=LAN
add interface=bridge73 list=LAN
add interface=bridge74 list=LAN

Thanks for that, I have missed it somehow!
So the WAN out interface list is correct in the NAT config.

Yes, the problem must be somewhere else.

I don’t understand the bridgexx’s they all seem empty (with no real interfaces added to them), all interfaces but ether1 are added to the bridge “bridge”.

Yes, all public IPs share the same gateway (xxx.yyy.zzz.1)

This is not a failover configuration.

Each of the subnets goes to separate physical ethernet wiring to separate physical areas. The sharing of IPs is not appropriate, due to the need for specific public IPs from each group–and corresponding rDNS.

Goal 1: each of the 6 static public IPs should traffic to/from its own LAN subnet assuring that all traffic from each LAN subnet uses the corresponding public IP. i.e.:

    xxx.yyy.zzz.11 <--> 10.11.0.0./22 [ether2]
    xxx.yyy.zzz.50 <--> 10.50.0.0./22 [ether3]
    xxx.yyy.zzz.55 <--> 10.55.0.0/22 [ether4]
    xxx.yyy.zzz.60 <--> 10.60.0.0./22 [ether5]
    xxx.yyy.zzz.73 <--> 10.73.0.0./22 [ether6]
    xxx.yyy.zzz.74 <--> 10.74.0.0./22 [ether7]

That requires 6 source nats exactly as you have shown

/ip firewall nat
add action=src-nat chain=srcnat src-address= 10.11.0.0/22 to-addresses=xxx.yyy.zzz.11
add action=src-nat chain=srcnat src-address= 10.50.0.0/22 to-addresses=xxx.yyy.zzz.50
add action=src-nat chain=srcnat src-address= 10.55.0.0/22 to-addresses=xxx.yyy.zzz.55
add action=src-nat chain=srcnat src-address= 10.60.0.0/22 to-addresses=xxx.yyy.zzz.60
add action=src-nat chain=srcnat src-address= 10.73.0.0/22 to-addresses=xxx.yyy.zzz.73
add action=src-nat chain=srcnat src-address= 10.74.0.0/22 to-addresses=xxx.yyy.zzz.74

Shouldn’t require explanation but anyhow anything coming to router from the given LAN ip range is translated to the given WAN ip

Hi,

The following are my changes to the configuration.
(Sorry, It is not a complete configuration @anav is much better at this…)

You will need to apply it slowly piece by piece.
You will also need to remove your old multi bridge configurations.

#xxx.yyy.zzz.11 <--> 10.11.0.0/22 [ether2]
#xxx.yyy.zzz.50 <--> 10.50.0.0/22 [ether3]
#xxx.yyy.zzz.55 <--> 10.55.0.0/22 [ether4]
#xxx.yyy.zzz.60 <--> 10.60.0.0/22 [ether5]
#xxx.yyy.zzz.73 <--> 10.73.0.0/22 [ether6]
#xxx.yyy.zzz.74 <--> 10.74.0.0/22 [ether7]

#add ether8 = trunk port, (so can connect all IP ranges/vlans to a downstream managed switch)
#add ether10 = management port.

#use vlan filtering which works well on the RB4011
#(mostly hardware offloaded)

#Create a bunch of vlans corresponding to IP's
/interface vlan
add interface=bridge name=vlan11 vlan-id=11
add interface=bridge name=vlan50 vlan-id=50
add interface=bridge name=vlan55 vlan-id=55
add interface=bridge name=vlan60 vlan-id=60
add interface=bridge name=vlan73 vlan-id=73
add interface=bridge name=vlan74 vlan-id=74

#Remove ether 10 (management) from bridge. (disable its bridge port entry)

/interface bridge port
set [find where interface=ether10] disabled=yes

#make interfaces members of lan

/interface list member
add comment=vejaconf interface=bridge list=LAN
add comment=vejaconf interface=ether1 list=WAN

add interface=ether10 list=LAN
add interface=vlan11 list=LAN
add interface=vlan50 list=LAN
add interface=vlan55 list=LAN
add interface=vlan60 list=LAN
add interface=vlan73 list=LAN
add interface=vlan74 list=LAN

#add a bunch of ip addresses
#likely need to remove existing.

/ip address
add address=192.168.88.1/24 comment=vejaconf interface=bridge network=\
192.168.88.0
add address=10.11.0.1/22 interface=vlan11 network=10.11.0.0
add address=10.50.0.1/22 interface=vlan50 network=10.50.0.0
add address=10.55.0.1/22 interface=vlan55 network=10.55.0.0
add address=10.60.0.1/22 interface=vlan60 network=10.60.0.0
add address=10.73.0.1/22 interface=vlan73 network=10.73.0.0
add address=10.74.0.1/22 interface=vlan74 network=10.74.0.0

#give management port an IP address
add address=192.168.12.1/24 interface=ether10



#setup access ports
#(likely need to remove existing ports from bridge before run this section)

/interface bridge port
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=\
    ether2 pvid=11
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=\
    ether3 pvid=50
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=\
    ether4 pvid=55
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=\
    ether5 pvid=60
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=\
    ether6 pvid=73
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=\
    ether7 pvid=74

#add trunk port to bridge
add bridge=bridge frame-types=admit-only-vlan-tagged interface=ether8

#setup ports as access and trunk

/interface bridge vlan
add bridge=bridge tagged=bridge,ether8 untagged=ether2 vlan-ids=11
add bridge=bridge tagged=bridge,ether8 untagged=ether3 vlan-ids=50
add bridge=bridge tagged=bridge,ether8 untagged=ether4 vlan-ids=55
add bridge=bridge tagged=bridge,ether8 untagged=ether5 vlan-ids=60
add bridge=bridge tagged=bridge,ether8 untagged=ether6 vlan-ids=73
add bridge=bridge tagged=bridge,ether8 untagged=ether7 vlan-ids=74



#setup dhcp servers for each vlan (optional??)


/ip pool
add name=pool11 ranges=10.11.0.100-10.11.3.200
add name=pool50 ranges=10.50.0.100-10.50.3.200
add name=pool55 ranges=10.55.0.100-10.55.3.200
add name=pool60 ranges=10.60.0.100-10.60.3.200
add name=pool73 ranges=10.73.0.100-10.73.3.200
add name=pool74 ranges=10.74.0.100-10.74.3.200


/ip dhcp-server
add address-pool=pool11 interface=vlan11 name=dhcp11
add address-pool=pool50 interface=vlan50 name=dhcp50
add address-pool=pool55 interface=vlan55 name=dhcp55
add address-pool=pool60 interface=vlan60 name=dhcp60
add address-pool=pool73 interface=vlan73 name=dhcp73
add address-pool=pool74 interface=vlan74 name=dhcp74

/ip dhcp-server network
add address=10.11.0.0/22 dns-server=10.11.0.1 gateway=10.11.0.1
add address=10.50.0.0/22 dns-server=10.50.0.1 gateway=10.50.0.1
add address=10.55.0.0/22 dns-server=10.55.0.1 gateway=10.55.0.1
add address=10.60.0.0/22 dns-server=10.60.0.1 gateway=10.60.0.1
add address=10.73.0.0/22 dns-server=10.73.0.1 gateway=10.73.0.1
add address=10.74.0.0/22 dns-server=10.74.0.1 gateway=10.74.0.1

#Also need some srcnat firewall rules per @LdB
/ip firewall nat
add action=src-nat chain=srcnat src-address=10.11.0.0/22 to-addresses=xxx.yyy.zzz.11
add action=src-nat chain=srcnat src-address=10.50.0.0/22 to-addresses=xxx.yyy.zzz.50
add action=src-nat chain=srcnat src-address=10.55.0.0/22 to-addresses=xxx.yyy.zzz.55
add action=src-nat chain=srcnat src-address=10.60.0.0/22 to-addresses=xxx.yyy.zzz.60
add action=src-nat chain=srcnat src-address=10.73.0.0/22 to-addresses=xxx.yyy.zzz.73
add action=src-nat chain=srcnat src-address=10.74.0.0/22 to-addresses=xxx.yyy.zzz.74

#enable vlan filtering.

/interface bridge
set [find name=bridge] vlan-filtering=yes

#if you get thrown off permanently at this point you may need to plug into ether10
#and connect via mac address, or setup an appropriate ip address on your device.

LdB is bang on, I was heading towards a complicated route of masquerade and table/routing rules but the direct sourcenat rules are better.