
Ubuntu日本語フォーラム

ログインしていません。
http://arekorebibouroku.hateblo.jp/entry/2016/09/29/115434
を参考に作業をしようとしているのですが、具体的にどんなことをすればいいのかわからないため、お伺いします。
1。「管理者権限で/etc/sysctl.confをエディタで開き」とあるのですが、「/etc/sysctl.conf」を開くとはどういうことでしょうか?
端末にこれを入力することでしょうか?
2。「エディタで開く」ですが、エディタとは、terapadやメモ帳などを指すようですが、これに
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
を入力して、何に追加すればよいのでしょうか?
これをエディタに書き込んでどうすればいいですか?
よろしくおねがいします。
オフライン
quae による投稿:
「管理者権限で/etc/sysctl.confをエディタで開き」とあるのですが、「/etc/sysctl.conf」を開くとはどういうことでしょうか?
端末から管理者権限でファイル「sysctl.conf」を開いて編集するってことでしょう。
例えばgeditを使うならsudo gedit /etc/sysctl.confです。パスワードを求められるから入力すればファイルが開く。
オフライン
開くことができました。
ありがとうございます。
次の問題なのですが、
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
をどこに加えればいいのでしょうか?
それっぽいところをコピーしました。
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1
###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
オフライン
こんにちは
quae による投稿:
それっぽいところをコピーしました。
全部rem文(説明)になっているようですね。
また重複した箇所がないようです。
したがって、
opanchi_1963 による投稿:
例えばgeditを使うならsudo gedit /etc/sysctl.confです。パスワードを求められるから入力すればファイルが開く。
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
を文章の一番下にコピーして、保存すれば良いと思います。
オフライン
その記事、今では古いですよ。
2017年後半から IPv6 を無効にすることは、マイクロソフトでも非推奨となっています。
西日本では NTT WEST が、IPv6 を無効にしていると繋がりません(IPv4 回線であっても)。
サーバ側が変わってきているということです。
しかも Ubuntu14.04の記事ですね。16.04から起動時間もかなり短縮されています。
その辺りを理解していないと、高速化どころか低速化してしまいかねません。
オフライン