2019年6月26日星期三

Debian9 开启 FullCone NAT

上一篇是Centos 7 开启fullcone nat:
https://techshd.blogspot.com/2019/06/centos7-fullcone-nat.html

这一篇讲下Debian 9的,步骤几乎是一样的,重复的就不写的,这里提3点要attention的。

第一点是debian提供了多个版本的源码包,所以只要指定当前版本号的源码包安装就可以了,比如我的内核版本是4.9.0-9-amd64,那安装下面的包就有内核源码了。

apt install linux-headers-4.9.0-9-amd64 -y

第二点是依赖包,按下面的命令提前装上就行。

apt install build-essential autoconf libtool bison flex libnftnl-dev libmnl-dev -y

第三点切换到iptables v1.6

git checkout 54c262605c54a18a1c30cd41d47decaca5e7182e



没有评论:

发表评论

更换阿里云源

CentOS 7: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo http:/...