• [^] # Re: Mon cher je t'appels encore à la rescousse!

    Posté par (site web personnel) . En réponse au journal Mon cher je t'appels encore à la rescousse!. Évalué à 2.

    Hé, tu aurais pas un noyau 2.4.22 ? Il y a un bug au niveau de NAT/masquerade justement : ça marche pô du tout, il faut un patch. Va voir ça avec ta distrib, ou alors voici le patch (en provenance de Slackware) :

    # This patch is needed in 2.4.22 or else NAT (masquerade) will not work.
    # It fixes the "Rusty's broken brain" error/failure.

    ===== net/ipv4/netfilter/ipt_MASQUERADE.c 1.6 vs edited =====
    --- 1.6/net/ipv4/netfilter/ipt_MASQUERADE.c Tue Aug 12 11:30:12 2003
    +++ edited/net/ipv4/netfilter/ipt_MASQUERADE.c Thu Aug 28 16:54:15 2003
    @@ -90,6 +90,7 @@
    #ifdef CONFIG_IP_ROUTE_FWMARK
    key.fwmark = (*pskb)->nfmark;
    #endif
    + key.oif = 0;
    if (ip_route_output_key(&rt, &key) != 0) {
    /* Funky routing can do this. */
    if (net_ratelimit())

    (Ah c'est con, l'indentation est toute niquée.)