Logo AdamantioAdamantio.netlogotoplogoright
Shorewall - iptables made easy
logobottom
 Registrati
 Forum
Ricerche Downloads Profilo Utente Argomenti
    
Sommario
Utenti e Visitatori

Server Date/Time
Date: 04 Sep 2010
Time: 05:06:07
GMT: +0200

 Hits:
Today: 401
Overall: 8672681

Iscritti:
Ultimo: aleire-balenciaga
Iscritti oggi: 0
Iscritti ieri: 0
Complessivi: 455

Persone Online:
Visitatori: 15
Iscritti: 0
Totale: 15
Effemeridi
In questo giorno...
1917
Nasce il costruttore d'auto Henry Ford.
Cerca sul sito


  NAT (masquerade) su Centos 5

Linux adminScritto da tombo :
Impostare il nat masquerade su centos 5.2.

L'attivazione del NAT si realizza con due semplici passi:

  • Attivazione dell' ip_forward.
    Modificare il file /etc/sysctl.conf come segue:
    net.ipv4.ip_forward = 1

    Per rendere attiva la modifica usare il comando:
    sysctl -w net.ipv4.ip_forward = 1

  • Impostare la regola del masquerade. Modificare il file /etc/sysconfig/iptables con le seguenti linee:
    # NAT rules
    *nat
    :PREROUTING ACCEPT [0:0]
    :POSTROUTING ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A POSTROUTING -j MASQUERADE -o eth0
    COMMIT
    
    In questo esempio l'interfaccia eth0 è quella connessa ad internet.
  • Per finire:
    service iptables restart
    E questo è tutto.

     
    Links Correlati
    · Inoltre Linux admin
    · News by root


    Articolo più letto relativo a Linux admin:
    Udev su Fedora Core 3 in lingua italiana

    Article Rating
    Average Score: 0
    Voti: 0

    Please take a second and vote for this article:

    Excellent
    Very Good
    Good
    Regular
    Bad

    Opzioni
    "NAT (masquerade) su Centos 5" | Login/Crea Account | 0 commenti
    I commenti sono di proprietà dell'inserzionista. Noi non siamo responsabili per il loro contenuto.

    Commenti NON Abilitati per gli Anonimi, registrati



    All logos and trademarks in this site are property of their respective owner.
    The comments are property of their posters, all the rest 2002 by me.
    You can syndicate our news using the file backend.php [RSS] [Valid RSS].

    PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
    Generazione pagina: 0.09 Secondi

    Theme Design by: Lorkan Themes