MikroTik template to replace your Linksys
by iam8up on Sep.05, 2009, under mikrotik
#basic stuff for all mt devices
/tool graphing set store-every=5min /tool graphing interface add allow-address=0.0.0.0/0 disabled=no interface=all store-on-disk=yes /tool graphing queue add allow-address=0.0.0.0/0 allow-target=yes disabled=no simple-queue=all \ store-on-disk=yes /tool graphing resource add allow-address=0.0.0.0/0 disabled=no store-on-disk=yes /system ntp client set enabled=yes mode=unicast primary-ntp=192.5.41.41 secondary-ntp=0.0.0.0 /system clock set time=12:00:00 date=Nov/11/2008 time-zone-name=America/New_York /ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB \ max-udp-packet-size=512 primary-dns=208.67.222.222 secondary-dns=\ 208.67.220.220 /ip firewall filter add action=drop chain=input comment="blocks incoming dns queries" disabled=no \ dst-port=53 protocol=udp in-interface=ether1
#assuming your wan provides dhcp
/ip dhcp-client add interface=ether5 use-peer-ntp=yes use-peer-dns=yes
#gets the wlan1 working
#this puts your wlan1 and ether1 to ether4 in a rstp bridge
/interface wireless set wlan1 mode=ap-bridge band=2.4ghz-b/g frequency=2462 \ ssid=MyHomeNetwork disabled=no /interface bridge add name=bridge-lan protocol-mode=rstp /interface bridge port add bridge=bridge-lan interface=wlan1 /interface bridge port add bridge=bridge-lan interface=ether1 /interface bridge port add bridge=bridge-lan interface=ether2 /interface bridge port add bridge=bridge-lan interface=ether3 /interface bridge port add bridge=bridge-lan interface=ether4
#add ip address to bridge
/ip address add interface=bridge-lan address=172.16.16.1/24
#masq the bridge network
/ip firewall nat add action=masquerade chain=srcnat comment="masq bridge lan" disabled=no out-interface=\ ether5 src-address=172.16.16.0/24
#add dhcp server to bridge
/ip pool add name=dhcp_pool1 ranges=172.16.16.100-172.16.16.199 /ip dhcp-server add address-pool=dhcp_pool1 authoritative=after-2sec-delay bootp-support=\ static disabled=no interface=bridge-lan lease-time=1d name=dhcp1 /ip dhcp-server config set store-leases-disk=5m /ip dhcp-server network add address=172.16.16.0/24 comment="" dns-server=172.16.16.1,4.2.2.2 gateway=\ 172.16.16.1
No comments for this entry yet...
