防火墙做dhcp,终端接防火墙获取不到地址(附防火墙配置文件)
sysname FW
#
dhcp enable
#
dns server 114.114.114.114
dns server 8.8.8.8
dns server 202.103.224.68
dns server 202.103.225.68
#
password-recovery enable
#
vlan 1
#
vlan 100
description inside
#
vlan 200
description outside
#
dhcp server ip-pool vlan100
gateway-list 192.168.70.254
network 192.168.70.0 mask 255.255.255.0
dns-list 202.103.224.68 202.103.225.68
#
dhcp server ip-pool vlan200
gateway-list 172.16.70.254
network 172.16.70.0 mask 255.255.255.0
dns-list 202.103.224.68 202.103.225.68
#
controller Cellular1/0/0
#
interface NULL0
#
interface Vlan-interface100
ip address 192.168.70.254 255.255.255.0
#
interface Vlan-interface200
ip address 172.16.70.254 255.255.255.0
# interface GigabitEthernet1/0/0 port link-mode route combo enable copper ip address 192.168.0.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode route combo enable copper ip address 219.159.107.252 255.255.255.128 nat outbound # interface GigabitEthernet1/0/2 port link-mode route ip address 192.168.1.1 255.255.255.0 # interface GigabitEthernet1/0/3 port link-mode bridge port access vlan 100 # interface GigabitEthernet1/0/4 port link-mode bridge port access vlan 100 # interface GigabitEthernet1/0/5 port link-mode bridge port access vlan 100 # interface GigabitEthernet1/0/6 port link-mode bridge port access vlan 100 # interface GigabitEthernet1/0/7 port link-mode bridge port access vlan 100 # interface GigabitEthernet1/0/8 port link-mode bridge port access vlan 100 # interface GigabitEthernet1/0/9 port link-mode bridge port access vlan 100 # interface GigabitEthernet1/0/10 port link-mode bridge port access vlan 200 # interface GigabitEthernet1/0/11 port link-mode bridge port access vlan 200 # security-zone name Local # security-zone name Trust # security-zone name DMZ # security-zone name Untrust import interface GigabitEthernet1/0/1 # security-zone name Management import interface GigabitEthernet1/0/0 import interface GigabitEthernet1/0/2 # security-zone name inside import interface GigabitEthernet1/0/3 vlan 100 import interface GigabitEthernet1/0/4 vlan 100 import interface GigabitEthernet1/0/5 vlan 100 import interface GigabitEthernet1/0/6 vlan 100 import interface GigabitEthernet1/0/7 vlan 100 import interface GigabitEthernet1/0/8 vlan 100 import interface GigabitEthernet1/0/9 vlan 100 import vlan 100 # security-zone name link_intrnet import interface GigabitEthernet1/0/10 vlan 200 import interface GigabitEthernet1/0/11 vlan 200 import vlan 200 # scheduler logfile size 16 # line class aux user-role network-operator # line class console authentication-mode scheme user-role network-admin # line class vty user-role network-operator # line aux 0 user-role network-admin # line con 0 user-role network-admin # line vty 0 63 authentication-mode scheme user-role network-admin # ip route-static 0.0.0.0 0 219.159.107.129 # ssh server enable # arp ip-conflict log prompt # domain system # domain default enable system # role name level-0 description Predefined level-0 role # role name level-1 description Predefined level-1 role # role name level-2 description Predefined level-2 role # role name level-3 description Predefined level-3 role # role name level-4 description Predefined level-4 role # role name level-5 description Predefined level-5 role # role name level-6 description Predefined level-6 role # role name level-7 description Predefined level-7 role # role name level-8 description Predefined level-8 role # role name level-9 description Predefined level-9 role # role name level-10 description Predefined level-10 role # role name level-11 description Predefined level-11 role # role name level-12 description Predefined level-12 role # role name level-13 description Predefined level-13 role # role name level-14 description Predefined level-14 role # user-group system # local-user admin class manage password hash $h$6$FLtxI4pjP8VjQfg9$wKbY+cAWDKJ7GuzfG2+oPSGKDZtgviBBlHiCNWURf+tFfJNStV5iykuhyz8LTzPvtPpDkkI2u7WWhNNY0tZi9g== service-type ssh terminal https authorization-attribute user-role level-3 authorization-attribute user-role network-admin authorization-attribute user-role network-operator # ipsec logging negotiation enable # ike logging negotiation enable # ip https enable # loadbalance isp file flash:/lbispinfo_v1.5.tp # security-policy ip rule 0 name "any to local" action pass logging enable counting enable destination-zone Local rule 1 name "local to any" action pass logging enable counting enable source-zone Local rule 2 name inside_link_intrnet_2_IPv4 action pass logging enable counting enable source-zone inside destination-zone link_intrnet rule 3 name link_intrnet_inside_3_IPv4 action pass logging enable counting enable source-zone link_intrnet destination-zone inside rule 6 name link_intrnet_Any_6_IPv4 action pass logging enable counting enable source-zone link_intrnet rule 7 name Any_link_intrnet_7_IPv4 action pass logging enable counting enable destination-zone link_intrnet rule 8 name link_intrnet_link_intrnet_8_IPv4 action pass logging enable counting enable source-zone link_intrnet destination-zone link_intrnet rule 9 name inside_inside_9_IPv4 action pass logging enable counting enable source-zone inside destination-zone inside # cloud-management server domain opstunnel-seccloud.h3c.com # return
(0)
最佳答案
您好,未看到配置文件,参考配置指导吧
本案例适用于软件平台为Comware V7系列防火墙:F100-X-G2、F1000-X-G2、F100-X-WiNet、F1000-AK、F10X0等。
注:本案例是在F100-C-G2的Version 7.1.064, Release 9510P08版本上进行配置和验证的。
将防火墙部署在互联网出口,使用固定IP地址线路接入互联网。运营商提供的IP地址为198.76.28.30/30,网关为198.76.28.29,DNS地址为114.114.114.114。初步规划防火墙使用3接口接入运营商,使用4接口连接内部网络,内部网络使用192.168.10.0网段,要求内网终端可以自动获取到地址并可以访问互联网。
#将1/0/3设置为外网接口并设置IP地址。
<H3C>system-view
[H3C]interface GigabitEthernet 1/0/3
[H3C-GigabitEthernet1/0/3]ip address 198.76.28.30 255.255.255.252
[H3C-GigabitEthernet1/0/3]quit
#配置内网接口为1/0/4接口并指定IP地址为192.168.10.1。
[H3C]interface GigabitEthernet 1/0/4
[H3C-GigabitEthernet1/0/4] ip address 192.168.10.1 255.255.255.0
[H3C-GigabitEthernet1/0/4] quit
#进入1/0/3接口配置NAT动态地址转换。
[H3C]interface GigabitEthernet 1/0/3
[H3C-GigabitEthernet1/0/3]nat outbound
[H3C-GigabitEthernet1/0/3]quit
#配置默认路由,下一跳为外网网关地址。
[H3C]ip route-static 0.0.0.0 0 198.76.28.29
#将1/0/3外网接口加入Untrust区域。
[H3C]security-zone name Untrust
[H3C-security-zone-Untrust]import interface GigabitEthernet 1/0/3
[H3C-security-zone-Untrust]quit
#将1/0/4内网接口加入Trust区域。
[H3C]security-zone name Trust
[H3C-security-zone-Trust]import interface GigabitEthernet 1/0/4
[H3C-security-zone-Trust]quit
防火墙目前版本存在两套安全策略,请在放通安全策略前确认设备运行那种类型的安全策略?以下配置任选其一。
[H3C]display cu | in security-policy
security-policy disable
配置安全策略将Trust到Untrust域内网数据放通
#创建对象策略pass。
[H3C]object-policy ip pass
[H3C-object-policy-ip-pass] rule 0 pass
[H3C-object-policy-ip-pass]quit
创建Trust到Untrust域的域间策略调用pass策略。
[H3C]zone-pair security source Trust destination Untrust
[H3C-zone-pair-security-Trust-Untrust]object-policy apply ip pass
[H3C-zone-pair-security-Trust-Untrust]quit
配置安全策略将Trust到Local域、Local到Trust、Local到Untrust域数据全放通策略
#创建Trust到Local域的域间策略调用pass策略。
[H3C]zone-pair security source Trust destination Local
[H3C-zone-pair-security-Trust-Local]object-policy apply ip pass
[H3C-zone-pair-security-Trust-Local]quit
#创建Local到Trust域的域间策略调用pass策略。
[H3C]zone-pair security source Local destination Trust
[H3C-zone-pair-security-Local-Trust]object-policy apply ip pass
[H3C-zone-pair-security-Local-Trust]quit
#创建Local到Untrust域的域间策略调用pass策略。
[H3C]zone-pair security source Local destination Untrust
[H3C-zone-pair-security-Local-Untrust]object-policy apply ip pass
[H3C-zone-pair-security-Local-Untrust]quit
[H3C]display cu | in security-policy
security-policy ip
创建安全策略并放通local到trust和trust到local的安全策略。
[H3C]security-policy ip
[H3C-security-policy-ip]rule 10 name test
[H3C-security-policy-ip-10-test]action pass
[H3C-security-policy-ip-10-test]source-zone local
[H3C-security-policy-ip-10-test]source-zone Trust
[H3C-security-policy-ip-10-test]source-zone Untrust
[H3C-security-policy-ip-10-test]destination-zone local
[H3C-security-policy-ip-10-test]destination-zone Trust
[H3C-security-policy-ip-10-test]destination-zone Untrust
[H3C-security-policy-ip-10-test]quit
#开启DHCP服务并指定动态下发的地址以及网关等参数。
[H3C]dhcp enable
[H3C]dhcp server ip-pool 1
[H3C-dhcp-pool-1]network 192.168.10.0 mask 255.255.255.0
[H3C-dhcp-pool-1]gateway-list 192.168.10.1
[H3C-dhcp-pool-1]dns-list 114.114.114.114 8.8.8.8
[H3C-dhcp-pool-1]quit
注:DNS服务器地址优先设置当地运营商提供的DNS服务器地址,如果没有提供可以设置114.114.114.114或8.8.8.8等DNS服务器地址。
(0)
配置关键点
1、 除了LoopBack接口外,防火墙的其它所有接口都必须加入到Zone下;
2、 必须给SecPath防火墙某个接口配置dhcp select interface,否则接口下的设备
无法自动获取地址;
3、 SecPath防火墙上DHCP服务默认开启
(0)
已经加了zone
第二点没有
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
选择了文件,发不出来
复制进来的排版很乱
太乱了,前面dhcp的配置没问题,估计还是策略的问题
策略放的允许 security-zone name inside import interface GigabitEthernet1/0/3 vlan 100 import interface GigabitEthernet1/0/4 vlan 100 import interface GigabitEthernet1/0/5 vlan 100 import interface GigabitEthernet1/0/6 vlan 100 import interface GigabitEthernet1/0/7 vlan 100 import interface GigabitEthernet1/0/8 vlan 100 import interface GigabitEthernet1/0/9 vlan 100 import vlan 100 # security-zone name link_intrnet import interface GigabitEthernet1/0/10 vlan 200 import interface GigabitEthernet1/0/11 vlan 200 import vlan 200 # security-policy ip rule 0 name "any to local" action pass logging enable counting enable destination-zone Local rule 1 name "local to any" action pass logging enable counting enable source-zone Local rule 2 name inside_link_intrnet_2_IPv4 action pass logging enable counting enable source-zone inside destination-zone link_intrnet rule 3 name link_intrnet_inside_3_IPv4 action pass logging enable counting enable source-zone link_intrnet destination-zone inside rule 6 name link_intrnet_Any_6_IPv4 action pass logging enable counting enable source-zone link_intrnet rule 7 name Any_link_intrnet_7_IPv4 action pass logging enable counting enable destination-zone link_intrnet rule 8 name link_intrnet_link_intrnet_8_IPv4 action pass logging enable counting enable source-zone link_intrnet destination-zone link_intrnet rule 9 name inside_inside_9_IPv4 action pass logging enable counting enable source-zone inside destination-zone inside
手动配置静态IP 看看到防火墙上的网关通吗
不通
那还是安全域和安全策略的问题 检查一下吧