Goedemiddag tweakers!
Ik heb mijzelf uitgedaagd om meer van netwerken te leren en zodoende een Mikrotik RB2011 aangeschaft. Nu heb ik de configuratie met hulp van inet (denk ik) aardig voor elkaar, echter krijg mijn LAN geen netwerkaccess. Ik kan vanaf de mikrotik pingen naar IP's (9.9.9.9, 1.1.1.1, 8,8,8,8) en naar domain names (google.com, etc.).
Hulp wordt zeer gewaardeerd en ik ben vooral benieuwd wat ik over het hoofd gezien heb en waarom het nu niet werkt.
Hieronder mijn config:
Ik heb mijzelf uitgedaagd om meer van netwerken te leren en zodoende een Mikrotik RB2011 aangeschaft. Nu heb ik de configuratie met hulp van inet (denk ik) aardig voor elkaar, echter krijg mijn LAN geen netwerkaccess. Ik kan vanaf de mikrotik pingen naar IP's (9.9.9.9, 1.1.1.1, 8,8,8,8) en naar domain names (google.com, etc.).
Hulp wordt zeer gewaardeerd en ik ben vooral benieuwd wat ik over het hoofd gezien heb en waarom het nu niet werkt.
Hieronder mijn config:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
| # 2025-02-07 12:58:05 by RouterOS 7.17.1 # software id = YZ6A-Z91J # # model = RB2011UiAS # serial number = # /interface bridge add arp=proxy-arp name=bridge-lan protocol-mode=none /interface ethernet set [ find default-name=sfp1 ] disabled=yes /interface wireguard add disabled=yes listen-port=13231 mtu=1420 name=wireguard1 /interface vlan add interface=ether1 name=vlan300 vlan-id=300 /ip dhcp-client option add code=60 name=option60-vendorclass value="'IPTV_RG'" /ip pool add name=pool-dhcp-lan ranges=10.0.94.50-10.0.94.99 /ip dhcp-server add address-pool=pool-dhcp-lan interface=bridge-lan lease-time=2h name=\ dhcp-lan /port set 0 name=serial0 /interface bridge port add bridge=bridge-lan interface=ether2 add bridge=bridge-lan interface=ether3 add bridge=bridge-lan interface=ether4 add bridge=bridge-lan interface=ether5 add bridge=bridge-lan interface=ether6 add bridge=bridge-lan interface=ether7 add bridge=bridge-lan interface=ether8 add bridge=bridge-lan interface=ether9 add bridge=bridge-lan interface=ether10 /ip address add address=10.0.94.254/24 interface=bridge-lan network=10.0.94.0 /ip dhcp-client # Interface not active add default-route-distance=210 dhcp-options=option60-vendorclass interface=\ vlan300 use-peer-dns=no /ip dhcp-server network add address=10.0.94.0/24 dns-server=10.0.94.253 domain=muizelaar.me gateway=\ 10.0.94.254 netmask=24 /ip dns set servers=10.0.94.253,9.9.9.9 /ip firewall address-list add address=10.0.94.0/24 list=support add address=0.0.0.0/8 comment="Self-Identification [RFC 3330]" list=bogons add address=10.0.0.0/8 comment="Private[RFC 1918] - CLASS A # Check if you nee\ d this subnet before enable it" list=bogons add address=127.0.0.0/8 comment="Loopback [RFC 3330]" list=bogons add address=169.254.0.0/16 comment="Link Local [RFC 3330]" list=bogons add address=172.16.0.0/12 comment="Private[RFC 1918] - CLASS B # Check if you \ need this subnet before enable it" list=bogons add address=192.168.0.0/16 comment="Private[RFC 1918] - CLASS C # Check if you\ \_need this subnet before enable it" list=bogons add address=192.0.2.0/24 comment="Reserved - IANA - TestNet1" list=bogons add address=192.88.99.0/24 comment="6to4 Relay Anycast [RFC 3068]" list=\ bogons add address=198.18.0.0/15 comment="NIDB Testing" list=bogons add address=198.51.100.0/24 comment="Reserved - IANA - TestNet2" list=bogons add address=203.0.113.0/24 comment="Reserved - IANA - TestNet3" list=bogons add address=224.0.0.0/4 comment=\ "MC, Class D, IANA # Check if you need this subnet before enable it" \ list=bogons /ip firewall filter add action=add-src-to-address-list address-list=Syn_Flooder \ address-list-timeout=30m chain=input comment=\ "Add Syn Flood IP to the list" connection-limit=30,32 protocol=tcp \ tcp-flags=syn add action=add-src-to-address-list address-list=Port_Scanner \ address-list-timeout=1w chain=input comment="Port Scanner Detect" \ protocol=tcp psd=21,3s,3,1 add action=add-src-to-address-list address-list=spammers \ address-list-timeout=3h chain=forward comment=\ "Add Spammers to the list for 3 hours" connection-limit=30,32 dst-port=\ 25,587 limit=30/1m,0 protocol=tcp add action=accept chain=input comment="Accept DNS - UDP" port=53 protocol=udp add action=accept chain=input comment="Accept DNS - TCP" port=53 protocol=tcp add action=accept chain=input comment="Accept to established connections" \ connection-state=established add action=accept chain=input comment="Accept to related connections" \ connection-state=related add action=accept chain=input comment="Full access to SUPPORT address list" \ src-address-list=support add action=accept chain=ICMP comment=\ "Echo request - Avoiding Ping Flood, adjust the limit as needed" \ icmp-options=8:0 limit=2,5 protocol=icmp add action=accept chain=ICMP comment="Echo reply" icmp-options=0:0 protocol=\ icmp add action=accept chain=ICMP comment="Time Exceeded" icmp-options=11:0 \ protocol=icmp add action=accept chain=ICMP comment="Destination unreachable" icmp-options=\ 3:0-1 protocol=icmp add action=accept chain=ICMP comment=PMTUD icmp-options=3:4 protocol=icmp add action=jump chain=input comment="Jump for icmp input flow" jump-target=\ ICMP protocol=icmp add action=jump chain=forward comment="Jump for icmp forward flow" \ jump-target=ICMP protocol=icmp add action=jump chain=output comment="Jump for icmp output" jump-target=ICMP \ protocol=icmp add action=drop chain=input comment="Drop to port scan list" \ src-address-list=Port_Scanner add action=drop chain=input comment="Block all access to the winbox - except t\ o support list # DO NOT ENABLE THIS RULE BEFORE ADD YOUR SUBNET IN THE SUP\ PORT ADDRESS LIST" dst-port=8080 protocol=tcp src-address-list=!support add action=drop chain=input comment="Block all access to the winbox - except t\ o support list # DO NOT ENABLE THIS RULE BEFORE ADD YOUR SUBNET IN THE SUP\ PORT ADDRESS LIST" dst-port=8291 protocol=tcp src-address-list=!support add action=drop chain=input comment="Block all access to the winbox - except t\ o support list # DO NOT ENABLE THIS RULE BEFORE ADD YOUR SUBNET IN THE SUP\ PORT ADDRESS LIST" dst-port=22 protocol=tcp src-address-list=!support add action=drop chain=forward comment="Drop to bogon list" dst-address-list=\ bogons add action=drop chain=ICMP comment="Drop to the other ICMPs" protocol=icmp add action=drop chain=forward comment="Avoid spammers action" dst-port=25,587 \ protocol=tcp src-address-list=spammers add action=drop chain=input comment="Drop to syn flood list" \ src-address-list=Syn_Flooder add action=drop chain=input comment="Drop anything else! # DO NOT ENABLE THIS \ RULE BEFORE YOU MAKE SURE ABOUT ALL ACCEPT RULES YOU NEED" disabled=yes /ip firewall nat add action=masquerade chain=srcnat src-address=10.0.94.0/24 add action=dst-nat chain=dstnat comment=proxy dst-port=80 in-interface=ether1 \ protocol=tcp src-address=0.0.0.0 to-addresses=10.0.94.201 to-ports=80 add action=dst-nat chain=dstnat comment=proxy dst-port=443 in-interface=\ ether1 protocol=tcp src-address=0.0.0.0 to-addresses=10.0.94.201 \ to-ports=443 add action=dst-nat chain=dstnat comment=valheim dst-port=2456 in-interface=\ ether1 protocol=udp src-address=0.0.0.0 to-addresses=10.0.94.200 \ to-ports=2456 add action=dst-nat chain=dstnat comment=valheim dst-port=2457 in-interface=\ ether1 protocol=udp src-address=0.0.0.0 to-addresses=10.0.94.200 \ to-ports=2457 add action=dst-nat chain=dstnat comment=wireguard dst-port=51820 \ in-interface=ether1 protocol=tcp src-address=0.0.0.0 to-addresses=\ 10.0.94.252 to-ports=51820 /ip route add disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=ether1 \ routing-table=main scope=30 suppress-hw-offload=no target-scope=10 /ip service set telnet disabled=yes set ftp disabled=yes set www port=8080 set www-ssl port=8443 set api disabled=yes set api-ssl disabled=yes /lcd set default-screen=informative-slideshow enabled=no read-only-mode=yes \ touch-screen=disabled /lcd interface set sfp1 disabled=yes set ether2 disabled=yes set ether3 disabled=yes set ether4 disabled=yes set ether5 disabled=yes set ether6 disabled=yes set ether7 disabled=yes set ether8 disabled=yes set ether9 disabled=yes set ether10 disabled=yes /system clock set time-zone-name=Europe/Amsterdam /system clock manual set time-zone=+01:00 /system note set show-at-login=no /system ntp client set enabled=yes /system ntp client servers add address=0.pool.ntp.org add address=1.pool.ntp.org add address=2.pool.ntp.org add address=3.pool.ntp.org |