[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -we need ip forwarding on bridges
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -we need ip forwarding on bridges |
Date: |
Fri, 02 Dec 2022 15:04:56 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 124480c8a -we need ip forwarding on bridges
124480c8a is described below
commit 124480c8af13a9cb82d64f9103c55ae64f36ceda
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Fri Dec 2 23:04:47 2022 +0900
-we need ip forwarding on bridges
---
contrib/netjail/netjail_core.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/contrib/netjail/netjail_core.sh b/contrib/netjail/netjail_core.sh
index da784fa5e..5e4fb39f1 100755
--- a/contrib/netjail/netjail_core.sh
+++ b/contrib/netjail/netjail_core.sh
@@ -188,9 +188,10 @@ netjail_node_add_nat() {
local ADDRESS=$2
local MASK=$3
- ip netns exec $NODE nft add table nat
- ip netns exec $NODE nft add chain nat postrouting { type nat hook
postrouting priority 0 \; }
- ip netns exec $NODE nft add rule ip nat postrouting ip saddr
"$ADDRESS/$MASK" counter masquerade
+ ip netns exec $NODE sysctl -w net.ipv4.ip_forward=1
+ ip netns exec $NODE nft add table nat
+ ip netns exec $NODE nft add chain nat postrouting { type nat hook
postrouting priority 0 \; }
+ ip netns exec $NODE nft add rule ip nat postrouting ip saddr
"$ADDRESS/$MASK" counter masquerade
# ip netns exec $NODE iptables -t nat -A POSTROUTING -s
"$ADDRESS/$MASK" -j MASQUERADE
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -we need ip forwarding on bridges,
gnunet <=