I apologise for the long post in advance.
My iptables were empty (the same as now, see below) so I thought that I'd do a clean install just in case I'd changed something (to aviod needle in a haystack) as I'm only using this pc to learn linux so I'm not losing anything.
My current (new) OS is Ubuntu server 6.06 LAMP option with ubuntu desktop, amule, build-essential packages, I've also run update and upgrade.
I bought a new ethernet PCI card which I'm using now.
I still have the same problem so back to basics seemed the best way so I've tried to cover every step
- I'm running emule ok (High id) on another pc on my lan and amule on this computer (also High id) with ports 4662 and 4672 open so I'm happy that port forwarding with my router is ok
- The fact that amule can act as server (it's uploading files) from this setup also means that tcp data can get out past my router
- Apache2 seems to be working to some extent as it's serving the default page to another computer on my lan (I entered an internal ip into firefox on another computer)
- Since amule can use 4662 I tried to get apache to use it by adding 'Listen 4662 to ports.conf for apache2 and restarted it, still no joy
- I get output for tcpdump dst port 80 and tcpdump port 80 when requesting from external IP so I thought I'd try to run amule on port 80, doesn't work even though the amule test page says that 80's open (anomily ?)
- At all times when trying to request a page I'm using IP address, not FQDN or any other domain name.
- Maybe the IP address(s) I'm using are wrong? portforward.com and myip.dk both give me what I believe to be my extrenal IP address, however whatsmyip.org and amule are a showing different IP address – one that I believe is the IP of my router on my ISP's lan. When I try this IP I get my router's set up page.
- My ip tables are empty (only headers), see below
Router log only lists boot, connection etc – nothing useful
Router seems to be ok (amule works)
apache seems to be ok (can serve to lan IP)
ISP doesn't appear to be blocking access to post 80 (amule test page says port open)
I get a connection refused (111) error on port 80, even though I see output on tcpdump, but error 'Firefox can't establish a connection to the server' on any other port. The errors come up pretty quickly, quicker than I see the tcpdump output and not slow enough for a genuine timeout/server not responding.
The most obvious thing to me is that the protocol for apache2 is tcp6, not tcp – why is that? Can my ISP handle tcp6? (they won't tell me as I'm sure they don't know themselves, I only have the choice of 1 ISP and they're useless) Can I change it to tcp to eliminate it? All I did to install the new ethernet card was put it in and boot – could there be a problem with the driver? Can I follow the packets (how)?
netstat -lp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:36230 *:* LISTEN 4302/hpiod
tcp 0 0 localhost:mysql *:* LISTEN 4596/mysqld
tcp 0 0 *:4662 *:* LISTEN 6721/amule
tcp 0 0 localhost:ipp *:* LISTEN 5373/cupsd
tcp 0 0 localhost:60314 *:* LISTEN 4308/python
tcp6 0 0 *:www *:* LISTEN 6642/apache2
tcp6 0 0 *:81 *:* LISTEN 6642/apache2
udp 0 0 *:4665 *:* 6721/amule
udp 0 0 *:4672 *:* 6721/amule
amule output
tcpdump dst -i2 port 4662
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
01:09:00.601442 IP 195-150-178-66.jtb.pl.distcc > 192.168.1.4.4662: P 984866779:984866862(83) ack 457039173 win 65300
01:09:00.648000 IP 192.168.1.4.57565 > 195.74.247.98.4662: F 360434971:360434971(0) ack 3118294436 win 1728 <nop,nop,timestamp 243550 4338418>
01:09:00.651018 IP 195-150-178-66.jtb.pl.distcc > 192.168.1.4.4662: P 83:138(55) ack 1 win 65300
01:09:00.757998 IP 192.168.1.4.49706 > dslb-088-073-052-050.pools.arcor-ip.net.4662: P 455262406:455262428(22) ack 1978081104 win 1728 <nop,nop,timestamp 243561 2745896>
01:09:00.789720 IP 192.168.1.4.47249 > 201.37.227.32.4662: . ack 3253590533 win 1460 <nop,nop,timestamp 243564 202607>
^F^X01:09:00.955511 IP 81.240.132.176.50950 > 192.168.1.4.4662: . ack 460441369 win 65217
6 packets captured
584 packets received by filter
462 packets dropped by kernel
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Output when using exteral IP address to request
tcpdump dst -i2 port 80
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
01:19:58.426512 IP 192.168.1.4.35962 > pppBKK-150-132.pacific.net.th.www: S 1156142549:1156142549(0) win 5840 <mss 1460,sackOK,timestamp 309327 0,nop,wscale 2>
01:19:58.872206 IP 192.168.1.4.35962 > pppBKK-150-132.pacific.net.th.www: . ack 4028938538 win 1460 <nop,nop,timestamp 309372 459915587>
01:19:58.872383 IP 192.168.1.4.35962 > pppBKK-150-132.pacific.net.th.www: P 0:422(422) ack 1 win 1460 <nop,nop,timestamp 309372 459915587>
01:19:59.293302 IP 192.168.1.4.35962 > pppBKK-150-132.pacific.net.th.www: . ack 1349 win 2184 <nop,nop,timestamp 309414 459915628>
01:19:59.294867 IP 192.168.1.4.35962 > pppBKK-150-132.pacific.net.th.www: . ack 1430 win 2184 <nop,nop,timestamp 309414 459915628>
^X
5 packets captured
10 packets received by filter
0 packets dropped by kernel
tcpdump -i2 port 80
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
01:21:58.270402 IP 192.168.1.4.35964 > pppBKK.www: S 1284248063:1284248063(0) win 5840 <mss 1460,sackOK,timestamp 321312 0,nop,wscale 2>
01:21:58.909341 IP pppBKK.www > 192.168.1.4.35964: S 4162375405:4162375405(0) ack 1284248064 win 5792 <mss 1360,sackOK,timestamp 459927591 321312,nop,wscale 0>
01:21:58.909454 IP 192.168.1.4.35964 > pppBKK.www: . ack 1 win 1460 <nop,nop,timestamp 321376 459927591>
01:21:58.918413 IP 192.168.1.4.35964 > pppBKK.www: P 1:423(422) ack 1 win 1460 <nop,nop,timestamp 321377 459927591>
01:21:59.568870 IP pppBKK.www > 192.168.1.4.35964: . ack 423 win 6432 <nop,nop,timestamp 459927657 321377>
01:21:59.700681 IP pppBKK.www > 192.168.1.4.35964: . 1:1349(1348) ack 423 win 6432 <nop,nop,timestamp 459927669 321377>
01:21:59.700750 IP 192.168.1.4.35964 > pppBKK.www: . ack 1349 win 2184 <nop,nop,timestamp 321455 459927669>
01:21:59.701899 IP pppBKK.www > 192.168.1.4.35964: P 1349:1430(81) ack 423 win 6432 <nop,nop,timestamp 459927669 321377>
01:21:59.701957 IP 192.168.1.4.35964 > pppBKK.www: . ack 1430 win 2184 <nop,nop,timestamp 321455 459927669>
^X
9 packets captured
18 packets received by filter
0 packets dropped by kernel
amule porttest webpage successful on port 80
tcpdump -i2 port 80
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
01:41:59.871814 IP 192.168.1.4.41066 > 1.0.0.0.www: P 2507444376:2507444865(489) ack 1083300088 win 1728 <nop,nop,timestamp 441471 460043888>
01:42:00.242375 IP 1.0.0.0.www > 192.168.1.4.41066: . ack 489 win 7504 <nop,nop,timestamp 460047729 441471>
01:42:01.016957 IP 1.0.0.0.www > 192.168.1.4.41066: P 1:824(823) ack 489 win 7504 <nop,nop,timestamp 460047805 441471>
01:42:01.017027 IP 192.168.1.4.41066 > 1.0.0.0.www: . ack 824 win 2140 <nop,nop,timestamp 441586 460047805>
01:42:16.745726 IP 1.0.0.0.www > 192.168.1.4.41064: F 1086988376:1086988376(0) ack 2503559107 win 6432 <nop,nop,timestamp 460049379 437246>
01:42:16.778008 IP 192.168.1.4.41064 > 1.0.0.0.www: . ack 1 win 1728 <nop,nop,timestamp 443163 460049379>
01:42:17.044069 IP 192.168.1.4.41065 > 1.0.0.0.www: P 2501251009:2501251496(487) ack 1084090170 win 1996 <nop,nop,timestamp 443189 460044712>
01:42:17.376210 IP 1.0.0.0.www > 192.168.1.4.41065: . ack 487 win 8816 <nop,nop,timestamp 460049442 443189>
01:42:18.531348 IP 1.0.0.0.www > 192.168.1.4.41065: P 1:677(676) ack 487 win 8816 <nop,nop,timestamp 460049557 443189>
01:42:18.531417 IP 192.168.1.4.41065 > 1.0.0.0.www: . ack 677 win 2334 <nop,nop,timestamp 443338 460049557>
01:42:23.118435 IP 192.168.1.4.41064 > 1.0.0.0.www: F 1:1(0) ack 1 win 1728 <nop,nop,timestamp 443797 460049379>
01:42:23.667918 IP 1.0.0.0.www > 192.168.1.4.41064: . ack 2 win 6432 <nop,nop,timestamp 460050071 443797>
^X
12 packets captured
24 packets received by filter
0 packets dropped by kernel
Recent comments
5 hours 33 min ago
12 hours 14 min ago
16 hours 4 min ago
17 hours 43 min ago
1 day 2 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 15 hours ago
1 day 20 hours ago
1 day 20 hours ago