[Feedback on issues] 如何永久设置net.ipv4.ip_forward=1
Tofloor
poster avatar
autumner
deepin
2025-07-24 09:57
Author

在那个文件里可以永久设置net.ipv4.ip_forward=1net.ipv4.ip_forward=1

Reply Favorite View the author
All Replies
neko
deepin
Ecological co-builder
Q&A Team
2025-07-24 10:05
#1

写到/etc/sysctl.d/目录下的.conf文件里,可以自己创建。

#复制下面内容到终端执行
cat << EOF | sudo tee /etc/sysctl.d/99-ip_forward.conf
net.ipv4.ip_forward=1
EOF
Reply View the author
autumner
deepin
2025-07-24 10:05
#2
neko

写到/etc/sysctl.d/目录下的.conf文件里,可以自己创建。

#复制下面内容到终端执行
cat << EOF | sudo tee /etc/sysctl.d/99-ip_forward.conf
net.ipv4.ip_forward=1
EOF

收到,谢谢

Reply View the author
zccrs
deepin
2025-07-24 14:10
#3

这类问题问ai最合适了

Reply View the author