Да лан не греши на меня, доку я всю прально читал по этому и обратился к вам.
Слушай ты будешь смеятся,но не работает на 2.4.34 уже три раза загружал, ну конфиг который ты сказал попробывать!!! Потом сел и ядро перекомпилил, но уже версии 2.4.33 конфиг взял от предыдущего 2.4.34 ничего не менял! И все заработало ))))Все тоже самое но в 2.4.34:
iptables -L -vn:
Chain INPUT (policy ACCEPT 12 packets, 1568 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 4 packets, 245 bytes)
pkts bytes target prot opt in out source destination
iptables -t nat -L -vn:
Chain PREROUTING (policy ACCEPT 108 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 3 packets, 218 bytes)
pkts bytes target prot opt in out source destination
44 2474 SNAT all -- * ppp0 0.0.0.0/0 0.0.0.0/0 to:85.21.145.99
Chain OUTPUT (policy ACCEPT 5 packets, 218 bytes)
pkts bytes target prot opt in out source destination
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:04:23:47:2E:8B
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3977 errors:0 dropped:0 overruns:0 frame:0
TX packets:2781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1580147 (1.5 Mb) TX bytes:1399584 (1.3 Mb)
Base address:0x7000 Memory:f0200000-f0220000
eth1 Link encap:Ethernet HWaddr 00:04:23:47:2E:8C
inet addr:172.168.0.1 Bcast:172.168.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:529 errors:0 dropped:0 overruns:0 frame:0
TX packets:3532 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:1000
RX bytes:77159 (75.3 Kb) TX bytes:276297 (269.8 Kb)
Interrupt:18 Base address:0x8840 Memory:f0321000-f0321038
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:7013 errors:0 dropped:0 overruns:0 frame:0
TX packets:7013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:778792 (760.5 Kb) TX bytes:778792 (760.5 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:85.21.145.99 P-t-P:10.20.253.224 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1
RX packets:865 errors:0 dropped:0 overruns:0 frame:0
TX packets:868 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:741481 (724.1 Kb) TX bytes:648189 (632.9 Kb)
route -n:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.20.253.224 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
172.168.0.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 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
cat /proc/sys/net/ipv4/ip_forward:
1
PS: Ребят большое спасибо за помощь и за потраченное время!
Только до сих пор не понимаю почему не работает тоже самое в 2.4.34.
Вот смотри:
iptables -L -vn:
Chain INPUT (policy ACCEPT 1869 packets, 580K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 411 packets, 141K bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 3159 packets, 688K bytes)
pkts bytes target prot opt in out source destination
iptables -t nat -L -vn:
Chain PREROUTING (policy ACCEPT 1333 packets, 1250K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 27 packets, 1896 bytes)
pkts bytes target prot opt in out source destination
44 2474 SNAT all -- * ppp0 0.0.0.0/0 0.0.0.0/0 to:85.21.145.99
Chain OUTPUT (policy ACCEPT 126 packets, 10010 bytes)
pkts bytes target prot opt in out source destination
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:04:23:47:2E:8B
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3977 errors:0 dropped:0 overruns:0 frame:0
TX packets:2781 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1580147 (1.5 Mb) TX bytes:1399584 (1.3 Mb)
Base address:0x7000 Memory:f0200000-f0220000
eth1 Link encap:Ethernet HWaddr 00:04:23:47:2E:8C
inet addr:172.168.0.1 Bcast:172.168.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:529 errors:0 dropped:0 overruns:0 frame:0
TX packets:3532 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:1000
RX bytes:77159 (75.3 Kb) TX bytes:276297 (269.8 Kb)
Interrupt:18 Base address:0x8840 Memory:f0321000-f0321038
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:7013 errors:0 dropped:0 overruns:0 frame:0
TX packets:7013 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:778792 (760.5 Kb) TX bytes:778792 (760.5 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:85.21.145.99 P-t-P:10.20.253.224 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1
RX packets:865 errors:0 dropped:0 overruns:0 frame:0
TX packets:868 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:741481 (724.1 Kb) TX bytes:648189 (632.9 Kb)
route -n:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.20.253.224 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
172.168.0.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 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
cat /proc/sys/net/ipv4/ip_forward:
1