Re: ADSL e iptables (2x eth)
>
> L'ultima cosa che vi chiedo, giusto per imparare la teoria: la
> connessione ppp mi assegna un ip con netmask 255.255.255.255, mentre
> le macchine interne hanno come netmask 255.255.255.0 e ip di classe
> 192.168.0.x
>
> Ci sono problemi?
>
no, e' cosi che dev'essere
per completezza ti posto l'ifconfig del mio proxy aziendale che usa una
adsl su pppoe di infostrada
blackbox:/# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:A7:1A:9B:D2
inet addr:192.168.22.19 Bcast:192.168.22.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4267360 errors:36851 dropped:0 overruns:0 frame:0
TX packets:5736291 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:635914401 (606.4 MiB) TX bytes:987221614 (941.4 MiB)
Interrupt:10 Base address:0xd000
eth1 Link encap:Ethernet HWaddr 00:0E:A6:0D:BD:F4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5294996 errors:0 dropped:0 overruns:0 frame:0
TX packets:5368184 errors:0 dropped:0 overruns:0 carrier:0
collisions:6961 txqueuelen:1000
RX bytes:835170556 (796.4 MiB) TX bytes:787487684 (751.0 MiB)
Interrupt:15 Memory:dc000000-dc001080
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1092 errors:0 dropped:0 overruns:0 frame:0
TX packets:1092 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:65520 (63.9 KiB) TX bytes:65520 (63.9 KiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:151.41.XX.XX P-t-P:151.6.XX.XX Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1002239 errors:0 dropped:0 overruns:0 frame:0
TX packets:1015298 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:961668532 (917.1 MiB) TX bytes:122186608 (116.5 MiB)
e la tabella di routing
blackbox:/# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
151.6.XX.XX 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.22.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 151.6.XX.XX 0.0.0.0 UG 0 0 0 ppp0
per la cronaca e' una debian woody. :-)
LoSpippolo
Murphy era un ottimista.
Reply to: