[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]Buenos dias,
Ojala y me puedan ayudar en este atoron que traigo.
Contrate infinitud para la casa, y me gusta y estoy empezando esto del
linux, asi que tengo una computadora con RED HAT 8.0, y tambien una con
XP que usa mi esposa y mi hijo.
Tengo una red local para cuando llevo mi laptop, asi que la red local
tiene las siguientes direcciones
Windows XP 10.1.1.50
Laptop 10.1.1.47
Linux 10.1.1.21
Al Linux tambien le puse otra tarjeta con la ip 10.0.0.1
Ya pude (después de muchos dias) hacer que el linux se conectara al
infinitud, pero tratando de poner al alinux como gateway/firewall no he
podido.
Segui las instrucciones de la siguiente liga que me parecio buena
http://www.yolinux.com/TUTORIALS/LinuxTutorialNetworkGateway.html
y segui al pie de la letra el ejemplo 2.
No he podido hacer que funcione..... :(
Alguna recomendación ?
Les anexo el script que corre cuando arranca,
Un route -n
ifconfig
e iptables -L
Muchas Gracias.
ARMZ
#comando que se ejecutan en el arranque
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface eth0 -j
MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
[root@LinuxTron init.d]#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
148.223.26.77 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
200.67.48.198 127.0.0.1 255.255.255.255 UGH 0 0 0
lo
10.0.0.0 10.0.0.1 255.255.255.0 UG 0 0 0
eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
10.1.1.0 10.1.1.21 255.255.255.0 UG 0 0 0
eth1
10.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 148.223.26.77 0.0.0.0 UG 0 0 0
ppp0
[root@LinuxTron init.d]#
[root@LinuxTron init.d]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:AD:73:27:E5
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59 errors:0 dropped:0 overruns:0 frame:0
TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3955 (3.8 Kb) TX bytes:8826 (8.6 Kb)
Interrupt:11 Base address:0xc800
eth1 Link encap:Ethernet HWaddr 00:80:AD:71:39:2C
inet addr:10.1.1.21 Bcast:10.1.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:91 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:100
RX bytes:9454 (9.2 Kb) TX bytes:6709 (6.5 Kb)
Interrupt:10 Base address:0xcc00
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:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:700 (700.0 b) TX bytes:700 (700.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:200.67.48.198 P-t-P:148.223.26.77
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1060 (1.0 Kb) TX bytes:4616 (4.5 Kb)
[root@LinuxTron init.d]#
[root@LinuxTron init.d]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@LinuxTron init.d]#
_______________________________________________
Ayuda mailing list
Ayuda en linux org mx
Para salir de la lista: http://mail.linux.org.mx/mailman/listinfo/ayuda/