??: ????? ??? ??? ??? ?? ??
??? ??? ??? ???? ??? ?? ??? ?? ???? ?????. ?????? ??? ?? ??? ???? ??? ? ?? IT ??? ???? ??? ??? ???? ?? ???? ?????. ???? ?? ????? ? ?? ?????, ? ?? ??? ?? ??? ??? ???? ??? ?????.
Mikrotik? ? ????? ? ??? ???? ?? ????, RouterOS ???? ??? ??? ??? ???? ?????. ? ???? Mikrotik ??? ?? ??? ??? ???? ?? IT ???? ?? ?? ??? ??? ?? ? ??? ????. ??? ?? IT ?? ?? ??? ???? ?? ??? ???? Siwenlide? IT ?? ???? ???? ?????.
?1?: ??? ?? ??
1.1 ????? ????
???? ??? ??? ?? ??? ?? ????? ???? ??? ???? ???? ???? ???? ?? ??????. ???? ??? ????? ???? ????. ???? ????? ???? ?? ???(??? ??)? ??? ????, ??? ?? ?? ????? ????? ???? ?????.
?? ????? ???? ?? ??? ??? ????:
- ?? ??: ??? ?? ??? ??? ??? ??? ???? ??
- ????: ????, ??? ??, ????? ????? ?? ??
- ??? ??: ??? ??? ??? ????? ??? ??
- ??? ???: ??? ??? ??? ???? ??? ?? ?? ??
??? ??? ???? ?? ?? ??? ????? ?? ??? ??? ???? ?? ???? ?????.
1.2 Mikrotik RouterOS? ??
Mikrotik? RouterOS ???? ???? ???? ?? ???? ??? ??? ????:
??? ??:RouterOS? ??? ???? ?? ??? ???, VPN ??, ??? ??, ?? AP ? ??? ??? ???? ??, ?? ? ?? ?? ??? ??? ? ????.
??? ???: Cisco, ??? ? ???? ??? Mikrotik ??? ??? ?????? ??? ?? ??? ??, ??? ??? ????? ?? ?????.
??? ??: ???, ? ?????, WinBox ??? ????? ? ??? ?? ??? ??? ?? ??? ?? ???? ??? ?????.
??? ????: ? ??? ?? ???? ???? ??? ????? ??? ??? ? ???? ?? ????.
?2?: ??? ?? ?? ??
2.1 ?? ?? ??
Mikrotik ??? ?? ?? ?? ??? ?????:
WinBox(??): Windows ???? ??? ?? ??? ??? ?????? ????? ?????. ???? ??: https://mikrotik.com/download
WebFig: ????? ?? IP? ???? ????, ?? ????? ?? ?? ??? ????? ??? ? ????.
Telnet/SSH: ??? ???? ?? ???? ?? ?? ??? ?????.
?? ??? ?? WinBox? ??? MAC ??? ???? ?? ?????(IP ??? ???? ??). ? ???? ??? ? ????.
2.2 ??? ??(Chain) ????
RouterOS ???? ?? ??? ???? ????, ?? ??? ??? ????:
- input ??: ??? ??? ???? ??? ??(?: ?? ???)? ??
- output ??: ????? ??? ??? ??? ??
- forward ??: ???? ??? ???? ??? ??, ? ???? ??? ??? ???? ??
? ? ??? ??? ???? ?? ???? ???? ???? ?????.
2.3 ??? ?? ??
? ??? ???? ??? ?? ??? ??? ? ????:
- accept: ??? ?? ?? ??
- drop: ??? ??? ??? ???? ?? ?? ??? ?? ??
- reject: ??? ??? ???? ?? ?? ?? ??? ??
- log: ??? ?? ??? ??? ??
?? ????? reject?? drop? ?? ?????. drop? ???? ??? ???? ?? ???? ???? ??? ?????.
?3?: ?? ??? ?? ??
3.1 ??? ?? ?? ??
???? ?? ????? ?? ????? ???? ?? ??? ???? ???. ??? input ??? ?? ?????:
# ?? ?? ? ?? ?? ?? /ip firewall filter add chain=input connection-state=established,related action=accept comment="?? ?? ??" # ????? ?? ICMP(ping) ?? add chain=input protocol=icmp src-address=192.168.88.0/24 action=accept comment="??? ping ??" # ????? ?? WinBox ?? ?? add chain=input protocol=tcp dst-port=8291 src-address=192.168.88.0/24 action=accept comment="??? WinBox ??" # ? ?? ?? input ??? ?? add chain=input action=drop comment="? ?? input ??? ??"
? ??? ?????? ???? ??? ? ?? ?????? ?? ??? ? ??? ?? ???? ?? ????.
3.2 ??? ??? ?? ??
forward ??? ??? ???? ??? ?? ??? ?????. ??? ???? ?????:
# ?? ?? ? ?? ?? ?? /ip firewall filter add chain=forward connection-state=established,related action=accept comment="?? ?? ?? ??" # ????? ??? ?? ?? add chain=forward src-address=192.168.88.0/24 action=accept comment="??? ????? ??" # ????? ??? ?? ?? ?? add chain=forward dst-address=192.168.88.0/24 action=drop comment="???? ??? ?? ??"
3.3 NAT ?? ?? ??
?? ???? ????? ?? IP ??? ????? ???? ????? NAT? ?????:
/ip firewall nat add chain=srcnat out-interface=ether1-WAN action=masquerade comment="??? NAT ??? ??"
masquerade ??? ?? ?????? IP? ???? ??? ??? ????? ?? IP ??? ?????.
?4?: ?? ?? ??
4.1 ?? ?? ??
???? ?? ?? ???? ??? ?? ?? ???? ?????. ??? ??? ?? ??? ???? ??? ? ????:
/ip firewall filter add chain=input protocol=tcp psd=21,3s,3,1 action=drop comment="?? ?? ??"
psd ????? ??: 3? ??? ?? ???? ?? ?? ?? 3?? ??? ???? ???? 1? ???? ???? ??? ?????.
4.2 ??? ?? ?? ??
???? ??? ???(?: VPN)? ??? ?? ??? ??? ??? ???:
/ip firewall filter add chain=input protocol=tcp dst-port=22 src-address-list=ssh_blacklist action=drop comment="SSH ?????" add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage3 action=add-src-to-address-list address-list=ssh_blacklist address-list-timeout=1d add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage2 action=add-src-to-address-list address-list=ssh_stage3 address-list-timeout=1m add chain=input protocol=tcp dst-port=22 connection-state=new src-address-list=ssh_stage1 action=add-src-to-address-list address-list=ssh_stage2 address-list-timeout=1m add chain=input protocol=tcp dst-port=22 connection-state=new action=add-src-to-address-list address-list=ssh_stage1 address-list-timeout=1m
? ??? ??? ??? ?????. ? ?? ??? stage1 ???, ? ??? stage2, ? ??? stage3? ????, ? ??? ??? ?????? ??? ?? ?? ?????.
4.3 ??? ??
RouterOS? ? ???? ??? ??? ??? ??? ? ????:
/queue simple add name="??A" target=192.168.88.0/25 max-limit=10M/10M limit-at=2M/2M priority=5 add name="??B" target=192.168.88.128/25 max-limit=20M/20M limit-at=5M/5M priority=3
???? ??: max-limit? ?? ???, limit-at? ?? ?????, priority ?? ???? ????? ????.
?5?: ?? ???? ??? ?? ??
5.1 ?? ? ???? ?? ?? ?
?? ??:
- NAT ??? ???? ?????? ??
- DNS ??? ???? ??(ping 8.8.8.8? ??? ???)
- ?????? ?????? DNS ?? ??
- ??? ??? ??? ??? ???? ??? ??
5.2 ????? ?? ???? ??? ? ?? ?
????? ???? ? ??? ???? ??? ?? ??? ???? ???:
/ip firewall nat add chain=dstnat protocol=tcp dst-port=80 in-interface=ether1-WAN action=dst-nat to-addresses=192.168.88.10 to-ports=80 comment="? ?? ??"
??? forward ???? ?? ???? ?????? ???? ???.
5.3 ?? ??? ??? ????? ?
???? ???? ???? ???? ???? ?? ? ????. ?? ??:
- ??? ???: ???? reset ??? ???, ??? ?? ? ????? ?? ???? ?????
- MAC ?? ??: WinBox? MAC ??? ??? ? ?? IP ??? ???? ????
- ?? ???: ??? ???? ?? ???? ???? ??? ?????
??? ?? ?? ??? ?? ??? ???? ?? ?????:
/export file=backup-before-change
?6?: IT ?? ????? ??
6.1 IT ?? ????? ???? ??
???? ?????? ???? ??? ?? ??? ????. ?? ???? ????? ???? ?? ?? ??? ? ?? ???, Mikrotik? ???? ??? ?? ???? ?? ??? ???? ?????. IT ?? ???? ??? ??? ??? ?? ??? ???? ???:
- ?? ??: ?? IT ??? ??? ??? ?? ??? ?? ??? ?????
- ??? ??: ??? ?? ??? ??? ???? ??? ? ????? ?????
- ??? ??: ?? ?? ? ?? ?? ???? ???? ?????
- ?? ??: ?? ???? ??? ?? ??? ?? ?? ?? ?? ??? ??? ? ????
6.2 Siwenlide IT ??? ??? ???
Beijing Siwen Lide Technology & Trade Co., Ltd.? ??? “IT ??? ???” ???? ????? ??? IT ?? ???? ?????:
3-in-1 ??? ???:
- ??? ??: ??? ?? ???? ????, ???? ??? ?? ???? ??? ???? ?????. ?? ??????(MIIT) ISP ??? ???? ??? ?????
- ?? ???? ??: ???, ??? ???, ???, ?? AP? ?? ?? ?? ???? ???? ?? ??·?????
- ??? ?? ??: WeChat ??? ??, ?? ?? ??, ?? ?? ? ??? ??? ?? ?? ? ?? ???? ?? ?? ?? ?????
?? ??:
- ??? IT ?? ??? ?? ? ?? ???? ??? IT ???? ??? ? ?? ?? ?? ??? 99% ?????
- ??? 3? ??, ? ??? ?? ??, ?? ?? ?? ??? ??? ?? ??, ?? ?? ??? ?????
- ?? ??: ?? ?????? ISP ??, ISO9001/ISO20000 ??, Huawei HCIE, Mikrotik MTCTCE ??
6.3 ??? ??
Siwenlide ??? ?? ? ?? ?? ??? ?? ?????:
- ?? ??: ?? ???? ??? ???? ?? ????? ?????
- ?? ??: ?? ??? ?? ??? ?? ???? ???? ????? ?????
- ?? ??: ???, ???, ??? ? ??? ???? ?????
- ?? ??: ?? ????? ?? ??? ??? ?????
- ?? ? ??: ?? ????? ?? ??? ?? ?? ??? ?????
- ?? ??: ?? ????, ?? ??, ?? ??, ?? ???
?7?: ?? ? ??
7.1 ?? ?? ??
? ????? Mikrotik ???? ?? ??? ??? ?????, ?? ??? ??? ????:
- input, output, forward ? ?? ??? ?? ??
- ??? ??? ??? ????? ??
- “?? ??(default deny)” ?? ?? ??
- ?? ?? ? ??? ?? ??(brute force) ?? ??
- ??? ????? ???? ??? ?? ?? ??
7.2 ????? ?? ??
?? IT ?? ?? ????? ??:
- ???? ??? ????, ??? ? ??? ??? ?? ????
- ??? ? ?? ???? ??? ??? ???? ???? ??? ?????
- ???? ??? ????? ???? ?? ??? ??? ??????
- ?? ?? ?? ?? ??? ???? ?? ??? ?????
- ?? ?? ??? ???? ?? ?? ? ??? ??? ??????
???
???? ??? ???? ????, ? ?? ???? ??? ???? ?? ????. ??? ???? ??? ???? ?? ?? ??? ????? ???? ????? ???. ? ??? ???? IT ???? Mikrotik ???? ?? ?? ??? ??? ?? ???? ??? ? ?? ?? ???? ??? ???? ? ??? ??? ????.
?? ???? ??? ????? ???? IT ?? ??? ??? ????? Siwenlide? ??? ????. ??? ?? IT ?? ?? ??? ???? ?? ??? ?? ??? ??? ??? ??? ??????.
? ?? Siwenlide? ?????, ?? IT ?? ?? ??? ??????
? ?? ????: www.siwenlide.com
? WeChat ?? ??: “Siwenlide” ?? “Yuxinan” ??
? IT ??? ??? ?? ??? ??? ????






