[LUG.ro] Lost connection to network (Error Code: 10054)
Matias
lugro@lugro.org.ar
Tue, 31 Jan 2006 16:34:04 -0300
Omar, ahi estan las dos tablas y el /etc/rc.d/rc.local.
La tabla FILTER
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:4662
ACCEPT udp -- anywhere anywhere udp dpt:4672
ACCEPT tcp -- anywhere anywhere tcp
dpts:6881:6889
ACCEPT udp -- anywhere anywhere udp dpt:1214
ACCEPT tcp -- anywhere anywhere tcp dpt:1214
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
__________________________________________________________________________
La tabla NAT
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere anywhere tcp dpt:4662
to:192.168.0.2
DNAT udp -- anywhere anywhere udp dpt:4672
to:192.168.0.2
DNAT tcp -- anywhere anywhere tcp
dpts:6881:6889 to:192.168.0.2
DNAT udp -- anywhere anywhere udp dpt:1214
to:192.168.0.2
DNAT tcp -- anywhere anywhere tcp dpt:1214
to:192.168.0.2
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
__________________________________________________________________________
Mi /etc/rc.d/rc.local
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
ifconfig eth1 20.20.20.20 netmask 255.255.255.128 up
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
adsl-start
route add default dev ppp0
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
#Puetos Emule
iptables -A FORWARD -p tcp --dport 4662 -j ACCEPT
iptables -A PREROUTING -t nat -i ppp0 -p tcp --dport 4662 -j
DNAT --to-destination 192.168.0.2
iptables -A FORWARD -p udp --dport 4672 -j ACCEPT
iptables -A PREROUTING -t nat -i ppp0 -p udp --dport 4672 -j
DNAT --to-destination 192.168.0.2
#Puertos BitTorrent
iptables -A FORWARD -p tcp --dport 6881:6889 -j ACCEPT
iptables -A PREROUTING -t nat -i ppp0 -p tcp --dport 6881:6889 -j
DNAT --to-destination 192.168.0.2
#Puertos Kazza
iptables -A FORWARD -p udp --dport 1214 -j ACCEPT
iptables -A PREROUTING -t nat -i ppp0 -p udp --dport 1214 -j
DNAT --to-destination 192.168.0.2
iptables -A FORWARD -p tcp --dport 1214 -j ACCEPT
iptables -A PREROUTING -t nat -i ppp0 -p tcp --dport 1214 -j
DNAT --to-destination 192.168.0.2
Las iba a enviar pero talves era algo que ya sabian de antemano y era
demaciado texto.
Espero que sea suficiente.
Matias.
> Envió las reglas de IPTABLES, sino no te vamos a poder ayudar mucho.
> Ejecuta estó y envinos el resultado:
>
> #> iptables -L
> #> iptables -t NAT -L
>
> Omar