Add sudo to iptables-save commands in migration guide for proper permissions
This commit is contained in:
1 parent
682a08b53e
commit
1171d156b7
1 file changed
+2
-2
@@ -94,9 +94,9 @@ Vergleich.
|
||||
HOSTNAME=<hostname>
|
||||
|
||||
ssh -t ${HOSTNAME} '
|
||||
iptables-save | grep -v "^#" | sed "s/\[[0-9]*:[0-9]*\]/[0:0]/g" \
|
||||
sudo iptables-save | grep -v "^#" | sed "s/\[[0-9]*:[0-9]*\]/[0:0]/g" \
|
||||
> /tmp/fw_before_v4.rules
|
||||
ip6tables-save | grep -v "^#" | sed "s/\[[0-9]*:[0-9]*\]/[0:0]/g" \
|
||||
sudo ip6tables-save | grep -v "^#" | sed "s/\[[0-9]*:[0-9]*\]/[0:0]/g" \
|
||||
> /tmp/fw_before_v6.rules
|
||||
echo "Stand gesichert."
|
||||
'
|
||||
|
||||
Reference in new issue
Block a user