[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

router debian



Salve a tutti,
Volevo realizzare un router con un vecchio Pc
per cndividere la conn ADSL tra i PC della mia rete.

Conf:

ISP---Modem---Router---switch---PcHost

Router:
(Debian Sarge kernel 2.4 IPTables)
eth0 (connessa al modem)
eth1 (connessa allo switch)
      /etc/network/interfaces
      "eth1 iface inet static
       address 192.168.1.1
       netmask  255.255.255.0
       network  192.168.1.0
       broadcast 192.168.1.255
       auto eth1"

PcHost /etc/network/interfaces
       "eth0 iface inet static
        add 192.168.1.3
        mask 255.255.255.0
        net 192.168.1.0
        bc 192.168.1.255
        gateway 192.168.1.1
        auto eth0"

Dati:
# iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE 
# echo 1 > /proc/sys/net/ipv4/ip_forward 

dal PcHost non riesco a raggiungere internet.
Mentre se provo ad usare internet dal router tutto 
funzina?

Cosa ho sbagliato??
Grazie mille a chiunque legge 
e vorrà darmi una mano.  

________________________________________________________________________
SERVIZIO VOICE: TELEFONA e INVIA SMS dal tuo computer a tariffe vantaggiose! 
Scopri come telefonare e videochiamare gratis da pc a pc.
http://voice.repubblica.it





Reply to: