Author Topic: Internet Connection Issues (not The Zs Fault)  (Read 3505 times)

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Internet Connection Issues (not The Zs Fault)
« on: December 13, 2004, 12:28:20 pm »
I was hoping to get an ADSL ethernet modem, which would solve everything, but thats taking a while.
I have a pc running window$ xp connected to the internet.
This is connected to my ethernet and shares the internet using a proxy.
My Z is connected to my laptop via usbnetwork/irda/whatever, which runs Slackware Linux 9.1 (kernel 2.6.8.1).
My laptop can access the internet.
My Z can ping my laptop and the window$ pc.
The windows pc can ping my laptop and my Z.
But the proxy server is bound to the ethernet subnet. Now I was hoping that it would let the Z through as it is coming from that interface, but i dont think it is. Due to the inherrent security issues with windows, it also has to run a firewall when connected to the net, and I cant test to see if its the firewall or the proxy server which is blocking the z.

I have the following problems:
1. ipkg doesnt support proxies
2. the proxy doesnt want to let the z through anyway

I have broadband, and I dont mind spending a day or two downloading the entire feed, but I can't use ftp (due to that ****ing proxy!), and afaik there are no ftp servers anyway. How do I download everything in the feed without manually downloading every file individually?

Thanks for the help
Simon
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Internet Connection Issues (not The Zs Fault)
« Reply #1 on: December 13, 2004, 02:43:03 pm »
Do you have iptables masquerading setup to let your zaurus through?

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

That will make all your network connections on your laptop look like they are your network card.  Which should let your Z browse the net and you wont have to worry about the proxy (as long as your laptop is already setup for it).

Look here for more info on downloading the feed.
https://www.oesf.org/forums/inde...?showtopic=8898

I followed HRW's advice for the upgrade feed, and it seems to have worked, but in the past, using 'wget -m <URL>' always went into the parent directories and started downloading c7x0 stuff.
« Last Edit: December 13, 2004, 02:45:17 pm by MrSquishy »

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Internet Connection Issues (not The Zs Fault)
« Reply #2 on: December 23, 2004, 04:11:12 pm »
I think I am missing something. Is there somewhere in Linux I can define a proxy for all traffic to go through, without having to define the proxy in every program (many of which do not support proxies)?
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Internet Connection Issues (not The Zs Fault)
« Reply #3 on: January 05, 2005, 11:13:31 am »
OK, I have found out that using iptables it is possible to forward ports, so on my laptop:
Code: [Select]
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -s 192.168.40.0/24 -p tcp --dport 80 -j DNAT --to 192.168.38.2:8080
iptables -t nat -A POSTROUTING -s 192.168.40.0/24 -d 192.168.38.0/24 -j MASQUERADE
so everything that comes from the z and is destined for port 80 gets sent to port 8080 (the proxy server) on the window$ pc. Everything which comes from the z and is destined for the ethernet network is made to look like it comes from my laptop.

This seems to have worked for the package manager, but konqueror doesn't want to play the game, even if I tell it to use the proxy server (which should bypass the first rule, but not the second). It seems to be a dns problem- I have had problems with this before, but I haven't the faintest how to fix it. The other strange thing is that 'iptables -t nat -L -v' shows that the first rule isn't actually doing anything, 0 packets, 0 bytes have gone through it, even when the package manager has updated it's lists. If this is really true, how the heck is the package manager getting out to the net? It doesn't know about the proxy server, and it's even managing to resolve domain names, which konqueror can't even when using the proxy.

When using a proxy, where does a program resolve domain names?

EDIT: Ok, I'd forgotten I'd set the packagemanager up for the proxy, but with the disabled it can still get out to the net, with 0 packets showing up on the port redirect rule.
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Internet Connection Issues (not The Zs Fault)
« Reply #4 on: January 05, 2005, 12:28:37 pm »
OK- it's definately a dns problem, I found the ip for google (216.239.59.99) and konqueror can get there, but www.google.com doesn't work.

I don't know where it's supposed to be resolving names from: my laptop's web browser is set to use the proxy and it just works- i didn't have to do anything about dns. I have tried setting the z to use my isps nameservers, to use my laptop as a nameserver and to use the window$ machine as a nameserver, but none of that worked.

I also tried setting up an iptables rule to forward all traffic from the z to the proxy server, but that didn't work either.

Thanks
Simon
« Last Edit: January 05, 2005, 12:30:57 pm by systemparadox »
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

BarryW

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
    • http://
Internet Connection Issues (not The Zs Fault)
« Reply #5 on: January 05, 2005, 12:36:35 pm »
Couldn't you just pick up a wireless router?  Officecrack has them for like $50 now.
What's this button do??

C3100
Distro changes almost weekly...

C3200
Distro also changes almost weekly...  :)

Hardware hacks and stuff.

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Internet Connection Issues (not The Zs Fault)
« Reply #6 on: January 05, 2005, 01:01:38 pm »
Quote
Couldn't you just pick up a wireless router? Officecrack has them for like $50 now.
Certainly an option, but there are other methods of getting a network connection.
Im sure he is aware of the easy ones, but there are times you may need to be on a network and use your CF slot for something else.

@systemparadox
What does your /etc/resolv.conf look like on your Zaurus (and your laptop).
What is your ouput for "route" on your zaurus?  Is it pointing to your laptop, or at a router?

My zaurus route has the default pointing to my laptop.
Zaurus resolv.conf is pointed directly at a DNS server.

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Internet Connection Issues (not The Zs Fault)
« Reply #7 on: January 05, 2005, 01:25:02 pm »
It's not so much a network connection issue as a problem with konqueror and the proxy.
Everything from the z is masqueraded so it looks like it has come straight from my laptop.
Just to make sure: My laptop is not directly connected to the internet- it also has to go through the proxy server on the windows xp machine.

Zaurus just has the localnet route (192.168.40.0/255.255.255.0) with my laptop as the default gateway (192.168.40.1)

/etc/resolv.conf on Z currently has three entries (why it left the third one in there i'll never know):
my laptop's ethernet interface: 192.168.38.3
the windows xp pc's ethernet interface: 192.168.38.2
my laptop's wifi interface: 192.168.40.1

i have tried all sorts of things in here, including the dns for my isp.

My laptop's resolv.conf has the two dns servers of my isp in it, but those where only added because it was connected to the internet a couple weeks ago. Those entries have made no difference to it when going via the proxy (i assume).
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

EdbO

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • http://
Internet Connection Issues (not The Zs Fault)
« Reply #8 on: January 07, 2005, 07:59:32 am »
I have te following structure of my network:
I'm running Slackware 10 as server which is connected to the internet. The other computers are connected via a switch to the server. My Zaurus is connected via my Bluetoothdongle from Logitech (I have a MX900 mouse).

So I have two networkinterfaces which have to connect to the internet. To get this working you have to create a bridge. I don't know how this working with M$, but under Linux you have to set up a bridge. These bridge bind the two networkinterfaces to one new networkinterface, create holes in your firewall en everything is working  .
/**********************************/
Slackware current with Dropline Gnome on the desktop
Zaurus SL-5500  {
   OZ/Opie
   1 GB  and 64MB SD-card
   16 MB and 256 MB CF-card
   Sitecom (Billionton) bluetoothcard
}

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
Internet Connection Issues (not The Zs Fault)
« Reply #9 on: February 12, 2005, 08:08:11 am »
ok, thanks for the help, but I now have an ethernet modem and a linux server, so I can nat everything now- all (million) problems solved.
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.