tcp端口转发rinetd

debian/ubuntu下直接安装apt install rinetd配置文件在/etc/rinetd.conf配置格式bindaddress bindport connectaddress connectport如0.0.0.0 23333 1.1.1.1 22就是把所有访问到本机23333的TCP请求转发至1.1.1.1的22配置完systemctl restart rinetd即可

继续阅读 »

Debian/ubuntu配置网卡

/etc/network/interfaces[1] [2] iface [2] inet [3][1] 网卡模式 auto:开机自动使用 allow-hotplug:即插即用[2] 网卡设备名,如:eth0[3] 获取地址方式,如:动态直接跟dhcp静态 staticaddress 192.168.1.2/24gateway 192.168.1.1

继续阅读 »

Grub2 引导win7

setparams 'Windows 7' insmod part_msdos insmod ntfs insmod ntldr set root=(hd0,1) chainloader +1 boot其实能进linux时可以直接apt安装os-prober然后grub-update就完事了,可以自动识别到windows系统...

继续阅读 »

测试UDP端口连通性

我们知道,TCP端口通不通可以简单的用telnet IP Port来判断,但是udp不行,udp也有类似工具,叫netcat$ apt install netcat安装完成后用法$ netcat -vuz IP UDPPort

继续阅读 »