tag tento zahrabany thread vynasam na svetlo s miernym pokrokom a dalsimi problemami
kupil som D-com WX1590 s tym ze ho pouzijem ako HW klienta na pripojenie k ISP
technik ISP mi ho nastavil a tak som sa zase zacal zaujimat o router zo SLAckware9.1
siet vyzera takto :
ISP - WX1590 - eth0 - NAT - eth1 - LAN
eth0 - realtec 8029 modul skompilovany v jadre
IP 192.168.61.135 mask 255.255.255.240 Bcast: 192.168.61.143
eth1 - realtec 8139 modul skompilovany v jadre
IP 10.53.3.253 mask 255.255.255.0 Bcast: 10.53.3.255
WX1590 - IP 192.168.61.130
GW na ISP IP 192.168.61.129
NAT : rc.local
Kód:
iptables -P FORWARD ACCEPT
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ifconfig :
Kód:
root@darkstar:/home/putty/IPROUTE2.7_N# ifconfig
eth0 Link encap:Ethernet HWaddr 52:54:AB:19:27:52 inet addr:192.168.61.135 Bcast:192.168.61.143 Mask:255.255.255.240 inet6 addr: fe80::5054:abff:fe19:2752/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:133 errors:0 dropped:0 overruns:0 frame:0 TX packets:396 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 RX bytes:11742 (11.4 Kb) TX bytes:31230 (30.4 Kb)
eth1 Link encap:Ethernet HWaddr 00:50:FC:C1:D5:01 inet addr:10.53.3.253 Bcast:10.53.3.255 Mask:255.255.255.0 inet6 addr: fe80::250:fcff:fec1:d501/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:23925 errors:0 dropped:0 overruns:0 frame:0 TX packets:4809 errors:0 dropped:0 overruns:0 carrier:0 collisions:1 RX bytes:2327421 (2.2 Mb) TX bytes:948042 (925.8 Kb)
moduly IPTABLES:
Kód:
root@darkstar:/home/putty/IPROUTE2.7_N# lsmod
Module Size Used by Not tainted
ipt_MASQUERADE 1272 1 (autoclean)
iptable_nat 15928 1 (autoclean) [ipt_MASQUERADE]
ip_conntrack 18120 1 (autoclean) [ipt_MASQUERADE iptable_nat]
iptable_filter 1644 0 (autoclean) (unused)
ip_tables 12288 5 [ipt_MASQUERADE iptable_nat iptable_filter] root@darkstar:/home/putty/IPROUTE2.7_N#
route:
Kód:
root@darkstar:/etc/rc.d# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.61.128 * 255.255.255.240 U 0 0 0 eth0
10.53.3.0 * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.61.129 0.0.0.0 UG 1 0 0 eth0
root@darkstar:/etc/rc.d# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.61.128 0.0.0.0 255.255.255.240 U 0 0 0 eth0
10.53.3.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 192.168.61.129 0.0.0.0 UG 1 0 0 eth0
root@darkstar:/etc/rc.d# cat /proc/sys/net/ipv4/ip_forward
1
root@darkstar:/etc/rc.d#
tagze wo co go ,
z routra sa dopingam na eth1,LAN , eth0, WX1590 , GW a DNS u ISP a dalej nie
z LAN /WIN/ sa dopingam na eth1 , eth0 ,ale na WX1590 a dalej k ISP nie 
pokial pripojim XW1590 cross kablom rovno k mojmu PC tag ping na neho ide , a NET tak isto
vidite niekde chybu , preco sa cez NAT nedopingam na to WX1590