对齐方式
防火墙现在配置不能访问外网
设备情况:防火墙(拨号上网加DHCP)---交换机---PC
情况配置如下: 哪位大师给看看问题在哪儿
#
version 5.20, Release 5142P08
#
sysname H3C
#
undo voice vlan mac-address 00e0-bb00-0000
#
interzone policy default by-priority
#
nat address-group 1 192.168.100.2 192.168.100.254
nat address-group 2 192.168.10.2 192.168.10.254
nat address-group 3 192.168.123.2 192.168.123.254
nat address-group 4 192.168.199.2 192.168.199.254
#
domain default enable system
#
port-security enable
#
undo alg dns
undo alg rtsp
undo alg h323
undo alg sip
undo alg sqlnet
undo alg pptp
undo alg ils
undo alg nbt
undo alg msn
undo alg qq
undo alg tftp
undo alg sccp
undo alg gtp
#
session synchronization enable
#
password-recovery enable
#
acl number 2001
rule 0 permit source 192.168.10.0 0.0.0.255 fragment logging
rule 5 permit source 192.168.100.0 0.0.0.255 logging
rule 10 permit source 192.168.123.0 0.0.0.255 fragment logging
rule 15 permit source 192.168.199.0 0.0.0.255 fragment logging
#
vlan 1
#
vlan 2 to 4
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
pki domain default
crl check disable
#
dhcp server ip-pool 10
network 192.168.10.0 mask 255.255.255.0
gateway-list 192.168.10.1
dns-list 218.2.2.2 218.4.4.4
domain-name home
#
dhcp server ip-pool 100
network 192.168.100.0 mask 255.255.255.0
gateway-list 192.168.100.1
dns-list 218.2.2.2 218.4.4.4
domain-name boy
#
dhcp server ip-pool 123
network 192.168.123.0 mask 255.255.255.0
gateway-list 192.168.123.1
dns-list 218.2.2.2 218.4.4.4
domain-name CCTV
#
dhcp server ip-pool 199
network 192.168.199.0 mask 255.255.255.0
gateway-list 192.168.199.1
dns-list 218.2.2.2 218.4.4.4
domain-name any
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$pgBJwykwzLdmo5QoVqOptho6ButQoL2Y
authorization-attribute level 3
service-type telnet
service-type web
#
cwmp
undo cwmp enable
#
interface Dialer1
nat outbound 2001
link-protocol ppp
ppp chap user 18115816050
ppp chap password cipher $c$3$If6EV7LLQ2HI+9kNdjR5gWto5WlUIXNS
ppp pap local-user 18115816050 password cipher $c$3$miktvzchWqHSWekDWu15WTXs9QkFpnzK
ppp ipcp dns request
ip address ppp-negotiate
dialer user pppoeclient
dialer-group 1
dialer bundle 1
#
interface NULL0
#
interface GigabitEthernet0/0
port link-mode route
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/2
port link-mode route
#
interface GigabitEthernet0/3
port link-mode route
nat outbound 2001
ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet0/3.1
vlan-type dot1q vid 2
nat outbound 2001
ip address 192.168.100.1 255.255.255.0
#
interface GigabitEthernet0/3.2
vlan-type dot1q vid 3
nat outbound 2001
ip address 192.168.123.1 255.255.255.0
#
interface GigabitEthernet0/3.3
vlan-type dot1q vid 4
nat outbound 2001
ip address 192.168.199.1 255.255.255.0
#
interface GigabitEthernet0/4
port link-mode route
#
vd Root id 1
#
zone name Management id 0
priority 100
import interface GigabitEthernet0/0
zone name Local id 1
priority 100
zone name Trust id 2
priority 85
import interface GigabitEthernet0/3
import interface GigabitEthernet0/3.1
import interface GigabitEthernet0/3.2
import interface GigabitEthernet0/3.3
zone name DMZ id 3
priority 50
zone name Untrust id 4
priority 5
import interface Dialer1
import interface GigabitEthernet0/1
switchto vd Root
object network subnet 192.168.10.0/0.0.0.0
subnet 192.168.10.0 0.0.0.0
object network subnet 192.168.100.0/0.0.0.0
subnet 192.168.100.0 0.0.0.0
object network subnet 192.168.123.0/0.0.0.0
subnet 192.168.123.0 0.0.0.0
object network subnet 192.168.199.0/0.0.0.0
subnet 192.168.199.0 0.0.0.0
object network range 互通10
description 10.1
range 192.168.10.1 192.168.10.254
object network range 互通100
description 100.1
range 192.168.100.1 192.168.100.254
object network range 互通123
description 互通
range 192.168.123.1 192.168.123.254
object network range 互通199
description 互通
range 192.168.199.1 192.168.199.254
zone name Management id 0
ip virtual-reassembly
zone name Local id 1
ip virtual-reassembly
zone name Trust id 2
ip virtual-reassembly
zone name DMZ id 3
ip virtual-reassembly
zone name Untrust id 4
ip virtual-reassembly
interzone source Local destination Trust
rule 0 permit
source-ip any_address
destination-ip any_address
service any_service
rule enable
interzone source Local destination Untrust
interzone source Trust destination Local
rule 0 permit logging
source-ip any_address
destination-ip any_address
service any_service
rule enable
interzone source Trust destination Untrust
rule 0 permit logging
source-ip 互通10
source-ip 互通100
source-ip 互通123
source-ip 互通199
destination-ip any_address
service any_service
rule enable
interzone source Untrust destination Trust
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
dhcp enable
#
dialer-rule 1 ip permit
#
load xml-configuration
#
load tr069-configuration
#
user-interface con 0
user-interface vty 0 4
authentication-mode scheme
#
return
防火墙 拨号上网加DHCP加上网时间限制
交换机 VLAN(1-4)vlan_1---192.168.10.2 交换机2口trunk与防火墙3口连接
PC VLAN(3-4)DHCP自动获取
(0)
我的配置文件,不是很懂,求教高手
#
version 5.20, Release 5142P08
#
sysname H3C
#
undo voice vlan mac-address 00e0-bb00-0000
#
interzone policy default by-priority
#
nat address-group 1 192.168.100.2 192.168.100.254
nat address-group 2 192.168.10.2 192.168.10.254
nat address-group 3 192.168.123.2 192.168.123.254
nat address-group 4 192.168.199.2 192.168.199.254
#
domain default enable system
#
port-security enable
#
undo alg dns
undo alg rtsp
undo alg h323
undo alg sip
undo alg sqlnet
undo alg pptp
undo alg ils
undo alg nbt
undo alg msn
undo alg qq
undo alg tftp
undo alg sccp
undo alg gtp
#
session synchronization enable
#
password-recovery enable
#
acl number 2001
rule 0 permit source 192.168.10.0 0.0.0.255 fragment logging
rule 5 permit source 192.168.100.0 0.0.0.255 logging
rule 10 permit source 192.168.123.0 0.0.0.255 fragment logging
rule 15 permit source 192.168.199.0 0.0.0.255 fragment logging
#
vlan 1
#
vlan 2 to 4
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
pki domain default
crl check disable
#
dhcp server ip-pool 10
network 192.168.10.0 mask 255.255.255.0
gateway-list 192.168.10.1
dns-list 218.2.2.2 218.4.4.4
domain-name home
#
dhcp server ip-pool 100
network 192.168.100.0 mask 255.255.255.0
gateway-list 192.168.100.1
dns-list 218.2.2.2 218.4.4.4
domain-name boy
#
dhcp server ip-pool 123
network 192.168.123.0 mask 255.255.255.0
gateway-list 192.168.123.1
dns-list 218.2.2.2 218.4.4.4
domain-name CCTV
#
dhcp server ip-pool 199
network 192.168.199.0 mask 255.255.255.0
gateway-list 192.168.199.1
dns-list 218.2.2.2 218.4.4.4
domain-name any
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$pgBJwykwzLdmo5QoVqOptho6ButQoL2Y
authorization-attribute level 3
service-type telnet
service-type web
#
cwmp
undo cwmp enable
#
interface Dialer1
nat outbound 2001
link-protocol ppp
ppp chap user 18115816050
ppp chap password cipher $c$3$If6EV7LLQ2HI+9kNdjR5gWto5WlUIXNS
ppp pap local-user 18115816050 password cipher $c$3$miktvzchWqHSWekDWu15WTXs9QkFpnzK
ppp ipcp dns request
ip address ppp-negotiate
dialer user pppoeclient
dialer-group 1
dialer bundle 1
#
interface NULL0
#
interface GigabitEthernet0/0
port link-mode route
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/2
port link-mode route
#
interface GigabitEthernet0/3
port link-mode route
nat outbound 2001
ip address 192.168.10.1 255.255.255.0
#
interface GigabitEthernet0/3.1
vlan-type dot1q vid 2
nat outbound 2001
ip address 192.168.100.1 255.255.255.0
#
interface GigabitEthernet0/3.2
vlan-type dot1q vid 3
nat outbound 2001
ip address 192.168.123.1 255.255.255.0
#
interface GigabitEthernet0/3.3
vlan-type dot1q vid 4
nat outbound 2001
ip address 192.168.199.1 255.255.255.0
#
interface GigabitEthernet0/4
port link-mode route
#
vd Root id 1
#
zone name Management id 0
priority 100
import interface GigabitEthernet0/0
zone name Local id 1
priority 100
zone name Trust id 2
priority 85
import interface GigabitEthernet0/3
import interface GigabitEthernet0/3.1
import interface GigabitEthernet0/3.2
import interface GigabitEthernet0/3.3
zone name DMZ id 3
priority 50
zone name Untrust id 4
priority 5
import interface Dialer1
import interface GigabitEthernet0/1
switchto vd Root
object network subnet 192.168.10.0/0.0.0.0
subnet 192.168.10.0 0.0.0.0
object network subnet 192.168.100.0/0.0.0.0
subnet 192.168.100.0 0.0.0.0
object network subnet 192.168.123.0/0.0.0.0
subnet 192.168.123.0 0.0.0.0
object network subnet 192.168.199.0/0.0.0.0
subnet 192.168.199.0 0.0.0.0
object network range 互通10
description 10.1
range 192.168.10.1 192.168.10.254
object network range 互通100
description 100.1
range 192.168.100.1 192.168.100.254
object network range 互通123
description 互通
range 192.168.123.1 192.168.123.254
object network range 互通199
description 互通
range 192.168.199.1 192.168.199.254
zone name Management id 0
ip virtual-reassembly
zone name Local id 1
ip virtual-reassembly
zone name Trust id 2
ip virtual-reassembly
zone name DMZ id 3
ip virtual-reassembly
zone name Untrust id 4
ip virtual-reassembly
interzone source Local destination Trust
rule 0 permit
source-ip any_address
destination-ip any_address
service any_service
rule enable
interzone source Local destination Untrust
interzone source Trust destination Local
rule 0 permit logging
source-ip any_address
destination-ip any_address
service any_service
rule enable
interzone source Trust destination Untrust
rule 0 permit logging
source-ip 互通10
source-ip 互通100
source-ip 互通123
source-ip 互通199
destination-ip any_address
service any_service
rule enable
interzone source Untrust destination Trust
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
dhcp enable
#
dialer-rule 1 ip permit
#
load xml-configuration
#
load tr069-configuration
#
user-interface con 0
user-interface vty 0 4
authentication-mode scheme
#
return
(0)
暂无评论
看完头都晕了,为什么你每个接口都要做nat呢?其实只需要在互连网出口的地方做nat就可以了,把其它接口的 nat outbound 2001这个配置删除试试。
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论