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

chengjc wrote:
經過晚上的努力,1037U的其他網路port已經橋接,
並且也都順利取得dhcp分配的ip,然後重新設定pptp之後,...(恕刪)


小弟沒有認真看前面所有的文章, 不過所謂把 1037U 其他的 port 做 '橋接' 的用意為何?

如果只是要當做一般的switch 用, 那麼直接買一台 5/8 port switch 來串不就解決了?
FB: Pctine

chengjc wrote:
從網外VPN回來,可以正確取得家中的IP,
速度也是接近滿速40M/40M,


請問chengjc大
小弟也是購買6port 1037u x86主機架設ros
但是我從網外連接PPTP至1037u做測速
從來上傳和下載都不超過3MB
請問您是如何設定的??
可以分享一下嗎??
如同pctine兄說的,
這樣子其實有一點大材小用,
只是目前小弟能力不佳,現在頂多僅能用上6個port中的兩個,(wan/lan)
留下4個port在那邊納涼,反正閒著也是閒著,
就把原本系統中的8port giga swiitch hub給換了下來,
剩下的port改成橋接當做是hub用,
等小弟搞定了目前手邊的基本部分功能(pptp的網芳)
大概就會開始亂搞了..

目前想到的是策略路由,qos的設定,
負載平衡(小弟有一張4g吃到飽的sim卡以及一台4g IP分享器),
vpn lan to lan(小弟辦公室有一台vigor 2910閒置),
等到那時,大概會把橋接的port取消了吧,
對於高手而言,這都是舉手之間的事,
對於我來說,大概需要不少時間來研究跟搞定吧,
所以在這空檔,就先物盡其用囉...




pctine wrote:
小弟沒有認真看前面...(恕刪)
gfx兄請收私訊,萬分感謝

turion111兄,底下這圖應該是我全部的設定,
我是昨天晚上全部重新設定後
vpn的速度就正常了,至於我哪邊設定錯了,
嗯,小弟能力還不足以debug,這要版上前輩來看了


turion111 wrote:
請問chengjc...(恕刪)


chengjc wrote:
gfx兄請收私訊,...(恕刪)
弄好了,是您的nat未設定好

設好後pptp連線也ping得到192.168.1.2與192.168.1.45了.
感謝gfx兄...

果然高手一看就知道問題在哪裡,
我昨天搞了一晚上還是不知道問題出在哪裡..

gfx兄是說我的nat設定,少了out interface=pppoe這一項嗎?
我已經忘了我之前的設定是什麼?
應該在in/out interface那邊是空白的??

再一次感謝gfx兄..

chengjc wrote:
感謝gfx兄......(恕刪)
空白代表是all的含義.
您之前是空白,代表所有的連線都送到網際網路去.

指定out-interface即只將指定接口封包送到網際網路.
所以空白就是當連接192.168.1.0/24時也連上網際網路找,當然會找不著.
小弟我繼續舉手發問了...

經過gfx兄的協助,
現在已經可以vpn進去然後取得家中的ip,
連上網路芳鄰,目前動作都是正常的...

小弟是使用蘋果的電腦,
裡面的vpn設定有一項是透過vpn傳送全部的流量,
若是我勾選了這選項,則電腦會取得家中的ip連上網路,
speedtest連線速度最大是40M/40M左右,
也可以連上家中的網路芳鄰,
剛剛試了一下,若是我不勾選這個選項,
則無法取得家中的ip,對外ip一樣是我上班時辦公室的ip,
speedtest連線速度則是接近100M/100M(上班地點速度為100M/100M),
但是一樣可以連到家中的網路芳鄰,
請問各位,這兩者連線方式何者較優??

若是說,我上班地點會對於某一些網站有屏蔽,
那我是不是應該用取得家中ip方式,
來避開上班地點的網路管制??






chengjc wrote:
請問各位,這兩者連線方式何者較優??
個人覺得沒差別,因為能連接家中皆是路由表在做控制.
一個在pptp-client電腦內控制,另一種則是router(pptp-server).

因路由表只控制封包的轉送,不負責傳輸.
所以比對效率的話,我覺得影響程度幾近為零.

但修改server是牽一髮動全身,所有clients都會比照辦理.
而修改client只有本地電腦會受影響,其它clients則都不會
RouterOS DNS Server AdBlock Configuration 用途是從路由器上用 DNS 的方式直接檔廣告。

github 內的檔是 php,需要 process 過。我 process 完後生成了以下的 rsc 檔,可直接加入。

https://drive.google.com/file/d/0B48kgmxJ7GwNakplQllfLUprczg/view?usp=sharing

zip 內的 txt 檔是 rsc 檔的 source。內容應該是一樣的只是格式不一樣。

我自己還沒機會使用。。。

============

https://github.com/aziraphale/routeros-dns-adblock

# RouterOS DNS Server AdBlock Configuration

This repository contains a PHP script that will convert some of the filter lists used by AdBlock and uBlock into RouterOS commands to add static entries to the router's DNS server (/ip dns static). Combined with an additional firewall (/ip firewall filter) rule, shown below, this has the effect of blocking adverts (and/or malware, scams, etc., depending on the chosen lists) for any clients which are configured to use the router as their DNS server.

By blocking ads at the DNS server level, adverts are blocked even for locked-down devices such as smartphones and games consoles!

Note that it's generally easiest to configure your DHCP server to push DNS server entries to your clients, where those server entries point back to your router. That way, everything on your network will automatically use the ad-blocking DNS server.

Usage 請參考網頁吧

請特別注意以下,別讓自己的路由器鎖死了:

NOTE: my experience is the MikroTik RouterBoard devices (especially the consumer-level ones) aren't sufficiently powerful to use more than a few of these lists simultaneously. My own RouterBoard (RB450G), when presented with 60,000 static DNS entries, kept working quite happily for several hours until it tried reloading the static DNS entry list, which took it 16 minutes, during which time the DNS server wouldn't respond and even basic traffic forwarding performance was impacted. I strongly suggest that you only use one or two of these lists!
關閉廣告
文章分享
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 860)

今日熱門文章 網友點擊推薦!