To tunnel traffic (port forwarding) on your first server to your second server, run the following command:
bash <(curl -Ls https://raw.githubusercontent.com/xpanel-cp/port-forwarder/main/xforwarder.sh --ipv4)
You can easily tunnel your traffic to the second server using Iptables.
For those who use XPANEL Singbox protocols, you can easily transfer traffic from all ports to your second and main server by running the above command on the first server and selecting number 2.
Tuic = UDP,TCP
Hysteria2 = UDP,TCP