I am on Debian 11 (bullseye - oldstable) with KDE.
Boring background:
I am required to add custom network interface and route: https://github.com/xjasonlyu/tun2socks/wiki/Examples
Why? Because beside my wg0 (Wireguard) tunnel which is used for all network traffic, I have used Wireguard to setup secondary wg1 interface (which is routing to different remote server). Now i want to use this secondary wg1 interface for my secondary web browser. tun2socks is supposed to help me do that. Yet it does not seem to setup routes/interface for me and as linked above i may need to do it manually.
Question:
Since i do not understand networking and is likely i will mess it, i want to ask if you can tell me the commands to A) backup and B) restore my current working network configuration before executing commands linked under URL above.
I am unsure if "nmcli network off && nmcli network on" would reset the configuration. Thank youip tuntap add ...
ip addr add ...
ip link set ...
ip route del ...
ip route add ...