Add sudo to iptables-save commands in migration guide for proper permissions
This commit is contained in:
@@ -94,9 +94,9 @@ Vergleich.
|
|||||||
HOSTNAME=<hostname>
|
HOSTNAME=<hostname>
|
||||||
|
|
||||||
ssh -t ${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
|
> /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
|
> /tmp/fw_before_v6.rules
|
||||||
echo "Stand gesichert."
|
echo "Stand gesichert."
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user