Update README.md

This commit is contained in:
Oliver 2023-11-06 02:26:42 +00:00
parent 21fa74761a
commit f8d44c57c5

View File

@ -3,4 +3,8 @@
* A method of moving files from device to device
# What you may want:
* To change `net.ipv4.ip_forward` to 1 in `/etc/sysctl.conf` on the server. This will allow peers to see eachother.
* To change `net.ipv4.ip_forward` to 1 in `/etc/sysctl.conf` on the server. This will allow peers to see eachother. Also add the following to the server's `[interface]`
```
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o enp2s0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o enp2s0 -j MASQUERADE
```