LogoLogo
DiscordPanelPricing
  • TCPShield
  • FAQ
  • Commonly asked questions
  • Features
  • Contact
  • Billing
  • Vxlan
    • VXLAN Features
    • TCPSHIELD VXLAN General Setup
    • VXLAN Tunnel for rAthena/Ragnarok
    • VXLAN Tunnel for Bedrock/Geyser
    • VXLAN Tunnel for FiveM/GTA Online
    • Common issues and Debugging
  • Premium Features
    • Asia Network
    • Geyser
    • Panel Features
  • Panel
    • Setup Process
    • Panel Configuration
    • DNS Setup
    • TCPShield Plugin
  • Troubleshooting
    • Setup Checklist
    • Invalid Hostname
    • Disconnected on Login
    • High Latency and General Lag
    • How to Read a Traceroute
    • Connection Complaint Policy
  • Miscellaneous
    • TCPShield API
    • Protect a website
    • Wildcard DNS
    • Protect a home hosted server
    • Account sharing
    • Transfer Packets
  • Useful Links
  • TCPShield Panel
Powered by GitBook
LogoLogo

Useful links

  • Pricing
  • Twitter
  • Contact

Need help?

  • Discord
  • Network Status

Panel

  • Sign Up
  • Login
On this page
  • 1. VXLAN Setup Check List
  • 1.1. Interface traffic
  • 1.2 Firewall
  • 2. Error: Nexthop has invalid gateway.
  • 3. VXLAN tunnel stopped working on server reboot

Was this helpful?

  1. Vxlan

Common issues and Debugging

This page provide the most common pitfalls users might have with VXLAN tunnel. This page is largely under construction as we are gathering more edge cases. Your feedback is much appreciated.

PreviousVXLAN Tunnel for FiveM/GTA OnlineNextAsia Network

Last updated 6 days ago

Was this helpful?

1. VXLAN Setup Check List

It is crucial to ensure that you can directly connect to the services or games you are hosting using their IPv4 address and port. For instance, in this setup documentation, the was accessible via 108.61.149.182:6900. If your VXLAN tunnel is not functioning correctly, several potential causes may exist. Below are some best practices to follow to confirm that your service is properly set up and running.

1.1. Interface traffic

To verify that your VXLAN tunnel has been properly established, you can ping the private IP address of your tunnel. You should see responses like the example below:

root@admin:~$ ping 172.18.139.3
PING 172.18.139.3 (172.18.139.3) 56(84) bytes of data.
64 bytes from 172.18.139.3: icmp_seq=1 ttl=64 time=0.718 ms
64 bytes from 172.18.139.3: icmp_seq=2 ttl=64 time=0.743 ms
64 bytes from 172.18.139.3: icmp_seq=3 ttl=64 time=0.761 ms
64 bytes from 172.18.139.3: icmp_seq=4 ttl=64 time=0.678 ms
^C
--- 172.18.139.3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.678/0.725/0.761/0.031 ms

The local IP address here corresponds to the VXLAN interface running on our anycast server, so the latency you observe will vary depending on your backend’s location.

1.2 Firewall

1.2. Firewall Configuration

There are two potential scenarios:

  1. Server Firewall: If you are using a server firewall such as netfilter, iptables, or ufw, you will need to open both the backend port and the VXLAN port to accept external connections, or, in rare cases, explicitly whitelist the VXLAN interfaces.

Using iptables to Accept Connections to Your Backend Port

iptables -A INPUT -p udp --dport <PORT> -j ACCEPT
iptables -A INPUT -p tcp --dport <PORT> -j ACCEPT
iptables -A OUTPUT -p tcp --sport <PORT> -j ACCEPT
iptables -A OUTPUT -p udp --sport <PORT> -j ACCEPT

Notes: To remove these rules, simply replace -A with -D to delete them.

Using UFW :

ufw allow <port>/udp
ufw allow <port>/tcp

To delete these rules, use the following command:

sudo ufw delete allow /udp sudo ufw delete allow /tcp

Whitelisting VXLAN Interface (Optional)

Although this step is typically not necessary, you can whitelist the VXLAN interface explicitly using iptables:

iptables -I FORWARD -i vxlan_<vxlan ID> -j ACCEPT
iptables -I FORWARD -o vxlan_<vxlan ID> -j ACCEPT

Using UFW:

sudo ufw route allow in on vxlan_<vxlan ID> to any
sudo ufw route allow out on vxlan_<vxlan ID> to any

2. Error: Nexthop has invalid gateway.

This error is commonly encountered by customers using the Pterodactyl panel or other Docker services. It indicates that the VXLAN tunnel failed to bind to your local interface, most likely because Pterodactyl is currently reserving the IP address for its own use.

To debug:

  1. Check the Local IP Address for VXLAN: It should resemble something like 172.18.132.2.

  2. Run ip route and you may see an entry like:

172.18.0.0/16 dev pterodactyl0 proto kernel scope link src 172.18.0.1 

In this case, the 172.18.132.2 IP address might conflict with the Docker network configurations. For example, if the pterodactyl0 interface is using 172.18.0.1, this could block the gateway you are trying to use (172.18.132.2), as it lies within the Docker subnet.

3. VXLAN tunnel stopped working on server reboot

Sometimes, after rebooting your VM or dedicated server, the VXLAN script may not re-run, causing the service to stop working. To fix this, you can set up a persistent service to automatically run the VXLAN script after each reboot.

Steps to Setup Persistent VXLAN Tunnel:

  1. Edit the rc.local file:

sudo nano /etc/rc.local
  1. Add the following lines to execute the VXLAN script at boot:

#!/bin/bash
# rc.local - VXLAN auto setup at boot
sleep 5
<INSERT YOUR VXLAN SCRIPT HERE>
echo "VXLAN script executed"
exit 0
  1. Save and exit the editor (Ctrl+X, then Y to confirm).

  2. Make the script executable:

sudo chmod +x /etc/rc.local

Now, the VXLAN script will run automatically after each reboot, ensuring that the tunnel is re-established.

Cloud Provider Firewall: Major cloud providers like Linode, AWS, and Azure have default security group or firewall settings that may block traffic before it even reaches your VPS. In this case, you can navigate to your provider's control panel and allow traffic from to your backend ports.

TCPShield
Ragnarok server