How in the world do I connect via afp to office server from my house???

I really appreciate all of the wonderful information posted here. I have a relatively basic question that has been frustrating me for months: How do I configure Leopard Server at my small office so that I can connect via afp from my laptop at home.

Let me tell you about my equipment:

- Leopard Serving running on a G4 Power PC
- Airport Extreme as my wireless router and DNS server
- garden variety cable modem from Time Warner cable connected to the internet
- 6 Mac clients (variety of iMacs, Mac Book Pros, etc.) connected both via ethernet and wirelessly

I have installed and configured the afp service in Leopard Server. my WAN side static IP address (assigned by Time Warner Cable) is 64.183.xx.xx The Airport Extreme gives me a LAN IP address for the server as 10.0.1.xxx. The default Port mapping configured in the setup of the Server for AFP can be seen via Airport Utility.

From my house i try to connect via Finder>Go>Connect To Server...no joy!

I am able to connect the 6 local computers on the LAN at the office and share files, wiki, etc with no problem. Connecting remotely is the big problem.

what am I doing wrong? Any help you guys could offer would be greatly appreciated! Larry

MacBook Pro, Power Mac G4, (5) iMac, Mac OS X (10.5.4), OS X Leopard Server, Time Capsule, iPhone, Airport Extreme, Airport Express

Posted on Aug 8, 2008 8:02 PM

Reply
12 replies

Aug 8, 2008 9:10 PM in response to MrLR

Hi,
I'll try and answer your question by assuming your server is at the office behind an AEBS (802.11n) and you have a static IP assigned by Time Warner and that your port mapping is being done on the AEBS under NAT port mapping.
The AEBS has to have port 548 open for AFP traffic and turn OFF personal file sharing. Your server will conduct the AFP service and not the AEBS. Depending on how you configure AFP authentication under AFP->Access determines whether you need to open ports for Kerberos. If Any Method is selected you don't need additional ports for AFP.
A reserved IP should be set in AEBS for your server, even though DCHP is standard on the LAN side, AEBS allows you to reserve an address within the range by entering the server's MAC (Machine Address).
Outside the LAN use Network Utility and ping your external IP. If you reach the server you can connect with Finder->Go->Connect to server with afp://xxxxxxxx; once you have a share to mount. If you have DNS for your external IP address you can use that in the finder address bar. Once afp service is connected you should see your server share mount on the left sidebar.
To have a share, establish a folder on a disk local to the server and find it with Server->File Sharing->designate as a Share Point and insert yourself in the ACL panel as a user with Read&Write permission. Under Share Point->Protocol Options select Share this item using AFP and give it a name. Your login greeting is set in the AFP->General panel.
I hope this helps.
Harry

Aug 9, 2008 8:24 AM in response to Leif Carlsson

Leif Carlsson wrote:
If you follow Harrys advice but don't want to "expose" AFP (TCP port 548) to Internet, look into using VPN to connect to the server instead.


Couldn't the original poster also choose to connect securely in Tiger, if that is the client OS? Press Apple+K in the Finder, type in the server address, and click connect. In the window that appears, click on the gear icon and choose Options. Enable "Allow secure connections using SSH". This will encrypt your traffic with the server (tunneling AFP over SSH). Unless I am mistaken, this is the default behavior with Leopard client.

Aug 9, 2008 8:59 AM in response to harry-pmsi

Harry: thanks so much for the post. a couple of your suggestions are confusing (the last couple of sentences in particular) however I am excited about going to the office today (Saturday) and trying to implement your suggestions. i will report back. thanks to Leif and Jonathan also.

will tell you how everything goes. thanks again. larry

Aug 9, 2008 9:11 AM in response to harry-pmsi

Actually, let me ask a couple of questions before I go to the office today:

1 yes, your assumption is correct, we have an Airport Extreme Base Station (the square kind, 802.11n) and yes the port mapping is being done on the AEBS under the NAT port mapping. configuring the NAT port mapping is confusing but I will make sure port 548 is open for AFP traffic (or at least try!!).

2. I will select "Any Method" per your suggestion.

