![]()
From: Metin KARAKUS (mkarakus@doktoroglu.net)
Date: Wed 07 Apr 2004 - 15:33:33 EEST
Sayın Serdar Köylü
Uzun ugraslar sonucu router ip sini degistirdik
yenisi 192.168.254.1 oldu routera bakan ethernet yuzude 192.168.254.2 oldu
rc.local dosyasını soyle duzenledim
route add default gw 10.0.0.2 dev eth0
route add default gw 192.168.254.1 dev eth2
route add 192.168.254.0/24 gw 192.168.254.1
ip route add 192.168.6.8 via 192.168.254.1 dev eth2
ip route add 192.168.14.8 via 192.168.254.1 dev eth2
ip route add 192.168.2.25 via 192.168.254.1 dev eth2
ip route add 10.201.2.18 via 192.168.254.1 dev eth2
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
simdi cıktıları veriyorum.
> ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:26:7E:A9:BD
inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:741 errors:0 dropped:0 overruns:0 frame:0
TX packets:815 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:223580 (218.3 Kb) TX bytes:81355 (79.4 Kb)
Interrupt:17 Base address:0x2000
eth1 Link encap:Ethernet HWaddr 00:D0:B7:88:35:37
inet addr:174.20.3.140 Bcast:174.20.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1629 errors:0 dropped:0 overruns:0 frame:0
TX packets:1514 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:179450 (175.2 Kb) TX bytes:457552 (446.8 Kb)
Interrupt:21 Base address:0x2000 Memory:f4100000-f4100038
eth2 Link encap:Ethernet HWaddr 00:08:A1:16:E4:C0
inet addr:192.168.254.2 Bcast:192.168.254.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:150 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:23465 (22.9 Kb) TX bytes:17025 (16.6 Kb)
Interrupt:23 Base address:0x3000
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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:836 (836.0 b) TX bytes:836 (836.0 b)
> traceroute -n 192.168.2.25
traceroute to 192.168.2.25 (192.168.2.25), 30 hops max, 38 byte packets
1 192.168.254.1 2.072 ms 1.643 ms 1.706 ms
2 10.201.23.6 23.729 ms !X * 23.973 ms !X
> route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.6.8 192.168.254.1 255.255.255.255 UGH 0 0 0 eth2
192.168.2.25 192.168.254.1 255.255.255.255 UGH 0 0 0 eth2
192.168.14.8 192.168.254.1 255.255.255.255 UGH 0 0 0 eth2
10.201.2.18 192.168.254.1 255.255.255.255 UGH 0 0 0 eth2
174.20.3.0 * 255.255.255.0 U 0 0 0 eth1
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.254.0 * 255.255.255.0 U 0 0 0 eth2
169.254.0.0 * 255.255.0.0 U 0 0 0 eth2
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.0.0.2 0.0.0.0 UG 0 0 0 eth0
default 192.168.254.1 0.0.0.0 UG 0 0 0 eth2
aslında sorun olmaması lazım ama simdi sorun su her iki agada ping
atabiliyorum.internet ok.Ama LL dosya yollayabiliyim fakat alamıyom.
örnegin gümrük ftp sine dostan gidiyorum kullanıcı şifre giriyorum ftp
dusuyor ama hicbir komut kullanamıyorum baglantı kesiliyor.
kullandıgım programlarda "500 illegal port" command deyip kalıyor.
çıldıracagım kac zamandır duzelmedi bu sorun
![]()