• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

F1000-AK115-双线接入,如何配置外网以及端口映射

2021-10-25提问
  • 1关注
  • 1收藏,2610浏览
粉丝:0人 关注:0人

问题描述:

设置列表

  • 有序列表
  • 无序列表

对齐方式

  • 靠左
  • 居中
  • 靠右

​请问如何配置双线接入需求是

192.168.2.100-192.168.2.199走PPPOE拨号上网,

192.168.2.200-192.168.2.254走固定IP,

目前固定IP上网正常。一旦pppoe拨号就上不了网。


另外第二个问题是192.168.2.202这个IP端口映射不生效,外网无法连接,但是在内网是正常可以连接的。​




组网及组网描述:

H3C
SECPATH F1000-AK115
Ver.A
Basic Version: 2.00 Extend Version: 2.00
7.1.064,Ess 9514P08
接入方式为固定IP+PPPOE拨号,附件是config配置文件。




最佳答案

粉丝:40人 关注:6人

配置上网,以下是部署要点,请参考:

1、配置上网接入部署,比如PPPOE\DHCP\静态IP

2、与外网互联的接口配置NAT地址转换。

3、配置默认路由指向到外网。

4、防火墙上涉及到的物理端口需加入安全域并放通安全策略或域间策略。

5、如有需求实现特定网段走特定出口,可以配置策略路由来实现。

6、如有需求将内部服务器映射到外网,需配置NAT server进行映射。

7、由于是防火墙,如有需求实现负载,可考虑使用出方向的负载均衡。


暂无评论

2 个回答
hackbiao 知了小白
粉丝:0人 关注:0人