3. How do I set a "reserved address" in AEBS - i guess i will knock around in AEBS utility until i find something...

4. when i ping the server from outside the LAN, I assume I enter the "public (WAN) IP address" that I received from TIme Warner Cable - my static IP address, yes?

5. once I "get in" and login to the server, shouldn't I automatically have access to all of the folders as long as i have the correct permissions set for me as a user?

Again, you have been VERY helpful and i appreciate all of your advice.

larry

Aug 9, 2008 10:21 AM in response to MrLR

Hi Larry,
You asked for a specific way to communicate with your server (AFP over AEBS/NAT).
I roger Leif's and Jonathan's input which is concerned with secure communications. Based on the questions it seems you would be happy to get the basics first. In my case I run AFP over the internet because its faster and I don't have confidential files that I'm transferring. However, the login requirement is something to be concerned about. In my case I authenticate with Kerberos only, and am able to leave my AFP shares mounted for hours without worrying about giving away anything.
But yes there are several ways to approach the problem.
Back to your questions; there are three areas to work on, but once you do it and it makes sense to you, it isn't hard.
AEBS - use Finder->Utilities->Airport Utility (v 5.3.2) on any client inside the airport LAN. Please make sure you have a password on your AEBS configuration. Update the firmware on the AEBS to 7.3.2. Select manual setup then
under Internet->DHCP->DHCP Reservations enter your server and IP address.
under Internet->DHCP->NAT Enable NAT Port Mapping Protocol
under Disk->File Sharing Deselect Enable file sharing (reason given above)
under Advanced-> Port Mapping enable port 548 and you will see an AFP checkbox checked on saving. Done with AEBS (assuming all your routing is working fine).
Server - setup a folder as described above to have a share point. Your server will mount your share point on a connecting client as if it were a spare hard drive (virtual). Set up AFP service on the server as described earlier.
Client - (inside or outside the LAN) you can connect at either place. If inside the NAT use your internal IP (10.x.x.x) and Finder to connect. You will be presented with your Public folder and your share point folder to select from.
If outside the NAT use your Time Warner provided internet IP address and you should get the same thing. A login and a share point selection to mount.
If you have a domain name attached to your internet IP address you can use that instead of the number address.

Leif's suggestion to use VPN would allow access to the server as if you were local. Jonathan's suggestion provides a means to use AFP communication but within a secure comm channel. Both are worth considering if they fit your needs closer. If you store your connection at the Connect to server panel you may not see the gear icon that allows changing your password.

HTH,
Harry

Aug 9, 2008 10:29 PM in response to harry-pmsi

Harry: thanks for all of your help. here is where I'm stuck:

i am in Airport Utility trying to configure the NAT port mapping. i click on the pull down menu for "Chosse Service" and chosse Personal File Sharing (that's the only service that brings up Port 548). the configuration looks like this:

Public UDP Port: [left blamd]
Public TCP Port: 548
Private IP Address: 10.0.x.xxx
Private UDP Port: [left blank]
Private TCP Port: 548

there is an orrange exclamation point next to the 548 Public TCP Port. the error message says: A public TCP port number conflicts with a file sharing port on the base station. Disable file sharing on chose a different file number. How do I do this?

thanks. i think i correctly implemented your other suggestions. thanks! larry

Aug 9, 2008 10:55 PM in response to harry-pmsi

Hey Harry: i am not choosing any service from the pull down menu.

I put 548 in the space for Public TCP Port however when I start typing in 548 in the private TCP Port the error message appears saying the TCP Port number conflicts with a file sharing port...

hmmmmm - i can't figure out how to disable the file sharing.... are you able do a "Screen Sharing" session? thanks, larry

Aug 9, 2008 11:07 PM in response to harry-pmsi

Harry: IT WORKS!!!! YAYYYYYYYYYYYYYYYYY!!!!!

my wife just logged on from our house- i'm at the office. Thank you VERY MUCH for all of your help!!! i will probably have another million questions but i am very happy to finally get this working - all because of your great suggestions/instructions.

YOU ROCK!!! larry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How in the world do I connect via afp to office server from my house???

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.