guide:installation_serveur_agregation_connexion_2014

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
guide:installation_serveur_agregation_connexion_2014 [2016/11/05 15:22] – [1.2.6. Activation du NAT] viviguide:installation_serveur_agregation_connexion_2014 [2021/04/18 22:24] (Version actuelle) – modification externe 127.0.0.1
Ligne 118: Ligne 118:
  
 Ce qui va donner chez moi ce genre de chose: Ce qui va donner chez moi ce genre de chose:
-<code>+ 
 +<code bash> 
 +nano nat.sh 
 +</code> 
 + 
 +<code bash>
 # #
 # Configure here your interfaces # Configure here your interfaces
Ligne 185: Ligne 190:
 </code> </code>
  
-Mais pour mémoire le point important est celui-ci:+After configuring the 2 variables, save the script below as nat.sh and make it executable by doing  
 + 
 +<code bash> 
 +chmod a+x nat.sh 
 +</code> 
 + 
 +Now, test the script by running as root  
 + 
 +<code bash> 
 +sudo sh nat.sh 
 +</code> 
 + 
 +Investigate the messages from the console output to see if any error happened. If everything looks fine, use another host in the internal network to test if it can access the external network (presumably the Internet). A quick way to test is pinging Google public DNS from the console.  
 + 
 +<code bash> 
 +ping -c 3 -W 10 8.8.8.8 
 +</code> 
 + 
 +If ping responds, make our new script bootable so we don't have to run the script every time we restart.  
 + 
 +<code bash> 
 +sudo mv nat.sh /etc/init.d/ 
 +</code> 
 + 
 +See https://askubuntu.com/questions/765120/after-upgrade-to-16-04-lts-rc-local-not-executing-command 
 + 
 +<code bash> 
 +sudo systemctl enable rc-local.service 
 +</code> 
 + 
 +<code bash> 
 +sudo nano /etc/rc.local 
 +</code>
  
 <code> <code>
-sudo iptables -A POSTROUTING -t nat -j MASQUERADE+# Executing nat script 
 +/etc/init.d/nat.sh 
 +</code> 
 + 
 +As a final test, restart your computer and test to see if you still have the same functionality. If so then congratulations! If not then make sure you followed the above correctly so the script is bootable.  
 + 
 + 
 +Mais pour mémoire le point important est celui-ci: 
 + 
 +<code bash> 
 +iptables -A POSTROUTING -t nat -j MASQUERADE
 </code> </code>
  
  • guide/installation_serveur_agregation_connexion_2014.1478355732.txt.gz
  • Dernière modification : 2021/04/18 22:24
  • (modification externe)