#
version 7.1.064, Ess 9514P08
#
sysname H3C
#
clock timezone beijing add 08:00:00
clock protocol none
#
context Admin id 1
#
ip vpn-instance 1000mb
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
dialer-group 1 rule ip permit
dialer-group 2 rule ip permit
#
nat address-group 100 name 办公电脑
address 192.168.2.100 192.168.2.199
#
password-recovery enable
#
vlan 1
#
object-group ip address Server
security-zone Trust
0 network range 192.168.2.200 192.168.2.254
#
object-group ip address 内网用户地址
description 内网用户地址
security-zone Trust
0 network range 192.168.2.100 192.168.2.199
#
interface Dialer1
mtu 1492
ppp chap password cipher $c$3o+zyWx
ppp chap user CD0283391143522
ppp ipcp dns admit-any
ppp ipcp dns request
ppp pap local-user CD02833522 password cipher $c$3$aN2OeeVSkS9GRP
dialer bundle enable
dialer-group 2
dialer timer idle 0
dialer timer autodial 5
ip address ppp-negotiate
#
interface NULL0
#
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 fiber
#
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 route
#
interface GigabitEthernet1/0/4
port link-mode route
#
interface GigabitEthernet1/0/5
port link-mode route
#
interface GigabitEthernet1/0/6
port link-mode route
#
interface GigabitEthernet1/0/7
port link-mode route
duplex full
shutdown
ip binding vpn-instance 1000mb
pppoe-client dial-bundle-number 1
#
interface GigabitEthernet1/0/8
port link-mode route
description TO_LAN
ip address 192.168.10.254 255.255.255.0
nat outbound 3100
nat server protocol tcp global 218.89.240.141 1433 inside 192.168.2.117 1433
nat server protocol tcp global 218.89.240.141 2022 inside 192.168.2.252 22
nat server protocol tcp global 218.89.240.141 4502 4503 inside 192.168.2.252 4502 4503
nat server protocol tcp global 218.89.240.141 8078 inside 192.168.2.252 8078
nat server protocol tcp global 218.89.240.141 8082 8085 inside 192.168.2.202 8082 8085
nat server protocol tcp global 218.89.240.141 8089 inside 192.168.2.252 8089
nat server protocol tcp global 218.89.240.141 8092 8199 inside 192.168.2.202 8092 8199
nat server protocol tcp global 218.89.240.141 9999 inside 192.168.2.252 9999
nat server protocol tcp global 218.89.240.141 14800 14820 inside 192.168.2.252 14800 14820
nat server protocol tcp global 218.89.240.141 43388 inside 192.168.2.202 3389
nat server protocol udp global 218.89.240.141 5040 inside 192.168.2.252 5040
nat server protocol udp global 218.89.240.141 5066 inside 192.168.2.252 5066
nat server protocol udp global 218.89.240.141 16000 25000 inside 192.168.2.252 16000 25000
#
interface GigabitEthernet1/0/9
port link-mode route
bandwidth 50000
ip address XXX.XXX.XXX.XXX 255.255.255.128
nat outbound
nat server protocol tcp global 218.89.240.141 1433 inside 192.168.2.117 1433
nat server protocol tcp global 218.89.240.141 2022 inside 192.168.2.252 22
nat server protocol tcp global 218.89.240.141 4502 4503 inside 192.168.2.252 4502 4503
nat server protocol tcp global 218.89.240.141 8078 inside 192.168.2.252 8078
nat server protocol tcp global 218.89.240.141 8082 8085 inside 192.168.2.202 8082 8085
nat server protocol tcp global 218.89.240.141 8089 inside 192.168.2.252 8089
nat server protocol tcp global 218.89.240.141 8092 8199 inside 192.168.2.202 8092 8199
nat server protocol tcp global 218.89.240.141 9999 inside 192.168.2.252 9999
nat server protocol tcp global 218.89.240.141 14800 14820 inside 192.168.2.252 14800 14820
nat server protocol tcp global 218.89.240.141 43388 inside 192.168.2.202 3389
nat server protocol udp global 218.89.240.141 5040 inside 192.168.2.252 5040
nat server protocol udp global 218.89.240.141 5066 inside 192.168.2.252 5066
nat server protocol udp global 218.89.240.141 16000 25000 inside 192.168.2.252 16000 25000
#
security-zone name Local
#
security-zone name Trust
import interface GigabitEthernet1/0/8
#
security-zone name DMZ
#
security-zone name Untrust
import interface Dialer1
import interface GigabitEthernet1/0/7
import interface GigabitEthernet1/0/9
#
security-zone name Management
import interface GigabitEthernet1/0/0
import interface GigabitEthernet1/0/2
#
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 GigabitEthernet1/0/9 218.89.240.129
ip route-static 0.0.0.0 0 Dialer1
ip route-static 192.168.0.0 16 192.168.10.253
#
ssh server enable
#
acl basic 2000
rule 0 permit vpn-instance 1000mb source object-group 内网用户地址
#
acl advanced 3100
description LAN-NAT-LAN
rule 10 permit ip source 192.168.0.0 0.0.255.255 destination 192.168.0.0 0.0.255.255
#
domain system
#
aaa session-limit ftp 16
aaa session-limit telnet 16
aaa session-limit ssh 16
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$GaYHTcawYnBNvFdPeeKErO+A4mhLG/MBURfFKLLOR/H0xdVy4yH09L6i/gCxBX7Mlrhg==
service-type ssh terminal https
authorization-attribute user-role level-3
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
app-group p2p-youxi
description "User-defined application group"
include application 11Platform
include application 17173
include application 178Game
include application 4399
include application 52PK
include application 7k7k
include application 91Game
include application AnHeiXiYouJi
include application ArclivePlatform
include application BitTorrent
include application ChiBiZhiZhan
include application ChinaGameCenter
include application CrossFire
include application CSOL
include application DaHuaXiYou2
include application DaHuaXiYou3
include application DNF
include application DouZhanShen
include application FaceToFace
include application FanRenXiuZhen
include application GameDog
include application HaoFangFighting
include application HearthStone
include application iQiYiPPS
include application JiangShen
include application JingWuTuan
include application LeagueofLegends
include application Letv
include application MiniXiYou
include application OurGame
include application Popkart
include application QQFarm
include application QQGame
include application QQMaJiang
include application QQParkingSpace
include application QQPlatform
include application QQRanch
include application QQSanGuo
include application QQSpeed
include application QQUpdate
include application QQX5
include application QQYinSu
include application QQZiYouHuanXiang
include application QuanMinChuangTianXia
include application QuanMinXiYou
include application ReXueJiangHu
include application SanGuoSha
include application ShenZhiHaoJie
include application ShiJieOL
include application SuperRunning
include application Thunder
include application TianTianFuWeng
include application TianXia3
include application TongChengYou
include application TuLongZhiRen
include application VSPlatform
include application Weebia
include application XunLeiKanKan
include application YouXiaWang
include application ZhanJianDiGuo
#
app-group 下载
description 用户自定义应用组
#
apr signature auto-update
update schedule daily start-time 02:00:00 tingle 120
#
ip http port 8181
ip http enable
ip https port 1443
ip https enable
webui log enable
#
url-filter signature auto-update
update schedule daily start-time 02:00:00 tingle 120
#
ips signature auto-update
update schedule daily start-time 02:00:00 tingle 120
#
traffic-policy
rule name 2
disable
action qos profile 2M
source-address address-set 内网用户地址
profile name 2M
bandwidth downstream maximum 50000
bandwidth upstream maximum 50000
bandwidth upstream maximum per-ip 5000
bandwidth downstream maximum per-ip 5000
#
uapp-control
#
security-policy ip
rule 0 name local-to-any
action pass
source-zone Local
destination-zone Local
destination-zone Trust
destination-zone DMZ
destination-zone Untrust
destination-zone Management
rule 1 name any-to-local
action pass
source-zone Trust
source-zone DMZ
source-zone Untrust
source-zone Management
destination-zone Local
rule 4 name deny-p2p-youxi
disable
counting enable
source-zone Trust
destination-zone Untrust
source-ip 内网用户地址
app-group p2p-youxi
rule 2 name t-to-u
action pass
source-zone Trust
destination-zone Untrust
rule 3 name u-to-t
action pass
source-zone Untrust
destination-zone Trust
rule 5 name t-to-t
action pass
source-zone Trust
destination-zone Trust
#
anti-virus signature auto-update
update schedule daily start-time 02:00:00 tingle 120
#
return

暂无评论

粉丝:4人 关注:0人

单WAN测试PPPOE拨号没问题后,双WAN上网开启保存接口上一跳在外网口下配置ip last-hop hold测试,不同内网地址走不通wan口需要做策略路由。

端口映射不成功,确保服务器到FW的WAN口地址可达,外部端口未占用,检查配置是否有问题。

暂无评论

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明