rafael wrote:
Oe galera da lista.
Instalei o kurumin e aos poucos estou configurando as coisas por aqui, estou com problema no compartilhamento da internet para um micro com window$xp, configurei o samba e compartilha arquivos tranquilo, porem a internet est� dif�cil... Tentei com ip fixo, ou com servidor DHCP, executei varios comando com iptable e naum obtive sucesso.. ""#"$""%. Tenho um modem d-link500G router, na eth1 e a rede local com cross-over na eth0, ja inverti e naum adiantou tmb.. Se alguem puder me ajudar...com uma dica ou link q solucione o problema..
primeiro: quem � o GW? o linux?
#ifconfig
eth0 Encapsulamento do Link: Ethernet Endere�o de HW 00:11:5B:6B:2A:D7 inet end.: 192.168.0.1 Bcast:192.168.0.255 Masc:255.0.0.0
J� comecou errado: netmask e broadcast n�o batem. escolha 192.168.0.1/255.255.255.0 bcast: 192.168.0.255
endere�o inet6: fe80::211:5bff:fe6b:2ad7/64 Escopo:Link UP BROADCASTRUNNING MULTICAST MTU:1500 M�trica:1 RX packets:1475 errors:1 dropped:0 overruns:0 frame:1 TX packets:3894 errors:0 dropped:2 overruns:0 carrier:0 colis�es:0 txqueuelen:1000 RX bytes:183213 (178.9 KiB) TX bytes:457566 (446.8 KiB) IRQ:7 Endere�o de E/S:0xe400
eth1 Encapsulamento do Link: Ethernet Endere�o de HW 00:02:2A:D8:46:B1 inet end.: 10.1.1.5 Bcast:10.255.255.255 Masc:255.0.0.0 endere�o inet6: fe80::202:2aff:fed8:46b1/64 Escopo:Link UP BROADCASTRUNNING MULTICAST MTU:1500 M�trica:1 RX packets:2900 errors:0 dropped:0 overruns:0 frame:0 TX packets:3149 errors:0 dropped:0 overruns:0 carrier:0 colis�es:0 txqueuelen:1000 RX bytes:2378441 (2.2 MiB) TX bytes:445048 (434.6 KiB) IRQ:11 Endere�o de E/S:0xdc00
#Router
Destino Roteador M�scaraGen. Op��es M�trica Ref Uso Iface 192.0.0.0 * 255.0.0.0 U 0 0 0 eth0 10.0.0.0 * 255.0.0.0 U 0 0 0 eth1 default 10.1.1.1 0.0.0.0 UG 0 0 0 eth1 default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
n�o sei se vc pode ter duas rotas defaut - pra mim � estranho. Deixe apenas q a aponta pra fora da sua rede, a interent. acho que � a primeira.
#Ping em win$xp
[EMAIL PROTECTED]:~$ ping 192.168.0.200 PING 192.168.0.200 (192.168.0.200): 56 data bytes 64 bytes from 192.168.0.200: icmp_seq=0 ttl=128 time=0.4 ms 64 bytes from 192.168.0.200: icmp_seq=1 ttl=128 time=0.4 ms 64 bytes from 192.168.0. 200: icmp_seq=2 ttl=128 time=0.4 ms 64 bytes from 192.168.0.200: icmp_seq=3 ttl=128 time=0.3 ms 64 bytes from 192.168.0.200: icmp_seq=4 ttl=128 time=0.4 ms
#iptable -L
Chain INPUT (policy ACCEPT) target prot opt source destination
Chain FORWARD (policy ACCEPT) target prot opt source destination
Chain OUTPUT (policy ACCEPT) target prot opt source destination
Chain VALID_CHECK (0 references) target prot opt source destination
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT tcp -- anywhere anywhere tcp dpts:0:afs3-fileserver to:192.168.0.2 DNAT udp -- anywhere anywhere udp dpts:0:afs3-fileserver to:192.168.0.2
Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT) target prot opt source destination
aqui eu j� nao sei de cabe�a, mas qquer tutorial na net deve mostrar issso pra vc.
#/etc/resolv.conf
nameserver 10.1.1.1
=======================================
Acima configura�ao, vou evitar muda-las at� receber noticias da lista!
Pode mexer a vontade, obviamente vc tem q saber desfazer *tudo* o que vc mudar, afinal somos �timos admins e sempre temos o cuidado de anotar exatamente o que fazemos :-)
Rede � deterministico! Pode mexer e desmexer q eu garanto que volta ao estado anterior. ;-)
-- Marcos
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

