自 Fedora 16 或 17 起不再有文件/etc/sysctl.conf
。我该如何设置net.ipv4.ip_forward = 1
?
答案1
我安装了 Fedora 19。它有/etc/sysctl.conf 和/etc/sysctl.d。
$ cat /etc/sysctl.conf
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).