• 860

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


jeremy9678 wrote:
你的虛擬ip為何覺...(恕刪)
這不是形容遮罩,而是範圍內的ip.
10.0.0.0/8 => 10.0.0.0-10.255.255.255
172.16.0.0/12 => 172.16.0.0-172.16.255.255
192.168.0.0/16 => 192.168.0.0-192.168.255.255

不清楚您可以在命令視窗做計算:
gfx wrote:
這不是形容遮罩,而是範圍內的ip.
172.16.0.0/12 => 172.16.0.0-172.16.255.255

172.16.0.0/12 => 172.16.0.0-172.31.255.255

這就是在形容『遮罩』(Subnet Mask)!

172.16.0.0/12 是以CIDR (Classless Inter-Domain Routing)表示

172.16.0.0 用二進位表示 10101100.00010000.00000000.00000000

/12 代表左邊遮罩掉12個位元 11111111.11110000.00000000.00000000,右邊剩下20個位元可以用

xxxxxxxx.xxxx0000.00000000.00000000 ~ xxxxxxxx.xxxx1111.11111111.11111111

所以172.16.0.0/12 就會是 10101100.00010000.00000000.00000000 ~ 10101100.00011111.11111111.11111111

也就是172.16.0.0 ~ 172.31.255.255

IP以10開頭的皆為 Class B 網段,也就是說128.0.0.0 ~ 191.255.255.255 都是屬於 Class B 網段,其中又定義
172.16.0.0 ~ 172.31.255.255 為 Private IP

IP以110開頭的皆為 Class C 網段,也就是說192.0.0.0 ~ 223.255.255.255 都是屬於 Class C 網段,其中又定義
192.168.0.0 ~ 192.168.255.255 (192.168.0.0/16)為 Private IP

所以只要看到192.168開頭的,就絕對不會是Public IP
Mason.Lyu大這個我知道是在B上切子網
只是一時恍神不查什麼時候B變成/12囉!抱歉!

Mason.Lyu wrote:
172.16.0.0...(恕刪)


Mason.Lyu大果然詳細的說明囉!我想表達就是這個還是Mason.Lyu大懂我!

gfx大也很棒棒!以前去考CCNA算到頭昏眼花了

請問

我有設定 DNS 為 A ip 二個

預設是udp 53 出去
如何設定可以 udp 詢問 是轉到A ip 的其他 port 比如5432
對方有提供5432 port 轉譯

謝謝
elodie319 wrote:
請問我有設定 DNS...(恕刪)
假設目的地址為123.123.123.123 ,新增:
/ip firewall nat add action=dst-nat chain=dstnat protocol=udp dst-port=53 \
dst-address=123.123.123.123 to-ports=5432 place-before=0
各位好 家裡有台routeros RB750gl
最近因為當兵關係所以離家比較遠 ...
想說家裡有台 ASUS RT N66U 可以拿來當BT機跟 fileserver
當我在區網內的時候連線是正常的
但當我用VPN連線時 卻連不到ASUS的機器
請問有辦法連到嬤 ?
VPN使用PPTP、OVPN或是SSTP都有
網段也都是單一個DHCP派的IP
請問這需要怎麼解決 ...
沒有設定其他防火牆 ... 因為對我來說還太複雜 ...
還是說需要設定DMZ 或是 port mapping ?
在此先謝謝各位的意見 .. =)
謝謝

設定ok 但是看起來沒有封包

似乎他還是先從 DNS 的 server去走

如果DNS 設定123.123.23.123
在 ip Firewall 中設定 還是先走dns 的設定

目前看起來是這樣
https://github.com/aziraphale/routeros-dns-adblock/blob/master/README.md

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.
這似乎和我想要轉port不太一樣

想要讓我的dns 所有的詢問 去詢問 123.123.123.132 的port 5353

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