摘要: 1.使用ASDM进入到配置页面,点开NAT Rules,然后新增Network Object,NAT选项如下图所示设定。 下图设定外网IP映射到内网IP地址192.168.104.2,协议单独使用TCP-smtp。 2.设定防火墙,点开Access Rules,添加Outside进入到192.168.104.2的策略。 如下图所示,开放连接到104.2的SMTP端口权限。 阅读全文
posted @ 2020-04-16 21:42 崇尚技术 阅读(1480) 评论(0) 推荐(0)
摘要: 一.在没有使用证书的情况下每次连接VPN都会出现如下提示 ASA Version: 8.4.(1) ASDM Version: 6.4.(7) 命令 在 ASA 上,可以在命令行中使用若干 show 命令以验证证书的状态。 show crypto ca certificates命令用于查看关于您的证 阅读全文
posted @ 2020-04-16 21:40 崇尚技术 阅读(996) 评论(0) 推荐(0)
摘要: 1.进入到Configuration→firewall→NAT Rules画面。 2.点“services”添加服务端口,此案例添加TCP 1443和UDP 1443端口映射 3.添加“Network Object NAT Rule” 阅读全文
posted @ 2020-04-16 21:39 崇尚技术 阅读(902) 评论(0) 推荐(0)
摘要: 仅仅做个笔记,熟悉的人请飘过 一、管理员的形式进入命令行,pip install pipenv 当然了,在这之前需要先把python环境装好。 二、进入项目文件夹,执行:pipenv install 绑定项目 三、激活项目的虚拟环境,执行:pipenv shell 四、查看在项目里有哪些包,执行: pip list 五、安装flask,执行:pipenv in... 阅读全文
posted @ 2019-07-02 22:07 崇尚技术 阅读(4821) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography; namespace SHA加密练习1{ class Program { static void Main(string[] args) ... 阅读全文
posted @ 2019-03-04 20:31 崇尚技术 阅读(341) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography; namespace MD5加密练习1{ class Program { static void Main(string[] args)... 阅读全文
posted @ 2019-03-04 20:15 崇尚技术 阅读(161) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO; namespa... 阅读全文
posted @ 2019-03-02 10:44 崇尚技术 阅读(530) 评论(0) 推荐(0)
摘要: DataGridView控件中的各种事件都无法直接响应Cell中内容的变化,包括KeyPress等事件,可以采用下面方法 无法响应Cell中的回车键 private void dataGridViewBarcode_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { if (e.C... 阅读全文
posted @ 2019-03-01 22:02 崇尚技术 阅读(1156) 评论(0) 推荐(0)
摘要: 1 Aspose.Cells.License li = new Aspose.Cells.License(); 2 li.SetLicense("Aspose.Cells.lic"); 3 Aspose.Cells.Workbook wk = new Aspose.Cells.Workbook(); 4 W... 阅读全文
posted @ 2019-02-28 21:37 崇尚技术 阅读(1585) 评论(0) 推荐(1)
摘要: C# -- 文件的压缩与解压(GZipStream) 文件的压缩与解压 需引入 System.IO.Compression; 1.C#代码(入门案例) 1 Console.WriteLine("压缩文件..............."); 2 using (FileStream fr = File.OpenRead("d:\\test.txt"... 阅读全文
posted @ 2019-02-27 22:12 崇尚技术 阅读(621) 评论(0) 推荐(0)