Skip to content
Shellbay

Networking & Firewall · about 1 min · 2 steps

IP forwarding

Lets this server pass traffic between networks, which a VPN gateway or router needs. Can also turn it off.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: supported

What it changes on your server

  • Writes /etc/sysctl.d/90-shellbay-forwarding.conf and applies it now; it also applies after reboots.
  • With IPv6, keeps accepting router advertisements (accept_ra=2) so the server's own IPv6 address keeps working.
  • Turning it off stops Docker containers and VPN devices reaching the internet through this server. SSH to this server isn't affected.

What Shellbay asks you

  1. Which traffic should be forwarded?

    Choose ipv4 for most VPNs (WireGuard, Tailscale exit nodes). Choose ipv4-and-ipv6 only if your VPN hands out IPv6 addresses. Choose off if this server shouldn't route anything.

    Forwarding
    One of: ipv4, ipv4-and-ipv6, off. Default: ipv4

Steps

  1. Write the settings
  2. Check the kernel uses them

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • Forwarding is set to ‹forwarding›. Routing for VPN devices also needs NAT or firewall forwarding rules, which VPN workflows add themselves.