From f8d44c57c51fad87af64f4dd8b45861803c6f6e1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 6 Nov 2023 02:26:42 +0000 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 95ce8b2..527bb0f 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +* 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 +```