Skip to content

Commit 7ecc49d

Browse files
ScmTblepb8o
authored andcommitted
doc: network for clones iptables dnat command error
Fix command parameter errors in iptables in the document Signed-off-by: ScmTble <ScmTble@qq.com>
1 parent 369bcdb commit 7ecc49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/snapshotting/network-for-clones.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ sudo ip netns exec fc0 iptables -t nat -A POSTROUTING -o veth0 \
126126
# do the reverse operation; rewrites the destination address of packets
127127
# heading towards the clone address to 192.168.241.2
128128
sudo ip netns exec fc0 iptables -t nat -A PREROUTING -i veth0 \
129-
-d 192.168.0.3 -j DNAT to 192.168.241.2
129+
-d 192.168.0.3 -j DNAT --to 192.168.241.2
130130

131131
# (adds a route on the host for the clone address)
132132
sudo ip route add 192.168.0.3 via 10.0.0.2

0 commit comments

Comments
 (0)