| File
|
Path
|
| Xray binary
|
/usr/local/bin/xray
|
| Server config
|
/usr/local/etc/xray/config.json
|
| Access log
|
/var/log/xray/access.log (if logging enabled)
|
| Error log
|
/var/log/xray/error.log (if logging enabled)
|
| Log rotation
|
/etc/logrotate.d/xray (if logging enabled)
|
| Credentials backup
|
/root/xray-credentials.txt (optional)
|
| Firewall rules (v4)
|
/etc/iptables/rules.v4
|
| Firewall rules (v6)
|
/etc/iptables/rules.v6
|
| Firewall backup
|
/etc/iptables/rules.v4.bak.* (timestamped)
|
| Sysctl tuning
|
/etc/sysctl.d/99-xray-optimize.conf
|
| Xray init script
|
/etc/init.d/xray (OpenRC only)
|
| Firewall init script
|
/etc/init.d/iptables-xray (OpenRC only)
|
| Systemd unit
|
/etc/systemd/system/xray.service (systemd only)
|
| GeoIP database
|
/usr/local/share/xray/geoip.dat
|
| GeoSite database
|
/usr/local/share/xray/geosite.dat
|
| OpenSSH config
|
/etc/ssh/sshd_config (if OpenSSH)
|
| Dropbear config
|
/etc/conf.d/dropbear (if Dropbear)
|