• 860

[研究所] MikroTik RouterOS 學習 (持續更新)

jeremy9678 wrote:
我的CCR1036也...(恕刪)


CCR1036-12G-4S的噪音已經算小的
UBNT EdgeRouter Pro只要一通電噪音就像吹風機


關於之前IPv6莫名其妙失效的問題已經找到解答。
要把中華電信的數據機「斷電」,
等到數據機電容內的電都放光再重開就可以了。

如果這樣還不能解決,連RouterBoard一起斷電等一分鐘即可。

eavictor wrote:
CCR1036-12G...(恕刪)


我已經把一路改為固二了,所以現在v4和v6都可以很順使用囉~
但目前pptp vpn不知為何都無法讓遠端可拿到ipv6的ip還不這麼解
gfx大求救我真不知道到底問題出來,公司的crs109這台的標記這一兩周用的超不順
目前是把4g網卡放到另一個網段了,不順是連公司內網,先貼上我的設定

nat部份

/ip firewall nat
add action=src-nat chain=srcnat comment="\\A4\\BA\\BA\\F4 NAT\\A4W\\BA\\F4" \
dst-address-list=poh-Net out-interface=ether2-wan2 src-address-list=\
LAN-User to-addresses=172.16.22.216
add action=src-nat chain=srcnat out-interface=ether4-lan2 src-address-list=\
LAN-User to-addresses=192.168.190.253

標記部份
/ip firewall mangle
add action=mark-routing chain=prerouting comment=\
"\A4\BA\BA\F4\B3s\BDu\B0|\A4\BA\BA\F4\B8\F4\BC\D0\B0O" dst-address-list=\
poh-Net new-routing-mark=poh-make passthrough=no src-address-list=\
LAN-User
add action=mark-routing chain=prerouting new-routing-mark=poh-make \
passthrough=no protocol=icmp src-address-list=poh-Net
add action=mark-routing chain=prerouting comment=\
"\A4\BA\BA\F4\B3s\A5~\BA\F44G\BA\F4\A5d\BC\D0\B0O" dst-port=1-1024 \
new-routing-mark=lte4g-make passthrough=no protocol=tcp src-address-list=\
LAN-User
add action=mark-routing chain=prerouting dst-port=1-1024 new-routing-mark=\
lte4g-make passthrough=no protocol=udp src-address-list=LAN-User
add action=mark-connection chain=prerouting comment="\\AEa\\B8\\CCVPN\\B3s\\BDu" \
dst-address-list=home-vpn dst-port=1723 new-connection-mark=lte-comm \
passthrough=no protocol=tcp src-address-list=LAN-User
add action=mark-routing chain=prerouting connection-mark=lte-comm \
dst-address-list=home-vpn new-routing-mark=lte4g-make passthrough=no \
src-address-list=LAN-User

目前公司網段我都放入address-list清單內囉,遇到幾個問題如下:
1.icmp的封包對它是不是沒有做用?不然真對icmp做標記不會有流量
2.我常常發生ping公司內網或公司網段都不通,公司內網ping我的wan port也ping不到
ping同wan port 的ip網段gw ip也不通,變成我要標記這邊調或路由改為公司預設gw ip
才會又會通,有時連nat都要調才會通
3.有時調好都可以通了但過幾分鐘後又都不通了,感覺是seesion時間到又重連不通
4.我的lan-user(192.168.188.0/24)這網段連公司內網似乎都沒問題,不同網段
的web或pop3一些tcp或usp服務都沒問題,但icmp如ping或tracert還是公司內網
電腦要連我都不行,目地nat port我有做只是上面沒貼出來而以,最近都一直這樣很不順
查不出原因
5.公司內網我有問過都沒擋icmp的包,感覺似乎都在icmp和路由上
6.4g網卡部份都沒有問題,routeros的default route是設定在4g網卡分享器上面ip囉

請gfx大大在幫幫忙,是不是要配合make comm使用雖然你之前有說過要當入口才需要它
不過這一兩周超不順的~謝謝gfx大
What's new in 6.28 (2015-Apr-15 15:18):

*) email - increase server greeting timeout to 60s;
*) lte - ZTE MF823 may loose configuration;
*) userman - update paypal root certificate;
*) timezone - updated timezone information to 2015b release;
*) cm2 - fixed capsman v2 100% CPU and other stability improvements;
*) route - using ldp could cause connected routes with invalid interface nexthop;
*) added support for SiS 190/191 PCI Ethernet adapter;
*) made metarouter work on boards with 802.11ac support or usb LTE;
*) sstp server - allow ADH only when no certificate set;
*) make fat32 disk formatting support disks bigger than 134GiB;
*) fixed tunnels - could crash when clamp-tcp-mss was enabled;
*) added basic counters for ipv4/bridge fast path, also show status wether fast path is active at all;
*) trafflow: - fixed crash on disable;
*) pppoe over eoip - fixed crash with large packets;
*) tilegx - fixed memory leak when queue settings are changed;
*) ar9888 - fixed crash when hw reports invalid rate;
*) console - fixed "in" operator in console;
*) console - make "/system package update print" work again.
*) tile - rare situation when CCR devices failed to auto-negotiate ethernet link (introduced in v6.25);
*) dhcpv4 client - it is now possible to unset default clientid and hostname options
*) initial RoMon (Router Management Overlay Network) support added.

eavictor wrote:
關於之前IPv6莫名其妙失效的問題已經找到解答。
要把中華電信的數據機「斷電」,
等到數據機電容內的電都放光再重開就可以了。

如果這樣還不能解決,連RouterBoard一起斷電等一分鐘即可。..(恕刪)


這個問題記得之前有遇過, 分享過.

你可能有多個上網的 gateway, 你要確保 IPv6 gateway (or firewall) 一定要是第一個連線的, 如果有其他設備先連線成功(即使這些設備只是 ipv4連線),. 那麼就會造成真正負責 ipv6 連線的 firewall (router) 連繳失敗.
FB: Pctine
DDNS IP 自動更新
有不少網友寬頻是使用動態 IP 的服務, 而欲從 Internet 存取家中的 Server (web or NAS...) 就必須透過 DDNS 動態 DNS 的服務.
一般 IP 分享器都會提供 DDNS 的設定, 比較常用的是 dyndns, no-ip, changeip 這類, 至於如何申請這些服務請直接 google 參考.
在 RouterOS DDNS 必須透過 script 方式為之, 這是和一般 IP 分享器比較不同的地方.
參考官方的文件做就對了.
DDNS script for NO-IP DNS
DDNS script for dynDNS
DDNS script for ChangeIP.com
jeremy9678 wrote:
gfx大求救我真不...(恕刪)
你把nat的dst-address取消看看.

小弟在設定firewall時,
絕不會同時設dst-address與out-interface ;
src-address與in-interface.

jeremy9678 wrote:
目前我這樣標記是可達到我的需求~但我有下列問題
1.tracert網際網路ip都會跑公司gw ip出去不會從4g網卡,並且都星號無法racert
但可ping但不能tracert...(恕刪)


插花的.

因為 icmp 封包和你設定的 mangle rule 是屬於不同的 protocol. 才會如此.
FB: Pctine
pctine wrote:
插花的.因為 icmp...(恕刪)


不太了解意思,不過我標記內的rule我有特別定icmp protocol部份
我試過只設定protocol為icmp其它都不設它也是沒流量很怪,所以覺的
標記對icmp是不是沒作用

jeremy9678 wrote:
不太了解意思,不過...(恕刪)
ICMP絕對可以用在策略路由,但您的標記方式要正確才行.


  • 860
內文搜尋
X
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 860)
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?