1 |
--- Walter Dnes <waltdnes@××××××××.org> wrote: |
2 |
|
3 |
> On Sat, Mar 25, 2006 at 02:11:01PM -0800, maxim |
4 |
> wexler wrote |
5 |
> |
6 |
> > So both PCs have that line in their /hosts file |
7 |
> now. |
8 |
> > So I oughta be able to ftp gravity from one or the |
9 |
> > other and get connected, right? But it doesn't |
10 |
> work |
11 |
> > :^( |
12 |
> > |
13 |
> > Does ftp work for you? |
14 |
> |
15 |
> There are several places where things can go |
16 |
> wrong. Here are some |
17 |
> boobytraps that I've found out about "the hard way". |
18 |
> Put it this |
19 |
> way... doing things right comes from experience... |
20 |
> "experience" comes |
21 |
> from doing things wrong<g>. |
22 |
> |
23 |
> - are you sure you're running ftpd on the target |
24 |
> machine? |
25 |
|
26 |
Well top and ps list ftp without the 'd' on the end |
27 |
as running. And ftp starts with the ftp> prompt. If |
28 |
that's what you mean. |
29 |
|
30 |
> |
31 |
> - check the logs on both machines to ensure that |
32 |
> neither one is |
33 |
> rejecting packets from the other by iptables |
34 |
> rules |
35 |
|
36 |
Nothing in the logs. Maybe I need a LAN specific |
37 |
logger? All I got is syslog-ng on both machines. |
38 |
|
39 |
There is this, which is identical on both machines |
40 |
with different numbers of course: |
41 |
|
42 |
sarawak heathen # tcpdump -v |
43 |
tcpdump: listening on eth0, link-type EN10MB |
44 |
(Ethernet), capture size 96 bytes |
45 |
19:44:10.942027 arp who-has 192.168.0.3 tell |
46 |
gravity.twi-31o2.org |
47 |
19:44:12.515686 arp reply 192.168.0.3 is-at |
48 |
00:e0:18:99:88:77 (oui Unknown) |
49 |
19:44:10.942092 IP (tos 0x0, ttl 64, id 38827, offset |
50 |
0, flags [DF], proto: TCP (6), length: 60) |
51 |
gravity.twi-31o2.org.53486 > 192.168.0.3.ftp: S, cksum |
52 |
0xa947 (correct), 3719721500:3719721500(0) win 5840 |
53 |
<mss 1460,sackOK,timestamp 648631 0,nop,wscale 2> |
54 |
19:44:10.942110 IP (tos 0x0, ttl 64, id 127, offset |
55 |
0, flags [DF], proto: TCP (6), length: 40) |
56 |
192.168.0.3.ftp > gravity.twi-31o2.org.53486: R, cksum |
57 |
0x0da3 (correct), 0:0(0) ack 3719721501 win 0 |
58 |
19:44:15.940760 arp who-has gravity.twi-31o2.org tell |
59 |
192.168.0.3 |
60 |
19:44:15.940877 arp reply gravity.twi-31o2.org is-at |
61 |
00:04:75:8a:cf:84 (oui Unknown) |
62 |
|
63 |
You'll notice that last number *is* the hardware |
64 |
address on the remote machine(see below). So there has |
65 |
been some sort of communication between the two but |
66 |
then it shuts off. |
67 |
|
68 |
> |
69 |
> - post the output of "grep -v ^# /etc/hosts" and |
70 |
> "ifconfig eth0" and |
71 |
> "route -n" from both machines |
72 |
|
73 |
------------K6-2.6.15---------------------- |
74 |
|
75 |
lumberton ~ # ifconfig eth0 |
76 |
eth0 Link encap:Ethernet HWaddr |
77 |
00:04:75:8A:CF:84 |
78 |
inet addr:192.168.0.2 Bcast:192.168.0.255 |
79 |
Mask:255.255.255.0 |
80 |
UP BROADCAST RUNNING MULTICAST MTU:1500 |
81 |
Metric:1 |
82 |
RX packets:10 errors:0 dropped:0 overruns:0 |
83 |
frame:0 |
84 |
TX packets:11 errors:0 dropped:0 overruns:0 |
85 |
carrier:0 |
86 |
collisions:0 txqueuelen:1000 |
87 |
RX bytes:614 (614.0 b) TX bytes:702 (702.0 |
88 |
b) |
89 |
Interrupt:9 Base address:0x4f80 |
90 |
|
91 |
lumberton ~ # route -n |
92 |
Kernel IP routing table |
93 |
Destination Gateway Genmask Flags |
94 |
Metric Ref Use Iface |
95 |
192.168.0.0 0.0.0.0 255.255.255.0 U |
96 |
0 0 0 eth0 |
97 |
127.0.0.0 127.0.0.1 255.0.0.0 UG |
98 |
0 0 0 lo |
99 |
|
100 |
lumberton ~ # grep -v ^# /etc/hosts |
101 |
|
102 |
127.0.0.1 localhost |
103 |
192.168.0.3 gravity.twi-31o2.org gravity |
104 |
|
105 |
lumberton ~ # emerge -pv ftp |
106 |
|
107 |
These are the packages that I would merge, in order: |
108 |
|
109 |
Calculating dependencies ...done! |
110 |
[ebuild R ] net-ftp/ftp-0.17-r6 +ipv6 +ssl 0 kB |
111 |
|
112 |
Total size of downloads: 0 kB |
113 |
|
114 |
----------------Sempron-2.6.12------------------------ |
115 |
|
116 |
|
117 |
sarawak heathen # ifconfig eth0 |
118 |
eth0 Link encap:Ethernet HWaddr |
119 |
00:E0:18:99:88:77 |
120 |
inet addr:192.168.0.3 Bcast:192.168.0.255 |
121 |
Mask:255.255.255.0 |
122 |
UP BROADCAST RUNNING MULTICAST MTU:1500 |
123 |
Metric:1 |
124 |
RX packets:19 errors:0 dropped:0 overruns:0 |
125 |
frame:0 |
126 |
TX packets:19 errors:0 dropped:0 overruns:0 |
127 |
carrier:0 |
128 |
collisions:0 txqueuelen:1000 |
129 |
RX bytes:1182 (1.1 Kb) TX bytes:994 (994.0 |
130 |
b) |
131 |
Interrupt:11 Base address:0x2000 |
132 |
sarawak heathen # route -n |
133 |
Kernel IP routing table |
134 |
Destination Gateway Genmask Flags |
135 |
Metric Ref Use Iface |
136 |
64.228.98.241 0.0.0.0 255.255.255.255 UH |
137 |
0 0 0 ppp0 |
138 |
192.168.0.0 0.0.0.0 255.255.255.0 U |
139 |
0 0 0 eth0 |
140 |
127.0.0.0 127.0.0.1 255.0.0.0 UG |
141 |
0 0 0 lo |
142 |
0.0.0.0 64.228.98.241 0.0.0.0 UG |
143 |
0 0 0 ppp0 |
144 |
|
145 |
sarawak heathen # grep -v ^# /etc/hosts |
146 |
|
147 |
127.0.0.1 sarawak localhost |
148 |
192.168.0.2 gravity.twi-31o2.org gravity |
149 |
::1 ip6-localhost ip6-loopback #hmm, |
150 |
fe00::0 ip6-localnet #more |
151 |
ff00::0 ip6-mcastprefix #stuff |
152 |
ff02::1 ip6-allnodes #here |
153 |
ff02::2 ip6-allrouters |
154 |
ff02::3 ip6-allhosts |
155 |
|
156 |
sarawak heathen # emerge -pv ftp |
157 |
|
158 |
These are the packages that I would merge, in order: |
159 |
|
160 |
Calculating dependencies ...done! |
161 |
[ebuild R ] net-ftp/ftp-0.17-r6 +ipv6 +ssl 0 kB |
162 |
|
163 |
Total size of downloads: 0 kB |
164 |
|
165 |
|
166 |
|
167 |
__________________________________________________ |
168 |
Do You Yahoo!? |
169 |
Tired of spam? Yahoo! Mail has the best spam protection around |
170 |
http://mail.yahoo.com |
171 |
-- |
172 |
gentoo-user@g.o mailing list |