P
P
pcman202021-08-20 19:46:40
linux
pcman20, 2021-08-20 19:46:40

How to return everything back after these commands!?

I led these commands to connect to vpn, since they said that it does not support ipv6, tell me how to get everything back?

sudo nano /etc/sysctl.conf

net.ipv6.conf.all.disable_ipv6 =3D 1

net.ipv6.conf.default.disable_ipv6 =3D 1

net.ipv6.conf.lo.disable_ipv6 =3D 1

net.ipv6.conf. tun0.disable_ipv6=3D 1

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexander Falaleev, 2021-08-20
@suffix_ixbt

Before doing anything in any *.conf file, you should always make a copy of it nearby - for example, old_*.conf.
This is the elemental truth. Now do you understand why?

K
ky0, 2021-08-20
@ky0

The commands you specified do not do anything immediately, to apply them you need to re-read the config with the command sysctl -p. Just edit the file, removing unnecessary lines.

D
Drno, 2021-08-20
@Drno

So you just turned off ipv6 ... google how to turn it back on)

P
pcman20, 2021-08-21
@pcman20

It would be nice if anyone has debian, send me this file

C
CityCat4, 2021-08-22
@CityCat4

Well, first of all, the line

net.ipv6.conf.all.disable_ipv6=3D 1

this is either an insertion error or nonsense, because "3D" is the code for the "=" character, and secondly, editing this file does nothing :) This is a settings file for sysctl, it is applied either on reboot or manually.
If you didn't apply it manually (using the sysctl -p command), then nothing has changed in the system :) just remove the nafig lines so that they are not read at the next boot (they most likely will not be applied anyway due to a syntax error)

J
justhostRU, 2021-08-22
@justhostRU

if we are talking about new lines in the file, just delete them
, save the file,
reboot the system
or sysctl -p but this was already advised above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question