Hi, just got a CCR1009-8G-1S-1S+ setting it up, would like some help.
I'm used to RB750 and RB2011 where quickset worked fine, but quickset on CCR not so much, e.g. sets SFP port as internet.
Any advice or pointers on proper config to help me set the device for NAT internet use, specifically the firewall rules?
I found several sources of firewall config, reasonably similar, but also slightly different to make me question why and what is current:
RB2011 backup config
/ip firewall filter
add chain=input comment="default configuration" protocol=icmp
add chain=input comment="default configuration" connection-state=established
add chain=input comment="default configuration" connection-state=related
add action=drop chain=input comment="default configuration" in-interface=ether1-gateway
RB2011 quickset config
/ip firewall filter
add chain=input action=accept protocol=icmp comment="default configuration"
add chain=input action=accept connection-state=established comment="default configuration"
add chain=input action=accept connection-state=related comment="default configuration"
add chain=input action=drop in-interface=ether1-gateway comment="default configuration"
add chain=forward action=accept connection-state=established comment="default configuration"
add chain=forward action=accept connection-state=related comment="default configuration"
add chain=forward action=drop connection-state=invalid comment="default configuration"
add chain=input connection-state=invalid action=drop comment="Drop Invalid connections"
add chain=input connection-state=established action=accept comment="Allow Established connections"
add chain=input protocol=icmp action=accept comment="Allow ICMP"
add chain=input src-address=192.168.1.0/24 action=accept in-interface=!ether5-wan
add chain=input action=drop comment="Drop everything else"
add chain=forward protocol=tcp connection-state=invalid action=drop comment="drop invalid connections"
add chain=forward connection-state=established action=accept comment="allow already established connections"
add chain=forward connection-state=related action=accept comment="allow related connections"
add action=drop chain=input comment="Drop invalid connections" connection-state=invalid
add chain=input comment="Accept established connections" connection-state=established
add chain=input comment="Accept related connections" connection-state=related
add chain=input comment="Allow access from local network" in-interface=br-PrivateNetwork src-address=192.168.25.0/24
add chain=input comment="Allow access from guest network for DNS" dst-port=53 in-interface=br-GuestNetwork protocol=udp src-address=192.168.125.0/24
add action=log chain=input comment="Log everything else" disabled=yes log-prefix="IPv4 Drop input RR:"
add action=drop chain=input comment="Drop everything else"
add action=drop chain=forward comment="Drop invalid connections" connection-state=invalid
add chain=forward comment="Accept established connections" connection-state=established
add chain=forward comment="Accept related connections" connection-state=related
add chain=forward comment="Allow traffic from Local network" in-interface=br-PrivateNetwork src-address=192.168.25.0/24
add chain=forward comment="Allow Guest network going outside" in-interface=br-GuestNetwork out-interface=pppoe-***** src-address=192.168.125.0/24
add action=log chain=forward comment="Log everything else" disabled=yes log-prefix="IPv4 Drop forward RR:"
add action=drop chain=forward comment="Drop everything else"
add action=accept chain=input comment="Local access to RB for Winbox" disabled=no dst-port=8291 protocol=tcp src-address-list=local
add action=jump chain=input comment="Treat all traffic equally" disabled=no jump-target=inbound
add action=jump chain=forward comment="Treat all traffic equally" disabled=no jump-target=inbound
add action=drop chain=inbound comment="Drop invalid" connection-state=invalid disabled=no
add action=accept chain=inbound comment="Allow limited icmp" disabled=no limit=50/5s,2 protocol=icmp
add action=drop chain=inbound comment="Drop excess icmp" disabled=no protocol=icmp
add action=accept chain=inbound comment="Accept established" connection-state=established disabled=no
add action=accept chain=inbound comment="Accept related" connection-state=related disabled=no
add action=accept chain=inbound comment="Internal traffic can do what it wants." disabled=no src-address-list=local
add action=drop chain=inbound comment="And drop everything else" disabled=no
add action=accept chain=output comment="Allow everything out" disabled=noWhat would a reasonable set of rules look like?
From what I gather ether1 to ether4 is on a switch, so I can config them for a switch.
Ports 5 to 8 is not on a switch, so no switch config.
I tried disabling all unused ports, including SFP and SFP+, and then noticed that ether5 and ether6 does not want to disable.
/interface set ether5,ether6 disabled=yes
failure: master-port and bandwidth settings not supported on this portWhat ethernet (non-SFP) ports should be used for LAN and for WAN links?
Do you config ports 1 to 4 for LAN and switch, or if they are switch no rules, or just no rules between ports?
Lastly, is there an easier way to reset to factory defaults (after I screwed up network access) than pressing reset while powering on, impossible for one person to do that with the device in the rack?
P.