上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 25 下一页
摘要: 1、下面是利用iptables以及ipset 手动制造敲门来访问ssh 22端口,实际上下面的iptables按顺序来敲tcp 1989、2016、1864端口三条规则可以改为1条icmp规则来简化访问。 ipset create knock hash:ip timeout 10 ipset cre 阅读全文
posted @ 2020-12-05 22:23 helloweifa 阅读(1492) 评论(0) 推荐(0) 编辑
摘要: 1、问题的由来:如何设定debian下 dhcp-client获取地址以及默认路由的优先级,看了下man interfaces手册,找到了答案,在dhcp配置节说明里,直接加上metric 数字 在线man interfaces手册:https://manpages.debian.org/buste 阅读全文
posted @ 2020-12-05 00:15 helloweifa 阅读(383) 评论(1) 推荐(0) 编辑
摘要: 参考:批处理中setlocal enabledelayedexpansion的作用详细整理 https://www.jb51.net/article/29323.htm gnb项目的windows启动(涉及cmd中的延迟变量原理):.\sh\gnb_windows.cmd 1445 @echo of 阅读全文
posted @ 2020-12-04 19:42 helloweifa 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: 新建vi /etc/rc.local内容2行: #!/bin/sh -e exit 0 chmod u+x /etc/rc.local 开机启动 root@debian10:~# systemctl enable rc.local 这一步不成功,实际上这一步也不影响reboot后,rc.local的 阅读全文
posted @ 2020-12-04 04:44 helloweifa 阅读(1355) 评论(0) 推荐(0) 编辑
摘要: 1、临时禁用 echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6 临时禁用所有接口的ipv6 echo "1" > /proc/sys/net/ipv6/conf/eth0/disable_ipv6 临时禁用eth0接口的ipv6 2、永久禁用 v 阅读全文
posted @ 2020-12-04 02:12 helloweifa 阅读(3042) 评论(0) 推荐(0) 编辑
摘要: 1、临时生效 可以查看系统的forward状态 echo /proc/sys/net/ipv4/ip_forward ,然后echo 1 > /proc/sys/net/ipv4/ip_forward开启 2、永久生效 当然另外一种方法:vi /etc/sysctl.conf找到net.ipv4.i 阅读全文
posted @ 2020-12-03 18:12 helloweifa 阅读(548) 评论(0) 推荐(0) 编辑
摘要: centos yum install psmisc debian apt install psmisc 阅读全文
posted @ 2020-12-02 23:45 helloweifa 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 默认debian 9下ssh版本为7.4p1,在这个版本里,默认不允许root用户登陆,同时在配置文件/etc/ssh/sshd_config中也没有允许root用户登陆的配置项 PermitRootLogin yes 说明,需要自行添加这一项,如下: systemctl restart sshd服 阅读全文
posted @ 2020-12-02 23:28 helloweifa 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 这里没有debian9的安装界面,放一张debian10的界面 1、分区 2、插入多余的cd或dvd安装软件 因为没有cd或dvd,所以选择从网路安装,选择最近的mirror站点 选清华mirror站点提示: 接着选中科大 同样出错 结果证明是snat上网出现问题。 配置可以上网后。如下: 选择安装 阅读全文
posted @ 2020-12-02 22:09 helloweifa 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 1、不借助额外的软件 将443端口的数据转发到8006端口 iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8006 可选————禁止访问8006端口 iptables -A INPUT -i ! lo 阅读全文
posted @ 2020-12-02 15:19 helloweifa 阅读(434) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 25 下一页