Help - Search - Members - Calendar
Full Version: Getting Internet Working For The Z Across Usb
OESF Forums > General Forums > General Support and Discussion > Security and Networking
microsoft/linux
I'm using OZ 3.5.4RC, and I want to be able to acess the internet(downloading packages and so forth). Is there a simple way to do this? I've never done any IPTables, or NAT, and my laptop is connected via a wireless router. Suggestions?
Sheila
QUOTE(microsoft/linux @ Nov 3 2005, 07:44 PM)
I'm using OZ 3.5.4RC, and I want to be able to acess the internet(downloading packages and so forth). Is there a simple way to do this? I've never done any IPTables, or NAT, and my laptop is connected via a wireless router. Suggestions?
*

Under linux, use webmin and shorewall. All you have to do is make sure you have the correct modules loaded on your laptop and the only thing you have to setup is masquerade. Turn everything else off.
microsoft/linux
that's on my laptop right? not on the Z? I'll look into shorewall. Why don't I want anything else on? Isn't shorewall a firewall?
Sheila
QUOTE(microsoft/linux @ Nov 4 2005, 07:37 AM)
that's on my laptop right? not on the Z? I'll look into shorewall. Why don't I want anything else on? Isn't shorewall a firewall?
*

You use a firewall on your laptop to give you masquerading. 'Masquerading' is the process of 'moving' traffic from USB to your ethernet connection. What I meant by not turning anything else on is that you just leave all the firewall settings open and let all connections talk freely amonst each other, because I am assuming you have your router setup to close all unneeded ports.
On your laptop you have to have the right modules loaded to allow masquerading, and you also have to be able to load the module 'usbnet'.
On your Zaurus, you have to setup "Lan & Wifi" and USB under 'System Tools', and manually edit your resolv.conf file.
microsoft/linux
I've got shorewall(and webmin-shorewall) setup, now what? can you walk me through step by step?
Sheila
QUOTE(microsoft/linux @ Nov 5 2005, 07:50 PM)
I've got shorewall(and webmin-shorewall) setup, now what? can you walk me through step by step?
*

There are websites that are far more qualified than me i helping you do this. First, make sure you have all the right modules loaded for masquerading on your linux laptop, then the only part of shorewall you have to set-up is masquerading.
I've attached my complete /etc/shorewall directory from my gentoo linux set-up. Maybe try replacing yours with this one, or looking thru it for clues. Sorry, work is real busy this week...
microsoft/linux
I'm sorry, I'm a complete newbie at this. I'll try reinstalling shorewall(removed it in frustration) and using your /etc/shorewall. Thanks.
microsoft/linux
used your setup, used wlan0 and usb0. I tried 'shorewall start' and got the error
CODE
Activating Rules...
  Error: No policy defined for zone fw to zone net

Suggestions?
speculatrix
QUOTE(microsoft/linux @ Nov 8 2005, 05:57 AM)
used your setup, used wlan0 and usb0. I tried 'shorewall start' and got the error
CODE
Activating Rules...
  Error: No policy defined for zone fw to zone net

Suggestions?
*


you should just be able to type:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

where eth0 is the external interface on your firewall.

don't forget to enable ip forwarding:
echo 1 > /proc/sys/net/ipv4/ip_forward


you can also do this when your Z is connected to the gateway over bluetooth or wireless.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.