# oct/09/2017 18:15:33 by RouterOS 6.40.3
# software id = UIR9-M60B
#
# model = RouterBOARD 3011UiAS
# serial number = 111111111111
/interface bridge
add admin-mac=6C:3B:6B:1D:00:99 auto-mac=no comment=defconf name=bridge-LAN
/interface ethernet
set [ find default-name=ether3 ] master-port=ether2
set [ find default-name=ether4 ] master-port=ether2
set [ find default-name=ether5 ] master-port=ether2
set [ find default-name=ether7 ] master-port=ether6
set [ find default-name=ether8 ] master-port=ether6
set [ find default-name=ether9 ] master-port=ether6
set [ find default-name=ether10 ] master-port=ether6
set [ find default-name=sfp1 ] auto-negotiation=no name=sfp1_WAN
/ip neighbor discovery
set sfp1_WAN discover=no
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add name=dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-LAN name=defconf
/interface bridge port
add bridge=bridge-LAN comment=defconf interface=ether2
add bridge=bridge-LAN comment=defconf interface=ether6
add bridge=bridge-LAN comment=defconf disabled=yes interface=sfp1_WAN
add bridge=bridge-LAN interface=ether1
/interface bridge settings
set allow-fast-path=no use-ip-firewall=yes use-ip-firewall-for-pppoe=yes \
use-ip-firewall-for-vlan=yes
/interface list member
add comment=defconf interface=bridge-LAN list=LAN
add comment=defconf interface=sfp1_WAN list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge-LAN network=\
192.168.88.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=sfp1_WAN
/ip dhcp-server network
add address=104.0.0.0/8 gateway=104.231.157.22 netmask=8
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=104.231.157.22
/ip dns static
add address=192.168.88.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment="Accept established related" \
connection-state=established,related
add action=accept chain=input comment=\
"Allow LAN access to router and Internet" connection-state=new \
in-interface=bridge-LAN
add action=accept chain=forward comment="Accept established related" \
connection-state=established,related
add action=accept chain=forward comment=\
"Allow LAN access to router and Internet" connection-state=new \
in-interface=bridge-LAN
add action=accept chain=forward comment="Allow Port Forwards" \
connection-nat-state=dstnat
add action=drop chain=forward comment="Drop all other forward"
/ip firewall nat
add action=masquerade chain=srcnat comment="default masquerade" \
out-interface=sfp1_WAN
add action=dst-nat chain=dstnat comment="Sample Port Forward" dst-address=\
104.231.157.22 dst-port=80 in-interface=bridge-LAN protocol=tcp \
to-addresses=192.168.88.248 to-ports=80
/system clock
set time-zone-name=America/New_York
/system script
add name=script1 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
interface ethernet\r\
\nset [ find default-name=ether1 ] master-port=none name=ether1\r\
\nset [ find default-name=ether2 ] master-port=none name=ether2\r\
\nset [ find default-name=ether3 ] master-port=ether2 name=ether3\r\
\nset [ find default-name=ether4 ] master-port=ether2 name=ether4\r\
\nset [ find default-name=ether5 ] master-port=ether2 name=ether5\r\
\nset [ find default-name=ether6 ] master-port=none name=ether6\r\
\nset [ find default-name=ether7 ] master-port=ether6 name=ether7\r\
\nset [ find default-name=ether8 ] master-port=ether6 name=ether8\r\
\nset [ find default-name=ether9 ] master-port=ether6 name=ether9\r\
\nset [ find default-name=ether10 ] master-port=ether6 name=ether10\r\
\nset [ find default-name=sfp1 ] master-port=none name=sfp1_WAN"
add name=script2 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
interface list\r\
\nadd comment=defconf name=WAN\r\
\nadd comment=defconf name=LAN"
add name=script3 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
"/ip pool\r\
\nadd name=dhcp ranges=192.168.88.10-192.168.88.254"
add name=script4 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip dhcp-server\r\
\nadd address-pool=dhcp disabled=no interface=bridge-LAN"
add name=script5 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
interface bridge port\r\
\nadd bridge=bridge-LAN interface=ether2 comment=defconf\r\
\nadd bridge=bridge-LAN interface=ether6 comment=defconf"
add name=script6 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
interface bridge settings\r\
\nset allow-fast-path=no use-ip-firewall=yes use-ip-firewall-for-pppoe=yes\
\_use-ip-firewall-for-vlan=yes"
add name=script7 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
interface list member\r\
\nadd comment=defconf interface=bridge-LAN list=LAN\r\
\nadd comment=defconf interface=sfp1_WAN list=WAN"
add name=script8 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip address\r\
\nadd address=192.168.88.1/24 interface=bridge-LAN comment=defconf\r\
\nadd address=104.231.157.22/8 interface=ether1"
add name=script9 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip dhcp-client\r\
\nadd dhcp-options=hostname,clientid disabled=no interface=sfp1_WAN"
add name=script10 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip dhcp-server network\r\
\nadd address=104.0.0.0/8 gateway=104.231.157.22 netmask=8\r\
\nadd address=192.168.88.0/24 comment=defconf gateway=192.168.88.1"
add name=script11 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
"/ip dns\r\
\nset allow-remote-requests=yes servers=104.231.157.22"
add name=script12 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip firewall filter\r\
\nadd chain=input action=accept connection-state=established,related comme\
nt=\"Accept established related\"\r\
\nadd chain=input action=accept in-interface=bridge-LAN comment=\"Allow LA\
N access to router and Internet\"\r\
\nadd chain=input action=drop comment=\"Drop all other input\"\r\
\nadd chain=forward action=accept connection-state=established,related com\
ment=\"Accept established related\"\r\
\nadd chain=forward action=accept connection-state=new in-interface=bridge\
-LAN comment=\"Allow LAN access to router and Internet\"\r\
\nadd chain=forward action=accept connection-nat-state=dstnat comment=\"Al\
low Port forwards\"\r\
\nadd chain=forward action=drop comment=\"Drop all other forward\""
add name=script13 owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
ip firewall nat\r\
\nadd chain=srcnat action=masquerade out-interface=sfp1_WAN comment=\"defa\
ult masquerade\"\r\
\nadd chain=dstnat action=dst-nat in-interface=sfp1_WAN protocol=tcp to-ad\
dresses=1.2.3.4 dst-port=123 to-ports=123 comment=\"Sample Port Forward\""
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=ether1
add interface=ether2
add interface=ether6
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=ether1
add interface=ether2
add interface=ether6
Is there something in my code that i am not doing correct because my server on eth2 at ip 192.168.88.248 is not able to have outbound connections? I try and ping from eth2 and bridge 192.168.88.248 and they all timeout? 192.168.88.248 is eth2 which is on the bridge-LAN interface.
Let me know if something in my firewall rules or NAT is not correct…thanks for helping.