2014年3月12日

RouterOS Wake on Lan

RouterOS有工具可以support Wake on Lan,輸入下方指令紅色字為要喚醒電腦的mac位址
/tool wol interface=bridge-local mac=24:DE:80:9D:18:A8
也可將它寫成Script方便日後執行

(繼續閱讀...)

2014年2月26日

Postfix退信:Sender address rejected: not logged in

最近遇到退信,退信內容為Sender address rejected: not logged in,長的像下面這樣子
-----------------------------------------------------------------
A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
    SMTP error from remote mail server after RCPT TO:<jock@tainet.com>:
    host mail.tainet.com [201.175.38.27]: 553 5.7.1 <jock@tainet.com>:
    Sender address rejected: not logged in
 ------ This is a copy of the message, including all the headers. ------
 Return-path: <jock@tainet.com>
Received: from [201.175.38.27] (port=54382 helo=tainet.com)
        by seed.net.tw with smtp (Seednet 4.67:1)
        id 1WISvi-000FED-7a
        for jock@tainet.com; Wed, 23 Feb 2014 07:15:03 +1200
-----------------------------------------------------------------
(繼續閱讀...)

2014年2月20日

RouteOS當SSH Tunnel Server翻牆

利用command line輸入下面指令,啟用ssh server forwarding功能
 /ip ssh set forwarding-enabled=yes
另外ssh 連線登入功能也要打開,如下圖









啟用後,再到瀏覽器中去設定proxy後,便可成功連回家中的RouterOSr翻牆
proxy設定方式可參考這裡 (繼續閱讀...)

2014年1月9日

MailGraph安裝

簡易的圖型郵件分析圖表軟體
安裝方式如下
# yum -y install mailgraph
# vi /etc/httpd/conf.d/mailgraph.conf
Alias /mailgraph /usr/share/mailgraph
AddHandler cgi-script .cgi

   AllowOverride None
   Options +ExecCGI
   DirectoryIndex mailgraph.cgi
   Order Deny,Allow
   Deny from all
   Allow from 127.0.0.1 192.168.1.0/24  #加入要允許的IP

(繼續閱讀...)

2014年1月1日

RouterOS更改MAC address

有時需要更換Wan端口的MAC address來取得ISP配發的新DHCP IP
設定如下
[admin@MikroTik] > /interface ethernet
[admin@MikroTik] /interface ethernet> set ether1-gateway mac-address=50:41:52:23:54:15






(繼續閱讀...)

2013年12月29日

自動備份RouterOS設定檔並發信到指定信箱

前置作業要先設定好Email發信的功能,可參考這裡
Step 1:寫支Script命名為Email-Backup,讓它將備份檔自動傳送指定的Email信箱
#Email-Backup Script
/export file=export
/tool e-mail send to="xxx@gmail.com" subject=([/system identity get name]. export) body="$[/system clock get date] $[/system clock get time] configurationfile" file=export.rsc
:log info "Backup e-mail sent."; }








(繼續閱讀...)

RouterOS定時發送Log到email信箱

因為家中不會特別架一台Log Server給Routerboard丟log,變通的方法就是利用Script的方式讓存在記憶體中的log資料,定期發送到指定的Email信箱,需要查閱先前的log時,就去查看Email信件就好了
Step 1:先設定好Email發信的功能,這邊利用ISP線路的SMTP做Relay,所以不用設定帳密










(繼續閱讀...)

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.