Hello!! ![]()
After having some problems [(http://forum.mikrotik.com/t/problems-with-checkmk-and-proxmox-backup-server/177320/1) with the current configuration of my network, I have decided to change its design to another one that also works for me. I want to use the MikroTik as a switch while maintaining its functionality as a Wi-Fi access point. This is my running config:
[admin@MikroTik] > export
# 2024-07-20 15:16:17 by RouterOS 7.14.3
# software id = NG5D-KBSU
#
# model = C52iG-5HaxD2HaxD
#
/interface bridge
add comment=LAN name=LAN port-cost-mode=short
/interface ethernet
set [ find default-name=ether1 ] comment=WAN
set [ find default-name=ether2 ] comment=LAN
set [ find default-name=ether3 ] comment=LAN
set [ find default-name=ether4 ] comment=LAN
set [ find default-name=ether5 ] comment=LAN
/interface wifi
set [ find default-name=wifi1 ] channel.skip-dfs-channels=disabled configuration.country=Spain .mode=ap .ssid=Area51 disabled=no security.authentication-types=wpa2-psk .connect-priority=0/1 .disable-pmkid=yes .encryption="" \
.management-protection=disabled .wps=disable
set [ find default-name=wifi2 ] configuration.country=Spain .mode=ap .ssid=HOME2022-24
/interface list
add name=WAN
/ip pool
add name=dhcp_pool0 ranges=192.168.3.25-192.168.3.240
/ip dhcp-server
add address-pool=dhcp_pool0 interface=LAN name=server1
/interface bridge port
add bridge=LAN interface=ether2 internal-path-cost=10 path-cost=10
add bridge=LAN interface=ether3 internal-path-cost=10 path-cost=10
add bridge=LAN interface=ether4 internal-path-cost=10 path-cost=10
add bridge=LAN interface=ether5 internal-path-cost=10 path-cost=10
add bridge=LAN interface=wifi1 internal-path-cost=10 path-cost=10
add bridge=LAN interface=wifi2 internal-path-cost=10 path-cost=10
/interface detect-internet
set detect-interface-list=all internet-interface-list=WAN wan-interface-list=WAN
/interface list member
add interface=ether1 list=WAN
add interface=LAN list=*FFFFFFFF
/ip address
add address=192.168.3.1/24 comment=LAN interface=LAN network=192.168.3.0
add address=192.168.2.2/24 comment=WAN interface=ether1 network=192.168.2.0
/ip dhcp-client
add disabled=yes interface=ether1
/ip dhcp-server lease
add address=192.168.3.21 mac-address=D8:8C:79:6A:82:B3 server=server1
/ip dhcp-server network
add address=192.168.3.0/24 dns-server=192.168.3.3,208.67.222.222 gateway=192.168.3.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=208.67.222.222,208.67.222.220
/ip firewall filter
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=accept chain=forward comment="allow dst-nat connections from WAN" connection-nat-state=dstnat connection-state=new in-interface=ether1
add action=drop chain=forward comment="drop anything else from WAN" in-interface=ether1
/ip firewall nat
add action=masquerade chain=srcnat comment=Sortida out-interface=ether1
add action=dst-nat chain=dstnat comment=Checkmk disabled=yes dst-address=192.168.2.2 dst-port=161 in-interface=ether1 protocol=udp to-addresses=192.168.3.5 to-ports=161
add action=dst-nat chain=dstnat comment=PBS-2 disabled=yes dst-address=192.168.2.2 dst-port=8007 in-interface=ether1 protocol=tcp to-addresses=192.168.3.8 to-ports=8007
add action=dst-nat chain=dstnat comment=Checkmk_2 disabled=yes dst-address=192.168.2.2 dst-port=162 in-interface=ether1 protocol=udp to-addresses=192.168.3.5 to-ports=162
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.2.1 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
I have been looking for information to carry out this procedure, and I think I have it more or less clear. These are the steps I should follow without having to do a factory reset:
1.- interface → interface list → Delete/Disable the entry with ether1 interface
2.- IP → dhcp-server: Delete/Disable the DHCP server
3.- IP → addresses: Delete/Disable the entry with 192.168.2.0/24
4.- IP → dhcp-client: Add New
5.- Bridge → ports: Add New and attach port ether1 to bridge.
6.- IP → Firewall: Delete/Disable Filter Rules and NAT.
Do you think that maybe I’m missing something? Suggestions are really welcomed and appreciated…
Kind regards!! ![]()