Automatiser une tâche

Fermé
nti - 1 juin 2007 à 10:25
 nti - 1 juin 2007 à 11:04
Chaque fois que mon serveur redemare, je suis obligé de retaper la commande "echo 1 > /proc/sys/net/ipv4/ip_forward " comment automatiser cette opération. J'utilise RedHad Entreprise 4

Merci de me venir en aide

2 réponses

dubcek Messages postés 18723 Date d'inscription lundi 15 janvier 2007 Statut Contributeur Dernière intervention 11 mai 2024 5 615
1 juin 2007 à 10:52
Là: http://kbase.redhat.com/faq/FAQ_45_487.shtm
To enable packet forwarding:

echo "1" > /proc/sys/net/ipv4/ip_forward

To make this permanent, set the variable net.ipv4.ip_forward = 1 in the /etc/sysctl.conf file. For example:

# Controls IP packet forwarding
net.ipv4.ip_forward = 1
0
Je te rmercie beaucoup la manip marche

Bonne Journée
0