informatique:virtualisation
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:virtualisation [18/08/2012 19:22] – [OpenVZ] cyrille | informatique:virtualisation [18/08/2012 20:15] (Version actuelle) – [OpenVZ] cyrille | ||
|---|---|---|---|
| Ligne 94: | Ligne 94: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | === NAT private ip === | ||
| - | NAT private ip : | ||
| iptables=iptables | iptables=iptables | ||
| private_network=192.168.200.0/ | private_network=192.168.200.0/ | ||
| # output_interface=eth0 | # output_interface=eth0 | ||
| - | out_interface=vmbr0 | + | |
| out_ip=46.105.121.108 | out_ip=46.105.121.108 | ||
| | | ||
| - | $iptables -A FORWARD -o $output_interface -j ACCEPT | + | |
| | | ||
| # $iptables -t nat -A POSTROUTING -s $private_network -o $out_interface -j SNAT --to $out_ip | # $iptables -t nat -A POSTROUTING -s $private_network -o $out_interface -j SNAT --to $out_ip | ||
| $iptables -t nat -A POSTROUTING -s $private_network -j SNAT --to $out_ip | $iptables -t nat -A POSTROUTING -s $private_network -j SNAT --to $out_ip | ||
| + | |||
| + | === iptables rules at startup === | ||
| + | |||
| + | Créer le fichier | ||
| + | / | ||
| + | et | ||
| + | chmod +x / | ||
| + | puis ajouter | ||
| + | #!/bin/bash | ||
| + | / | ||
| + | ensuite mettre les règles issues de **iptables-save** dans le fichier | ||
| + | / | ||
| ==== VirtualBox ==== | ==== VirtualBox ==== | ||
informatique/virtualisation.1345310521.txt.gz · Dernière modification : de cyrille
