Introduction: When using WARP on your VPS, you might encounter issues where the new IP address doesn't respond to SSH or ping commands. This can happen after you've changed your IP address. To resolve this, you'll need to stop and remove the WARP configuration. Access your console and run "ip a" to identify the WARP configuration.
Scenario 1: Resolving SSH/Ping Issues with WARP on VPS (When wgcf is Found):
-
Check for WARP Configuration:
- Run "ip a" to identify wgcf.
-
Stop and Disable WARP Service:
- Execute:
sudo systemctl stop wgcf sudo systemctl disable wgcf
- Execute:
-
Use wg-quick to Disable WARP:
- Run:
sudo wg-quick down wgcf
- Run:
-
Check for Active WARP/WireGuard Services:
- Use this command to find a service associated with WARP:
sudo systemctl | grep -iE 'wg|warp'
- Use this command to find a service associated with WARP:
-
Stop and Disable WireGuard Service:
- Replace
[service-name]
with the actual service name (likewg-quick@wgcf.service
or@warp.service
):sudo systemctl stop [service-name] sudo systemctl disable [service-name]
- Replace
-
Remove WireGuard Tools and Reload Daemon:
- Execute:
sudo apt remove wireguard-tools sudo systemctl daemon-reload
- Execute:
Scenario 2: Removing WARP and Its Configurations from VPS (When WARP is Found)
-
Disable and Delete WARP Interface:
- Run the following commands:
sudo ip link set WARP down sudo ip link delete WARP
ip a | grep WARP
- Run the following commands:
-
Edit WARP Startup Script:
- Open the script for editing:
nano /root/WARP-UP.sh
- Open the script for editing:
-
Modify Crontab to Prevent WARP Reboot Activation:
- Open the crontab file:
sudo crontab -e
- Open the crontab file:
-
Ensure WARP Services are Disabled:
- If WARP reactivates after a reboot, re-check for WARP services:
sudo systemctl | grep -iE 'wg|warp'
sudo systemctl stop [service-name] sudo systemctl disable [service-name]
- If WARP reactivates after a reboot, re-check for WARP services:
-
Load System Daemon:
- Reload the system daemon:
sudo systemctl daemon-reload
- Reload the system daemon:
Conclusion: After following these steps, WARP and its configurations should be completely removed from your VPS. This can help resolve IP-related issues and ensure WARP does not reactivate on system reboot. Always reboot your server to confirm that the changes have taken effect, and WARP is not reactivated.