HCIE学习之路11:一个防火墙网络实验

今天以华为USG系列防火墙为例,写一个在企业出口配置防火墙的网络实验。

防火墙作为VAS设备,向租户提供安全策略、EIP、源NAT、IPSec、内容安全等增值安全服务。作为执行器,接收控制器下发的防御策略,及时阻断威胁流量。

应用领域包括:校园出口、广电网络、金融中心、企业园区、云计算等。

以企业园区为例:防火墙部署在大中型企业出口提供Internet接入、VPN互联和安全防护功能,主要使用双机热备、NAT、ISP智能选路、VPN、攻击防范等功能。

下面列举2个应用场景配置:CLI和Web

管理员登录设备后,首先要对设备进行网络基础配置,使设备快速接入网络,如下图,企业购买了FW作为企业出口网关。管理员在登录FW后,首先需要对FW进行网络基础配置,包括设备名称、时钟、接口IP地址、安全区域、缺省路由及缺省包过滤的配置。

CLI配置思路

  1. 配置FW的设备名称。
  2. 配置FW的时钟。
  3. 配置FW各业务接口的IP地址。IP地址需要在配置前进行统一规划。
  4. 将各个业务接口加入安全区域。一般情况下,连接外网的接口加入安全级别低的安全区域(例如untrust区域),连接内网的接口加入安全级别高的安全区域(例如trust区域),服务器可以加入DMZ区域。
  5. 配置缺省路由,下一跳为ISP提供的接入点。
  6. 打开缺省包过滤,保证FW能够接入Internet。缺省情况下,缺省包过滤关闭。

CIL操作步骤

1.配置设备名称

<FW> system-view
[FW] sysname FW_A
[FW_A] quit

2.配置时钟,包括当前时间和时区。

<FW> clock datetime 18:10:45 2023-08-14
<FW> clock timezone BJ add 08:00:00

3.配置接口的IP地址。连接外网的接口IP地址(本例为10.1.1.1/24)需要从当地ISP获取。

<FW_A> system-view
[FW_A] interface GigabitEthernet 0/0/0
[FW_A-GigabitEthernet0/0/0] ip address 192.168.1.1 24
[FW_A-GigabitEthernet0/0/0] quit
[FW_A] interface GigabitEthernet 0/0/1
[FW_A-GigabitEthernet0/0/1] ip address 10.1.1.1 24
[FW_A-GigabitEthernet0/0/1] quit
[FW_A] interface GigabitEthernet 0/0/2
[FW_A-GigabitEthernet0/0/2] ip address 1.1.1.1 24
[FW_A-GigabitEthernet0/0/2] quit

4.将各个业务接口加入安全区域。

[FW_A] firewall zone trust
[FW_A-zone-trust] add interface GigabitEthernet 0/0/0
[FW_A-zone-trust] quit
[FW_A] firewall zone dmz
[FW_A-zone-dmz] add interface GigabitEthernet 0/0/1
[FW_A-zone-dmz] quit
[FW_A] firewall zone untrust
[FW_A-zone-untrust] add interface GigabitEthernet 0/0/2
[FW_A-zone-untrust] quit

5.配置缺省路由。

[FW_A] ip route-static 0.0.0.0 0.0.0.0 1.1.1.254

6.打开缺省包过滤,保证FW能够接入Internet。

这里同样可以用脚本直接导入的方式实现一键配置,以下是完整的配置脚本:

#
 sysname FW_A
#                                                                               
interface GigabitEthernet0/0/0
 ip address 192.168.1.1 255.255.255.0
#                                                                               
interface GigabitEthernet0/0/1
 ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2
 ip address 1.1.1.1 255.255.255.0
#
firewall zone trust
 set priority 85
 add interface GigabitEthernet0/0/0
#
firewall zone dmz
 set priority 50
 add interface GigabitEthernet0/0/1
#
firewall zone untrust
 set priority 5
 add interface GigabitEthernet0/0/2
#
ip route-static 0.0.0.0 0.0.0.0 1.1.1.254
#                                                                               
security-policy                                                                 
 default action permit      
#
return

Web配置思路

  1. 配置FW的时钟。
  2. 配置FW各业务接口的IP地址。IP地址需要在配置前进行统一规划。
  3. 将各个业务接口加入安全区域。一般情况下,连接外网的接口加入安全级别低的安全区域(例如untrust区域),连接内网的接口加入安全级别高的安全区域(例如trust区域),服务器可以加入DMZ区域。
  4. 配置缺省路由,下一跳为ISP提供的接入点。
  5. 打开缺省包过滤,保证FW能够接入Internet。缺省情况下,缺省包过滤关闭。

