• [^] # Re: Partage de connexion

    Posté par . En réponse au message Connecter deux ordis (suite). Évalué à 1.

    J'ai fait ce que tu m'as dit. Voici le résultat (fichier ouvert avec kate) :
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.

    exit 0
    iptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.0/24 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward

    Ca n'a pas l'air de marcher.
    Faut-il aussi ajouter la ligne
    iptables -t nat -F ?