Включить IP перенаправление Linux

sysctl net.ipv4.ip_forward       # to get IP forwarding status
  net.ipv4.ip_forward = 0        # IP forwarding is disabled

sysctl -w net.ipv4.ip_forward=1  # to enable IP forwarding (set to 0 to disable)
  net.ipv4.ip_forward = 1        # IP forwarding is enabled
Jittery Jackal