快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

JuniperSRXFilter-BasedForwarding-创新互联

就是策略路由

创新互联建站自2013年创立以来,先为蒙城等服务建站,蒙城等地企业,进行企业商务咨询服务。为蒙城企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

1) 创建routing-instance(SP1,SP2),instance-type为fowarding

edit routing-instance [SP1] instance-type forwading

    set routing-options static route 0/0 nex-hop 202.100.1.1

edit routing-instance [SP2] instance-type forwading

    set routing-options static route 0/0 nex-hop 202.100.2.1

2)创建firewall filter

edit friewall filter [Inside1] term [1]

    set from source-address 10.1.1.0/24

    set then routing-instance SP1

    set term [Default-Permit-All] then accept

set firewall filter [Inside1] term [1] from source-address 10.1.1.0/24

set firewall filter [Inside1] term [1] from source-port xxxx

set firewall filter [Inside1] term [1] destination-address x.x.x.x/x

set firewall filter [Inside1] term [1] destination-port xxxx

set firewall filter [Inside1] term [1] then routing-instance SP1

set firewall filter [Inside1] term [Default-Permit] then accept

edit firewall filter [Inside2] term [2]

    set from source-address

    set then routing-instance SP2

    set term [Default-Permit-All] then accept

3)接口 调用filter

set interface ge-0/0/2.0 family inet filter input Inside1

set interfaes ge-0/0/3.0 family inet filter input Inside2

4)合并路由表

run show route   //查看全局路由表中,是没有前面定义的routing-instance中的路由的

show routing-instances

edit routing-options

    set interface-routes rib-group inet [Policy-Routing]

    edit rib-groups [Policy-Routing]

      set import-rib [inet.0 SP1.inet.0 SP2.inet.0]

run show route    //查看合并后的路由表

5)创建Zone间策略:Security Policis(放行流量Inside1->Outside;Inside2->Outside)

set security policies from-zone Inside1 to-zone Outside policy Default-Permit-All

    set match source-address any

    set match destination-address any

    set match application any

    set then permit

set security policies from-zone Inside2 to-zone Outside policy Default-Permit-All

    set match sourc-address any

    set match destination-address any

    set match application-address any

    set then permit

#show security policies

#run show security flow session

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


文章标题:JuniperSRXFilter-BasedForwarding-创新互联
网页网址:http://6mz.cn/article/hgehj.html

其他资讯