Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: port forwarding




On Apr 21, 2008, at 2:21 PM, Sam Dearborn wrote:
I have a server application called Indigo (home automation) running on a
10.5.2 server at home. The default port for the client app to connect to
the server is 1176. I can change the default app, but the Mac OS bocks at
me when I try to make the number too low.


My work blocks outgoing traffic thats not on any of the standard channels.
22, 80, 443 etc.


How can I connect to the Indigo service over lets say port 443?

The home server in question has two nic's one directly on the outside with
a static address.



--

Since you say you have a static address, I am going to say you also mean that it is a public routable address. This also assumes this is a tcp 1176.


Use ssh to port forward.
1. Turn on Remote Logins. Specify a account to login with. Don't just leave it blank and allow any valid account.
2. Don't change any ports. Not needed.
3. Use Terminal to establish the ssh tunnel.
3.1 Example (one command, may be word rapping in this email): ssh -L 1176:my_house_server:1176 user@my_house_server
3.2 This sets up the tunnel. Now, when any app connects locally to port 1176, that traffic is shoved through the ssh tunnel (port 22) and sent to your home machine. Yout home machine know to then hand it off to 1176.
4. Launch your Indigo software and provide the server address as localhost:1176 or however your program does it. The key is to use the name localhost or the ip address of localhost (127.0.0.1).
5. It may seem a bit slower than connecting directly.
6. Configure appropriate firewall holes, etc as needed. Should only need port 22.


Cheers
- Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >port forwarding (From: "Sam Dearborn" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.