Xray: Unterschied zwischen den Versionen

Aus Foxwiki
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
 
(14 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 6: Zeile 6:
----
----
-->
-->
'''{{BASEPAGENAME}}'''  - [[Xray]] + [[VLESS]] + [[REALITY]] + [[XTLS-Vision]] auf [[Debian]] installieren
'''Xray'''  - [[VLESS]] + [[REALITY]] + [[XTLS-Vision]] auf [[Debian]]
</noinclude>
</noinclude>


== Beschreibung ==
== Beschreibung ==
----
; Lizenz
Dieses Projekt unterliegt der MIT-Lizenz
----
; Zensur-Sicherheit
[[Xray/Zensur-Sicherheit]]
== Funktion ==
[[Xray/Funktion]]
== Installation ==
[[Xray/Installation]]
== DNS-Server ==
[[Xray/DNS]]
== Client-Konfiguration ==
[[Xray/Client]]
== Verwaltung ==
[[Xray/Verwaltung]]
== Sicherheit ==
[[Xray/Sicherheit]]
== Fehlerbehebung ==
{| class="table table-striped table-hover"
{| class="table table-striped table-hover"
!Problem
| Zensur-Sicherheit || [[Xray/Zensur-Sicherheit]]
!Lösung
|-
|-
|Xray lässt sich nicht starten
| Lizenz || [[MIT-Lizenz]]
|<code>xray run -test -c /usr/local/etc/xray/config.json</code>
|-
|-
|Verbindung abgelehnt
| Funktion || [[Xray/Funktion]]
|<code>iptables -L -n</code> – Überprüfen Sie, ob Ihr Port offen ist
|-
|-
|TLS-Handshake schlägt fehl
| Installation || [[Xray/Installation]]
|<code>xray tls ping <domain></code> — Camouflage-Website überprüfen
|-
|-
|Niedrige Geschwindigkeit
| DNS-Server || [[Xray/DNS]]
|<code>sysctl net.ipv4.tcp_congestion_control</code> — sollte <code>bbr</code> anzeigen
|-
|-
|Der Client kann keine Verbindung herstellen
| Client-Konfiguration || [[Xray/Client]]
|Stellen Sie sicher, dass UUID, publicKey, serverName und shortId übereinstimmen.
|-
|-
|Aus SSH ausgesperrt
| Verwaltung || [[Xray/Verwaltung]]
|Stellen Sie eine Verbindung über die VPS-Konsole her. OpenSSH: Überprüfen Sie <code>/etc/ssh/sshd_config</code>. Dropbear: Überprüfen Sie <code>/etc/conf.d/dropbear</code>
|-
|-
|Alte Firewall wiederherstellen
| Sicherheit || [[Xray/Sicherheit]]
|<code>cp /etc/iptables/rules.v4.bak.TIMESTAMP /etc/iptables/rules.v4 && iptables-restore < /etc/iptables/rules.v4</code>
|-
|-
|Alpine: Xray lässt sich nicht starten
| Fehlerbehebung || [[Xray/Fehlerbehebung]]
|Überprüfen Sie, ob <code>/etc/init.d/xray</code> vorhanden ist und ob es unter <code>rc-update show</code> aufgeführt wird.
|-
|-
|Alpine: iptables wird beim Systemstart nicht geladen
| Konfiguration || [[Xray/Konfiguration]]
|Überprüfen Sie, ob <code>/etc/init.d/iptables-xray</code> vorhanden ist und in <code>rc-update show</code> aufgeführt wird.
|-
|Alpine: <code>qrencode</code> nicht gefunden
|Stellen Sie sicher, dass das Community-Repo aktiviert ist: Überprüfen Sie <code>/etc/apk/repositories</code>
|}
|}
----


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


== Aufruf ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>
=== Optionen ===
<!--
{| class="table table-striped table-hover sortable options gnu big"
-->
{| class="table table-striped table-hover"
|-
! Unix !! GNU !! Parameter !! Beschreibung
|-
| || || ||
|-
|}
=== Parameter ===
=== Umgebungsvariablen ===
=== Exit-Status ===
{| class="table table-striped table-hover options col1center big"
|-
! Wert !! Beschreibung
|-
| 0 || Erfolg
|-
| >0 || Fehler
|}
== Anwendung ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>
<!-- output -->
<syntaxhighlight lang="bash" highlight="" line>
</syntaxhighlight>
=== Problembehebung ===
== Konfiguration ==
=== Dateien ===
{| class="table table-striped table-hover options big"
|-
! Datei !! Beschreibung
|-
| ||
|-
| ||
|}


<noinclude>
<noinclude>
Zeile 188: Zeile 40:
----
----
-->
-->
== Anhang ==
== Anhang ==
=== Siehe auch ===
=== Siehe auch ===
Zeile 236: Zeile 89:


</noinclude>
</noinclude>
__KEIN_INHALTSVERZEICHNIS__
[[Kategorie:Zensur]]

Aktuelle Version vom 18. September 2026, 20:09 Uhr