Add troubleshooting instructions for asymmetric routing
This commit is contained in:
parent
0320555e9d
commit
e49e41b85f
1 changed files with 20 additions and 0 deletions
20
README.md
20
README.md
|
@ -21,3 +21,23 @@ docker run -it --rm \
|
||||||
--net=container:wireguard \
|
--net=container:wireguard \
|
||||||
appropriate/curl http://httpbin.org/ip
|
appropriate/curl http://httpbin.org/ip
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### Asymmetric Routing
|
||||||
|
|
||||||
|
If you see any errors similar to:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sysctl: setting key "net.ipv4.conf.all.rp_filter": Read-only file system
|
||||||
|
sysctl: setting key "net.ipv4.conf.default.rp_filter": Read-only file system
|
||||||
|
```
|
||||||
|
|
||||||
|
Then your host is set to discard packets when the route for outbound traffic differs from the route for incoming traffic. To correct this, you'll want to set these values in `/etc/sysctl.conf`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
net.ipv4.conf.default.rp_filter = 2
|
||||||
|
net.ipv4.conf.all.rp_filter = 2
|
||||||
|
```
|
||||||
|
|
||||||
|
Afterwards, reboot.
|
||||||
|
|
Loading…
Reference in a new issue