Newsgroup: it.comp.os.linux.iniziare
Titolo: Router Mandrake

Salve !!!
Ho dei problemi con la mia linux box che non funge da router.
Ha IP addr. 192.168.0.11
E' connessa tramite ppp0 (modem) al provider.
Sulla macchina Win98 ho settato gateway 192.168.0.11 e come DNS il dominio e
l'IP del provider (212.104.1.250).
Da Win Pingo tutto, IP dinamico di linux compreso, ma non L'IP a cui si
collega.
Allego il dump di alcuni comandi che possono esservi utili per capire il
problema...
io ho letto l'impossibile ma non ci riesco...
Uso Mandrake 7.1, ma anche con la 7.0 è la stessa cosa. L'opzione di
installazione è server. Ricompilo il kernel?
Mi date una mano, per favore???
MAssimo
***********************************************************************
[root@srerver rc.d]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:04:35:CB:C1
          inet addr:192.168.0.11  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1874 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1073 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:9 Base address:0xe800
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
ppp0      Link encap:Point-to-Point Protocol
          inet addr:212.104.25.103  P-t-P:212.104.25.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:2 dropped:0 overruns:0 frame:2
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
***********************************************************************
[root@srerver rc.d]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.0.11    0.0.0.0         255.255.255.255 UH    0      0        0 eth0
212.104.25.2    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         212.104.25.2    0.0.0.0         UG    0      0        0 ppp0
[root@srerver rc.d]#
***********************************************************************
[root@srerver rc.d]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
192.168.0.11    0.0.0.0         255.255.255.255 UH        0 0          0
eth0
212.104.25.2    0.0.0.0         255.255.255.255 UH        0 0          0
ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         212.104.25.2    0.0.0.0         UG        0 0          0
ppp0
[root@srerver rc.d]#
***********************************************************************
[root@srerver rc.d]# cat /proc/sys/net/ipv4/ip_forward
1
***********************************************************************
[root@srerver rc.d]# /sbin/ipchains -M -L
IP masquerading entries
***********************************************************************

Risolto:
in /etc/rc.d/rc.local inserire:
modprobe ip_masq_ftp
modprobe ip_masq_irc
Lanciare la connessione:
ifup ppp0
Istruire ipchains per il masquerading:
ipchains -A forward -s 
192.168.0.0/24
 -j MASQ
Fatto.
Che questo possa essere utile agli altri!
Max