顯示具有 RouterOS 標籤的文章。 顯示所有文章
顯示具有 RouterOS 標籤的文章。 顯示所有文章

2019年6月26日 星期三

RouterOS匯出設定檔

要匯出設定檔,需要切換到Terminal模式,點選左邊的New Terminal


切換到要匯出設定檔的路徑,輸入export file=檔名
例如:
export file = dhcp-server-lease

接著在Files List下就會看到剛剛的dhcp-server-lease.rsc檔,把它拉到桌面用文字編輯器就可進行編輯



2014年5月27日 星期二

RouterOS有無firewall規則Connections連線數有沒有差?

當設定好RouterOS撥接pppoe上網後,想比較看看防火牆有無啟動,對於連線Connections數的差異表現。
測試的防火牆過濾規則如下:
/ ip firewall filter
add chain=input connection-state=established comment="Accept established connections"
add chain=input connection-state=related comment="Accept related connections"
add chain=input connection-state=invalid action=drop comment="Drop invalid connections" 
add chain=input protocol=udp action=accept comment="UDP" disabled=no 
add chain=input protocol=icmp limit=50/5s,2 comment="Allow limited pings" 
add chain=input protocol=icmp action=drop comment="Drop excess pings" 
add chain=input in-interface=ether2 src-address=192.168.0.0/24 comment="From our LAN" action=accept
add chain=input action=log log-prefix="DROP INPUT" comment="Log everything else"
add chain=input action=drop comment="Drop everything else"

啟用防火牆閒置3小時後的Connections連線畫面內容

關閉防火牆閒置3小時後的Connections連線畫面內容

不太懂,好像沒什麼差耶~

RouterOS設定,家用電腦如何連接xDSL上網

如果你家裡是使用xDSL撥接上網,而目前想要將MikroTik Router設備加到你現有的架構中,可參考下列的圖例,把Router放在xDSL Modem及你的Hub之間。
而以下的說明,也是依據下圖的規劃做設定:

圖片來源:MikroTik官方網站

1.確認interface中,ether1 ether2是否啟用,ether1接對外撥接數據機,ether2接對內Hub或電腦。
/interface enable ether1,ether2

2.新增PPPoE Client撥接設定→撥接介面請選擇ether1→Dail Out的頁面,請輸入ISP公司提供的撥接帳號(User)、密碼(Password),若要使用ISP公司提供的DNS,請將User Peer DNS打勾,接著按下Apply鍵,RouterOS會自動撥接,若撥接成功,右下角就會出現connected的訊息,但此時你的電腦應該還不能上網,因為你連接對內的ether2網路介面還沒做設定。(以seednet為例)
/ interface pppoe-client 
add interface=ether1 user="seednet" password="seednet" \
add-default-route=yes use-peer-dns=yes disabled=no



3.建立私有網路ether2的設定:/ip address → Address: 192.168.0.1/24 ,Network: 192.168.0.0 ,Interface: ether2
/ip address add address=192.168.0.1/24 interface=ether2

4.NAT偽裝。讓內部私有IP能偽裝成對外的真實IP上網。/ip fiewall → NAT → 新增新的NAT規則,Chain選擇srcnat,Src. Address: 192.168.0.0/24。
/ip firewall nat add chain=srcnat src-address=192.168.0.0/24 action=masquerade




5.其他的設定(視情況):防火牆設定
/ ip firewall filter
add chain=input connection-state=established comment="Accept established connections"
add chain=input connection-state=related comment="Accept related connections"
add chain=input connection-state=invalid action=drop comment="Drop invalid connections" 
add chain=input protocol=udp action=accept comment="UDP" disabled=no 
add chain=input protocol=icmp limit=50/5s,2 comment="Allow limited pings" 
add chain=input protocol=icmp action=drop comment="Drop excess pings" 
add chain=input in-interface=ether2 src-address=192.168.0.0/24 comment="From our LAN" action=accept
add chain=input action=log log-prefix="DROP INPUT" comment="Log everything else"
add chain=input action=drop comment="Drop everything else"
6.其他的設定(視情況):DHCP設定
/ip dhcp-server setup









7.其他的設定:DNS設定,讓本地端電腦可以透過RouterOS Cache解析DNS。
/ip dns set allow-remote-requests=yes


參考網頁:MikroTik官方網站

2014年5月24日 星期六

根據官方說法:密碼忘記的處理方法,系統設定一定會被清空。

RouterOS密碼忘記的處理
方法一:若是有機殼的RouterOS,面板上應該都會有一個Reset鍵,操作方法是:在還未開機的狀態下,先按住Reset鍵不放,之後才接上電源,直到黃燈閃爍時再放開Reset鍵,系統就會重啟恢復到出廠預設值,密碼也會清空。若操作正確的話,RouterOS應該會發出「嗶!嗶!」(要多點耐心多試幾次,熟能生巧)
方法二:把RouterOS機殼拆開,找到機板上Reset的金屬圓片,用十字起子壓著,再插電開機,造成短路,此時大約幾秒鐘後聽到嗶嗶聲,放開後也會恢復出廠預設值。(以下的照片是以RB450G為例)
RB450G重啟復位後,我遇到的情形是Eth1是無法連線登入,但Eth2~5是可以的,反正沒差,之後再修改就好了,至於其他機型是否有這樣的問題,就不得而知了。另外,所有的設定值都被清空了,若當初有做過備份,File底下仍保有當初的備份檔,Restore即可,這也告訴我們隨時備份的重要性。