mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-01-11 14:20:23 +01:00
2.5 KiB
2.5 KiB
Idols - Aquamarine
A router(IPv4 only) with a transparent proxy to bypass the G|F|W.
NOTE: dae(running on aquamarine) do not provides a http/socks5 proxy server, so a v2ray server is running on idols_kana to provides a http/socks5 proxy service.
Troubleshooting
Can not access the global internet
- Check whether the subscription url is accessible.
- If not, then you need to get a new subscription url and update the
dae's configuration.
- If not, then you need to get a new subscription url and update the
- Check the
daeservice's log byjournalctl -u dae -n 1000.
DNS cannot be resolved
sudo systemctl stop dae, then try to resolve the domain name again.- If it works, the problem is caused by
daeservice. - check dae's log by
journalctl -u dae -n 1000
- If it works, the problem is caused by
- DNS & DHCP is provided by
dnsmasqservice, check the configuration ofdnsmasq.
DHCP cannot be obtained
ss -tunlp, check ifdnsmasqis running and listening on udp port 67.journalctl -u dnsmasq -n 1000to check the log ofdnsmasq.- Request a new IP address by disconnect and reconnect one of your devices' wifi.
nix shell nixpkgs#dhcpdumpand thensudo dhcpdump -i br-lan, check if the DHCP request is received bydnsmasq.- The server listens on UDP port number 67, and the client listens on UDP port number 68.
- DHCP operations fall into four phases:
- Server discovery: The DHCP client broadcasts a DHCPDISCOVER message on the network subnet using the destination address 255.255.255.255 (limited broadcast) or the specific subnet broadcast address (directed broadcast).
- IP lease offer: When a DHCP server receives a DHCPDISCOVER message from a client, which is an IP address lease request, the DHCP server reserves an IP address for the client and makes a lease offer by sending a DHCPOFFER message to the client.
- IP lease request: In response to the DHCP offer, the client replies with a DHCPREQUEST message, broadcast to the server,[a] requesting the offered address.
- IP lease acknowledgement: When the DHCP server receives the DHCPREQUEST message from the client, it sends a DHCPACK packet to the client, which includes the lease duration and any other configuration information that the client might have requested.
- So if you see only
DISCOVERmessages, the dhsmasq is not working properly.