Author Topic: Firewall-settings For Os X Internetsharing Via Usb  (Read 27734 times)

elwood151

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« on: June 12, 2005, 04:02:04 am »
Hi,

I'm trying to connect my Zaurus SL5500 (Sharp ROM 3.13 + Cacko Kernel patch) to the WWW and for the first step I want to use the USB/TCP-IP connection.

My Powerbook is connected via WLAN to our DSL router, I have internet sharing enabled on the PB and the Z can ping IP-numbers and urls like www.avm.de successfully.

However, the Z can only load a web page in Opera, if I disable the firewall on the PowerBook (OS 10.3.9).
I don't want to disable it completely - does anybody know how I have to configure the firewall for getting Opera on the Z working?

Best regards

Martin
Zaurus SL5500G -- SharpROM 3.13 + Cacko Kernel Patch
SD 512 MB Panasonic HighSpeed, CF 512 MB (Sandisk)

jfv

  • Sr. Member
  • ****
  • Posts: 437
    • View Profile
Firewall-settings For Os X Internetsharing Via Usb
« Reply #1 on: June 12, 2005, 09:46:52 am »
You probably need to open port 80 on your powerbook's firewall. Open
System Preferences->  Sharing
On the "Services" tab (the first one), enable personal web sharing. This is for OS X.2, I don't know if it works on later versions.

Felipe
SL 5000 D  and C860 Sharp ROM
Too many accessories...

elwood151

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #2 on: June 13, 2005, 03:49:00 pm »
Quote
You probably need to open port 80 on your powerbook's firewall. Open
System Preferences->  Sharing
On the "Services" tab (the first one), enable personal web sharing. This is for OS X.2, I don't know if it works on later versions.

Felipe
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83936\"][{POST_SNAPBACK}][/a][/div]

Thanks! Now I can browse web pages on the Z with the Firewall enabled.

Bye,

Martin
Zaurus SL5500G -- SharpROM 3.13 + Cacko Kernel Patch
SD 512 MB Panasonic HighSpeed, CF 512 MB (Sandisk)

qwerty

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #3 on: July 07, 2005, 12:07:11 pm »
Hi,
I'm trying this too, but haven't gotten as far.
I installed the USB ethernet driver, gave my Z and my mac manual IPs (192.168.129.xxx).  I can ssh back and forth between the two, but the Z can't find the internet (ping attempts give: address unreachable).  I turned on internet sharing (of regular ethernet, to usb ethernet adapter) and my firewall is allowing port 80.
I've been hunting around and I think I might need to turn on ip forwarding on the z. (I found a page describing setting up a pppd on the usb and setting up a NAT using the iptables command which appearantly my Z doesn't have yet.)

The Z has OpenZaurus (really minimal, the person i bought it from flashed it) and the mac has 10.3 and is connected to a DSL modem.



Quote
Hi,

I'm trying to connect my Zaurus SL5500 (Sharp ROM 3.13 + Cacko Kernel patch) to the WWW and for the first step I want to use the USB/TCP-IP connection.

My Powerbook is connected via WLAN to our DSL router, I have internet sharing enabled on the PB and the Z can ping IP-numbers and urls like www.avm.de successfully.

However, the Z can only load a web page in Opera, if I disable the firewall on the PowerBook (OS 10.3.9).
I don't want to disable it completely - does anybody know how I have to configure the firewall for getting Opera on the Z working?

Best regards

Martin
[div align=\"right\"][a href=\"index.php?act=findpost&pid=83919\"][{POST_SNAPBACK}][/a][/div]

elwood151

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #4 on: July 11, 2005, 12:51:32 am »
Quote
Hi,
I'm trying this too, but haven't gotten as far.
I installed the USB ethernet driver, gave my Z and my mac manual IPs (192.168.129.xxx).  I can ssh back and forth between the two, but the Z can't find the internet (ping attempts give: address unreachable).  I turned on internet sharing (of regular ethernet, to usb ethernet adapter) and my firewall is allowing port 80.
I've been hunting around and I think I might need to turn on ip forwarding on the z. (I found a page describing setting up a pppd on the usb and setting up a NAT using the iptables command which appearantly my Z doesn't have yet.)

The Z has OpenZaurus (really minimal, the person i bought it from flashed it) and the mac has 10.3 and is connected to a DSL modem.

Hi qwerty,

I never tried OpenZaurus yet, so I'm not sure if it works the same way as the SharpROM concerning networking...

Try the following:

If the Zaurus and the Mac are connected and are able to  ping each other,
open a terminal on the Z and type:

sudo route add -host 192.168.129.1 usbd0

and

sudo route add default gw 192.168.129.1

Then you should be able to ping a server on the web from the Z
(ping www.google.com ...)

Please try and give me feedback, if you were successful, and then we'll attack further steps. (I have some urgent work to do at the moment and for some weeks did not try to get further with my Z, so my memories what I tried and what helped for whatt aren't really "fresh" ;-( )

Best regards,

Martin
Zaurus SL5500G -- SharpROM 3.13 + Cacko Kernel Patch
SD 512 MB Panasonic HighSpeed, CF 512 MB (Sandisk)

