F5: Difference between revisions

329 bytes removed ,  1 year ago
Line 225:
* Customize root password:
virt-customize -a CentOS-7-x86_64-GenericCloud-2111.qcow2 --root-password password:DDYrTXJZTJldOqimb68ZK5KCmRpbdBOe
Now able to login to new guest as root / DDYrTXJZTJldOqimb68ZK5KCmRpbdBOe
 
Now able to login to new guest as root / DDYrTXJZTJldOqimb68ZK5KCmRpbdBOe
STart VM:
 
* Start VM:
<syntaxhighlight lang="bash">
sudo virt-install \
Line 242 ⟶ 243:
</syntaxhighlight>
 
sudo iptables -t nat -I PREROUTING -p tcp -d 10.170.131.132 --dport 443 -j DNAT --to-destination 192.168.122.110:443
sudo iptables -t nat -I PREROUTING -p tcp -d 10.170.131.132 --dport 80 -j DNAT --to-destination 192.168.122.110:80
sudo iptables -I FORWARD -m state -d 192.168.122.0/24 --state NEW,RELATED,ESTABLISHED -j ACCEPT