txAdmin Security
Securing your txAdmin installation is critical to prevent unauthorized access to your server.
Authentication
Strong Passwords
- Minimum 12 characters
- Mix of uppercase, lowercase, numbers, and symbols
- Avoid dictionary words
- Use a password manager
Two-Factor Authentication
Enable 2FA in txAdmin settings:
- Go to Settings → Security
- Enable “Two-Factor Authentication”
- Scan QR code with authenticator app
- Save backup codes securely
Network Security
Firewall Configuration
Restrict access to txAdmin port (40120):
Reverse Proxy
Use Nginx or Caddy as a reverse proxy with SSL:
server {
listen 443 ssl;
server_name your-domain.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://127.0.0.1:40120;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}Rate Limiting
Configure rate limiting to prevent brute force attacks:
- Limit login attempts (3-5 per minute)
- Enable IP blocking after failed attempts
- Monitor access logs regularly
Best Practices
- Regular Updates: Keep txAdmin and FiveM artifacts updated
- Access Logs: Review access logs regularly
- Backup Credentials: Store admin credentials securely
- IP Whitelisting: Restrict admin access to known IPs
- HTTPS: Always use HTTPS in production
Next Steps
Last updated on