Web操作步骤

  1. 配置时钟,包括当前时间和时区。
    1. 选择“系统 > 配置 > 时钟配置”。
    2. 在“配置方式”中选择“手动配置时间”。
    3. 配置“时区”。
    4. 配置“日期”。
    5. 配置“系统时间”。
    6. 单击“应用”。
  2. 配置接口0的IP地址和安全区域。
    1. 选择“网络 > 接口”。
    2. 单击GE0/0/0。
    3. 按如下参数配置接口GE0/0/0。安全区域trust的IP地址192.168.1.1/24
    4. 单击“确定”。
    5. 重复上述步骤按如下参数配置接口GE0/0/1。安全区域dmz的IP地址10.1.1.1/24
    6. 重复上述步骤按如下参数配置接口GE0/0/2。安全区域untrust的IP地址1.1.1.1/24
  3. 配置缺省路由。
    1. 选择“网络 > 路由 > 静态路由”。
    2. 单击“新建”。
    3. 按如下参数配置缺省路由。目的地址0.0.0.0掩码0.0.0.0下一跳1.1.1.254
    4. 单击“确定”。
  4. 打开缺省包过滤,保证FW能够接入Internet。一般情况下建议保持缺省包过滤关闭,然后配置具体允许哪些数据流通过的安全策略。
    1. 选择“策略 > 安全策略”。
    2. 修改default安全策略的动作为允许。
    3. 单击“确定”。

以上就是企业出口防火墙典型案例的详细配置,感兴趣的同学可以在ensp搭建拓扑图试一下。

这篇文章有 634 个评论

  1. 第 Stevensab页

    Juegos de http://www.juegos-poki.mx online gratis para ninos y adultos. Juega directamente en tu navegador sin necesidad de descargas ni registro: puzles, carreras, disparos, juegos para dos jugadores, accion, deportes, aventuras y exitos populares. Una amplia seleccion de entretenimiento disponible para tu ordenador, tableta y telefono.

  2. 第 HarleyHED页

    Ingyenes http://www.poki-games.hu jatekok erhetok el online, letoltes vagy telepites nelkul. Hatalmas jatekgyujtemeny egyjatekos es barati jatekokhoz: versenyek, akcio, kirakos jatekok, platformerek, sportok, kalandok es tobbjatekos modok. Talald meg a tokeletes jatekot, es kezdj el jatszani most.

  3. 第 Stevensab页

    Juegos de https://www.juegos-poki.mx online gratis para ninos y adultos. Juega directamente en tu navegador sin necesidad de descargas ni registro: puzles, carreras, disparos, juegos para dos jugadores, accion, deportes, aventuras y exitos populares. Una amplia seleccion de entretenimiento disponible para tu ordenador, tableta y telefono.

  4. 第 HarleyHED页

    Ingyenes http://www.poki-games.hu/ jatekok erhetok el online, letoltes vagy telepites nelkul. Hatalmas jatekgyujtemeny egyjatekos es barati jatekokhoz: versenyek, akcio, kirakos jatekok, platformerek, sportok, kalandok es tobbjatekos modok. Talald meg a tokeletes jatekot, es kezdj el jatszani most.

  5. true_ekSi

    Been playing at true fortune casino around four months back after a lad from my footy group banged on about it, and honestly I reckoned it’d be yet another cookie-cutter sites that disappear after a month. Still here though, so take that as you will.

    Game selection is genuinely big — I’d guess around 2,000 slots and tables going by the counter. Play’n GO carry the front page, so there’s the ones everyone plays — Book of Dead swallows the bulk of my spins, and I’ve had the odd good session on Big Time Gaming slots too. Evolution classics are hidden behind the filters but you can find them.

    Live dealer side is Evolution-run from what I’ve seen, and that’s about as good as it gets. The game shows get a fair few players in the evenings, dealers are friendly enough and the streams hold up on my phone. The welcome side is a match up to ?500 alongside 75 spins on selected slots, wagering is 35x which isn’t amazing but isn’t a scam either. There was a small no deposit thing during a promo week too; the promos shift monthly so you’d want to check what’s live over on [url=https://innerlighthouseapp.com/]true fortune[/url] if you’re thinking about it.

    Minimum is ?20 I think, sign-up was maybe ten minutes with the ID upload. Debit card is what I use, Skrill and Neteller are supported and Bitcoin’s an option too for anyone who prefers it. Withdrawals via e-wallet landed in about 24 hours, bank transfer dragged to three days.

    What did irritate me: the verification wanted a second utility bill, which delayed my first payout by a couple of days. Live chat got there but it took two goes. Licensing-wise it’s and I checked before depositing, which is non-negotiable for me.

    They don’t have an app as far as I found, the responsive site does the job — works well enough on Android, but search is a bit clunky with one hand. I’ve not moved on, so says more than a rating would.

  6. 第 ThomasBlold页

    Интернет-магазин Бородатая Дверь https://beardeddoor.ru – профессиональный инструмент и оснастка для установки межкомнатных дверей. Посетите сайт и вы найдете – шаблоны, фрезы, оснастку и расходные материалы по выгодной цене. Доставка по России и СНГ.

  7. 第 Dennisral页

    Нефтегазопромысловое оборудование и запчасти https://kubanbur.ru. Посетите сайт Компании «КубаньБурМаш». Мы с 2012 года занимаемся изготовлением оборудования для бурения и ремонта нефтегазовых скважин. Узнайте о нас и нашей продукции подробнее.

发表回复