dae/docs/getting-started/troubleshooting.md

64 lines
1.8 KiB
Markdown
Raw Normal View History

2023-03-19 11:39:36 +07:00
# Troubleshooting
### Unknown bpf_trace_printk
```
invalid argument: unknown func bpf_trace_printk
```
Solution:
Compile dae with CFLAG `-D__REMOVE_BPF_PRINTK`. See [build-by-yourself](build-by-yourself.md).
2023-03-26 12:31:31 +07:00
### PVE related
1. [PVE NIC Hardware passthrough](https://github.com/daeuniverse/dae/issues/43)
2023-03-19 14:22:00 +07:00
### Binding to WAN but no network
2023-03-19 11:39:36 +07:00
**1. Troubleshoot local DNS service**
If you use `adguardhome`, `mosdns` in `dns` section, refer to [external-dns](external-dns.md).
2023-03-19 11:39:36 +07:00
**2. Troubleshoot firewall**
2023-03-19 14:22:00 +07:00
If you bind to wan, make sure firewall is stopped or `12345` is allowed by firewall. Don't worry about the security of this port because this port has its own firewall rule.
2023-03-19 11:39:36 +07:00
Usual firewalls on Linux:
```
ufw
firewalld
```
**3. Troubleshoot PPPoE**
dae does not support PPPoE yet. We are working on it. However, binding to LAN for other machines should work fine.
2023-03-19 14:22:00 +07:00
### Binding to LAN but bad DNS in other machines
2023-03-19 11:39:36 +07:00
2023-03-21 23:59:50 +07:00
**1. Troubleshoot config of dae**
Make sure you have bind to the correct LAN interfaces.
For example, if your use the same interface eth1 for WAN and LAN, write it as `wan_interface: eth1` and also in `lan_interface: eth1`. If the LAN interfaces you want to proxy are eth1 and docker0, write them both as `lan_interface: eth1,docker0`.
**2. Troubleshoot DNS**
To verify on another machine in LAN:
2023-03-19 11:39:36 +07:00
```
curl -i 1.1.1.1
curl -i google.com
```
If the first line has a response and the second line doesn't, check whether port `53` is occupied by others on dae's machine.
```
netstat -ulpen|grep 53
# or
# lsof -i:53 -n
```
2023-03-21 23:59:50 +07:00
If does, stop the service process or change its listening port from 53 to others. Do not forget to modify `/etc/resolv.conf` to make DNS accessible (for example, with content `nameserver 223.5.5.5`, but do not use `nameserver 127.0.0.1`).