Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mzz2017 committed Feb 26, 2023
1 parent e0cec18 commit 52708d5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
2 changes: 1 addition & 1 deletion config/desc.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var GlobalDesc = Desc{
"check_interval": "Interval of connectivity check for TCP and UDP",
"check_tolerance": "Group will switch node only when new_latency <= old_latency - tolerance.",
"lan_interface": "The LAN interface to bind. Use it if you only want to proxy LAN instead of localhost.",
"lan_nat_direct": "[Deprecated] SNAT for incoming connection to avoid MAC learning.\nAlways set it true if you are NOT using dae as a transparent bridge, but will reduce forwarding performance for direct traffic in LAN mode.\nThis option does not affect direct traffic performance of WAN.",
"lan_nat_direct": "[Deprecated] SNAT for incoming connection to avoid redirects.\nAlways set it true if you are NOT using dae as a transparent bridge, but will reduce forwarding performance for direct traffic in LAN mode.\nThis option does not affect direct traffic performance of WAN.",
"wan_interface": "The WAN interface to bind. Use it if you want to proxy localhost.",
"allow_insecure": "Allow insecure TLS certificates. It is not recommended to turn it on unless you have to.",
"dial_mode": `Optional values of dial_mode are:
Expand Down
36 changes: 29 additions & 7 deletions docs/getting-started/kernel-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ Various Linux distributions have different methods to upgrade the Linux kernel.
> **Note**
> Since `dae` is builts with `eBPF`, your host must meet the minimum Kernel version, `>= 5.8` for dae to properly running.
### Upgrade Kernel on Debian-based Linux
### Upgrade Kernel on Ubuntu

Debian-based Linux distribution users can upgrade their Linux kernel upgrading the `linux-image-generic` to a desired version by making use of the [mainline](https://github.com/pimlie/ubuntu-mainline-kernel.sh) tool. It will update both `linux-image-generic` and `linux-headers-generic`.
Ubuntu users can upgrade their Linux kernel upgrading the `linux-image-generic` to a desired version by making use of the [mainline](https://github.com/pimlie/ubuntu-mainline-kernel.sh) tool. It will update both `linux-image-generic` and `linux-headers-generic`.

```bash
sudo apt-add-repository -y ppa:cappelikan/ppa
Expand All @@ -44,18 +44,37 @@ reboot
uname -r
```

### Upgrade Kernel on other Debian-based Linux

Debian-based distributions like armbian can install a specific version of Kernel on their system. You can run the following command-line on your Linux terminal to install any specific version kernel on your Linux system. After the installation is done, reboot your system to get the desired kernel on your Linux system.

```shell
# Sync databases.
sudo apt update
# Search available kernel versions.
apt-cache search linux-image
# Install specific image.
sudo apt install <specific-linux-image>
```

Reboot to take effect:

```shell
sudo reboot
uname -r
```

### Upgrade kernel on RedHat and Fedora Linux

Fedora, RedHat, and RedHat-based Linux distribution users can upgrade their Linux kernel manually by downloading the kernel from the repository.

Fedora and RedHat Linux users can install a specific version of Kernel on their system. You can run the following command-line on your Linux terminal to install any specific version kernel on your Linux system. After the installation is done, reboot your system to get the desired kernel on your Linux system.

```bash
sudo yum update kernel
sudo yum install kernel-{version}
sudo yum install kernel
```

Reboot to take effect
Reboot to take effect:

```bash
sudo reboot
Expand All @@ -69,10 +88,13 @@ Arch and Arch-based Linux distributions have a `dynamic` variety of Linux kernel
Manjaro and other Arch Linux distributions often offer kernel updates and upgrades via the conventional update manager. When you run the system updater on the Linux system, it checks for the latest kernels. You can use the following `pacman` command to check for the latest kernel on Arch Linux distributions.

```bash
sudo pacman -Syu
# Search available kernel images.
pacman -Ss ^linux$
# Install specific kernel image.
pacman -S <specific-linux-image>
```

If it finds a new kernel, it will notify you to download and install it. You can choose whether you want to get the latest kernel or not. Once you agree to install, reboot your system after the installation is finished. Then, you can check the kernel version to ensure whether the kernel is upgraded or not.
Once you agree to install, reboot your system after the installation is finished. Then, you can check the kernel version to ensure whether the kernel is upgraded or not.

```bash
sudo reboot
Expand Down
6 changes: 0 additions & 6 deletions example.dae
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ global {
# Multiple interfaces split by ",".
#lan_interface: docker0

# SNAT for incoming connection to avoid MAC learning.
# Always set it true if you are NOT using dae as a transparent bridge, but will reduce forwarding
# performance for direct traffic in LAN mode.
# This option does not affect direct traffic performance of WAN.
lan_nat_direct: true

# The WAN interface to bind. Use it if you want to proxy localhost.
# Multiple interfaces split by ",".
wan_interface: wlp5s0
Expand Down

0 comments on commit 52708d5

Please sign in to comment.