OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: microsoft/linux on November 03, 2005, 09:44:31 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?
-
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102183\"][{POST_SNAPBACK}][/a][/div]
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.
-
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?
-
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102251\"][{POST_SNAPBACK}][/a][/div]
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.
-
I've got shorewall(and webmin-shorewall) setup, now what? can you walk me through step by step?
-
I've got shorewall(and webmin-shorewall) setup, now what? can you walk me through step by step?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102497\"][{POST_SNAPBACK}][/a][/div]
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...
-
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.
-
used your setup, used wlan0 and usb0. I tried 'shorewall start' and got the error
Activating Rules...
Error: No policy defined for zone fw to zone net
Suggestions?
-
used your setup, used wlan0 and usb0. I tried 'shorewall start' and got the error
Activating Rules...
Error: No policy defined for zone fw to zone net
Suggestions?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102786\"][{POST_SNAPBACK}][/a][/div]
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.