TWSD-713 slb directfwd traffic will be blocked

Review Request #837 — Created May 6, 2025 and submitted

mingji
APV10
rel_apv_10_7
TWSD-713
jasonchang, timsu, weikai

When enabling slb directfwd on feature, TCP traffic will be blocked once APV use same port number of HA to establish connection with real service.

Port number is determined by the function fasttcp_find_open_port() after enabling directfwd feature,
The issue is fixed by using function is_management_packet() to check current port number if it is used on other management features, such as ssh, webui, HA, etc.

  1. configure a tcp real service
  2. ha on
  3. slb directfwd on
  4. Try to let APV use the same port number of HA by constantly establishing TCP connection.
Loading...