Click to See Complete Forum and Search --> : internet connection sharing


l0s
May 16th, 2004, 02:07 AM
So here is my situation. At my flat, I have a wireless router. I have a desktop PC and a PowerBook G4 with the built-in wireless and running 10.3. Prior to getting the wireless router, we had cables running through the hallways and all the computers had internet connections. Now, however, I would like to avoid cables running through like that. So I have my PowerBook connected to the router and I connect it to my PC with an ethernet cable. I enabled sharing of the internet connection from the wireless to the ethernet. On my PowerBook, the wireless nic has a 192.168.1.* ip address (static) and the ethernet has 192.168.2.1. I set up the PC with a 192.168.2.* ip address, set 192.168.2.1 as the default gateway and used the same dns servers as the PowerBook. At first, this seems to work. I am able to ping outside hosts to my heart's content. However, I am only able to connect to ports on remote hosts that correspond to ports that are allowed by my firewall. For example, I have an ssh daemon running on my powerbook, so port 22 is open. Thus, I am able to ssh from the pc to other hosts, but I am not able to browse the web from the pc, as that requires me to open up port 80. Of course, the problem goes away as soon as I turn off the firewall. So my question is this. Is there anyway I can get Internet Connection Sharing to work ( through some NAT scheme, maybe ) while the firewall is enabled? Thanks.

l0s
May 16th, 2004, 02:56 PM
So it occurs to me ( and tell me if I am wrong ) that I want to somehow add a rule to the firewall so that it will allow in all packets from the ethernet interface, and only apply the firewall rules to packets coming into the wireless interface. Is there a way to do this? And is there a way to do it so that it will only be configured that way when I have my location set to "home"? Thanks.