首页 > 其他分享 >ssgvip设置

ssgvip设置

时间:2022-11-30 09:13:11浏览次数:63  
标签:ssgvip xieyi vip vipport 设置 fh port

ssgvip.tpl

set service "{vipport}" protocol {xieyi} src-port 0-65535 dst-port {vipport}-{vip_hight_port}

set interface ethernet0/0 vip interface-ip  {vipport} "{vipport}" {lanip} manual

set policy from Untrust to Global any VIP(ethernet0/0) {vipport} permit

ssgvip.py

#encoding:utf-8
'''

'''
vipport='5000'
lanip='192.168.100.8'
vip_hight_port='5500'
xieyi='udp'
#——————————————————————————————————————————————————————
fh=open('ssgvip.tpl','r')
tpl=fh.read()
fh.close

cxt=tpl.format(vipport=vipport,lanip=lanip,vip_hight_port=vip_hight_port,xieyi=xieyi)
fh=open('SSGvip_{}cfg.txt'.format(vipport),'w')
fh.write(cxt)
fh.close




来自为知笔记(Wiz)

附件列表

     

    标签:ssgvip,xieyi,vip,vipport,设置,fh,port
    From: https://www.cnblogs.com/kaixin940/p/16937366.html

    相关文章