qwerty

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #5 on: July 13, 2005, 11:36:49 am »
thanks martin.  I used those two commands and now the zaurus can ping other IPs.  however, i can't ping names.  I suppose i need to tell it where to find a dns server.  My ethernet connection does not list a DNS in that TCP/IP pane.

elwood151

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #6 on: July 13, 2005, 03:56:00 pm »
Quote
thanks martin.  I used those two commands and now the zaurus can ping other IPs.  however, i can't ping names.  I suppose i need to tell it where to find a dns server.  My ethernet connection does not list a DNS in that TCP/IP pane.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88185\"][{POST_SNAPBACK}][/a][/div]

What I had to do in my SharpROM was adding in the file
/etc/resolv.conf

the line
nameserver 192.168.2.1

(with the IP-address of your router)

Hope that helps

Best regards

Martin
Zaurus SL5500G -- SharpROM 3.13 + Cacko Kernel Patch
SD 512 MB Panasonic HighSpeed, CF 512 MB (Sandisk)

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #7 on: July 14, 2005, 11:43:55 am »
Quote
sudo route add -host 192.168.129.1 usbd0

and

sudo route add default gw 192.168.129.1

It should be su instead sudo.

The nameerver to be added in /etc/resolv.conf should be your ISP's name server.

Happy Surfing!

qwerty

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #8 on: July 14, 2005, 06:04:54 pm »
thanks.  I figured out su, although i'm running in root right now anyways (eep!).

How do I find my ISP's name server?  DHCP isn't showing me a dns address in my mac's control panel.



Quote
Quote
sudo route add -host 192.168.129.1 usbd0

and

sudo route add default gw 192.168.129.1

It should be su instead sudo.

The nameerver to be added in /etc/resolv.conf should be your ISP's name server.

Happy Surfing!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88361\"][{POST_SNAPBACK}][/a][/div]

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #9 on: July 15, 2005, 12:39:10 pm »
whois ispdomain

qwerty

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #10 on: July 18, 2005, 12:22:49 am »
thanks for being patient with my questions...still need more help...

so I got the IP for ns1.ameritech.net and added that as the first DNS.  now "ns1.ameritech.net" seems to be the only address that I can ping by name.  pinging any IP still works.  tried a few other nameservers, but same problem.
what should /etc/resolv.conf look like at the end of the day?

This seems more like a general "using the internet" issue, than a zaurus problem, but hopefully someone can point me along.

samxiao

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #11 on: July 20, 2005, 04:12:13 pm »
Quote
thanks.  I figured out su, although i'm running in root right now anyways (eep!).

How do I find my ISP's name server?  DHCP isn't showing me a dns address in my mac's control panel.



Quote
Quote
sudo route add -host 192.168.129.1 usbd0

and

sudo route add default gw 192.168.129.1

It should be su instead sudo.

The nameerver to be added in /etc/resolv.conf should be your ISP's name server.

Happy Surfing!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88361\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88402\"][{POST_SNAPBACK}][/a][/div]


try do that on your Mac terminal
Quote
$ cat /etc/resolv.conf
Zaurus C1000 (formerly SL5500 and C700)
Cacko developer ROM 1.23 beta + Debian Sarge + X/Qt
1GB Transcend 80x SD (ext2) / 512MB Lexar SD (ext2) / 256MB SanDisk CF(vfat)
Netgear MA701 WiFi CF
Ambicom GPS-CF
Pocketop IR keyboard (has positioning problem with C1000)
Brando LCD screen protector

Apple PowerBook 12" G4 Rev. C + Mac OS X 10.4.x (Tiger)

samxiao

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #12 on: July 20, 2005, 04:28:31 pm »
where do i put those codes so everytime i reboot my Z,  it will run them?


Quote
sudo route add -host 192.168.129.1 usbd0

and

sudo route add default gw 192.168.129.1
Zaurus C1000 (formerly SL5500 and C700)
Cacko developer ROM 1.23 beta + Debian Sarge + X/Qt
1GB Transcend 80x SD (ext2) / 512MB Lexar SD (ext2) / 256MB SanDisk CF(vfat)
Netgear MA701 WiFi CF
Ambicom GPS-CF
Pocketop IR keyboard (has positioning problem with C1000)
Brando LCD screen protector

Apple PowerBook 12" G4 Rev. C + Mac OS X 10.4.x (Tiger)

qwerty

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • http://
Firewall-settings For Os X Internetsharing Via Usb
« Reply #13 on: July 20, 2005, 05:08:17 pm »
/etc/resolv.conf on the mac (which can do all the web stuff fine) looks something like this (im at work right now):

domain no_domain_set.invalid
nameserver 192.168.0.1
nameserver 192.168.0.0


------------
EDIT:  So, I think I fixed it.  I added:
nameserver 192.168.0.1 to the /etc/resolv.conf file on the zaurus.  thank you everyone.
« Last Edit: July 21, 2005, 01:12:48 am by qwerty »

sabes

  • Newbie
  • *
  • Posts: 1
    • View Profile
Firewall-settings For Os X Internetsharing Via Usb
« Reply #14 on: February 16, 2006, 06:09:15 pm »
I'm having a similar problem connecting my Nokia 770 via apple airport extreme to mac mini -- any ideas on the ports that should be open? nokia is clueless about this -- very pc-centric.