Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > Using Mac (at home) as proxy for computers outside of home?

Using Mac (at home) as proxy for computers outside of home?
Thread Tools
Mac Elite
Join Date: May 2002
Location: Los Angeles, CA.
Status: Offline
Reply With Quote
May 30, 2006, 12:00 AM
 
Greetings,

I'm planning to travel out of the country soon and was wondering if there was an easy-ish way to set up one of my macs here at home to run some sort of proxy server?

Ideally, I would be able to log in remotely from out of the country into the Mac, and access things such as Skype (calls are free, but they must originate from within the USA).

any ideas?
     
Senior User
Join Date: Jul 2003
Location: Asia
Status: Offline
Reply With Quote
Jun 2, 2006, 08:12 PM
 
Hi badtz,

Although Skype on the windoze platform has a preference for proxy settings, as far as I have been able to determine, there is no way to get Skype to work over a proxy on the Mac. (maybe there is a way using Unix and a program called socat, but it is beyond my knowledge and experience)

What you can do is buy a SkypeIn number (10 Euro for 3 months) in the local call region of those who you want to reach while you are out of the country. Then you call your buddies with your Skype-out balance (1.7 eurocents per minute) for just a minute and have them call you back on your SkypeIn number. (no further charge after the 3 month setup). An added bonus is that you get free voicemail, so your buddies can also leave you messages if you are not on line.

One thing you might want to know is that Skype blocks access to its paid services in certain countries (I guess because it believes there is too much fraud from those places). So if your travels are bringing you to the third world, and you get a "9407" error when you try to call despite adequate balance, you will have to contact Skype support and after a few days and whatever they do to determine you are a legitimate user, they will turn on access. This should not be an issue if your destination is the first world, like most of Europe. Also you should load up with Skype out credits before you leave. Skype/ eBay is absolutely paranoid about fraud and if you try to purchase credits from an ip address in Country A but your credit card (or Paypal account) is from Country B, it may reject your payment. So be prepared before you leave.

For web browsing (or other programs that will allow a socks 4 proxy), you can set up a proxy on your home Mac with SSH (secure shell).

First setup your home Mac:

1.Make sure you set up a user account on your home Mac, and that all user accounts have a strong password
2. turn on "remote access".
3. If your home Mac is behind a router, you will also need to give it a manual internal IP address and to set up port forwarding on your router to forward port 22 to that manual internal IP address.
4. You will need to leave your home Mac running (turn off sleep and set it to restart if there is a power failure).
5. You will need to know the external address of your home Mac, so note it, and if your isp regularly changes it, you will need to purchase a service that regularly informs you of your home Macs current IP address.

Once set up as above, you start up the proxy from your remote Mac using the terminal application and the command:

ssh username@xx.xx.xx.xx -D 2001

where username is your short username and xx.xx.xx.xx is your home Macs external ip address. You will need to enter your password.

Now set Firefox to use a socks 4 proxy on port 2001, and you can use www.showmyip.com to verify your proxying through your home Mac.

Now your web traffic will be proxied and encrypted between your remote and home Mac. (useful if your remote Mac will be accessing the web through insecure means like a wi-fi network or internet cafe)

There is some risk in having remote access setup on your home Mac which is constantly on the internet. Strong passwords can help deter hackers, but for further security, there are ways to change the port that remote access uses, or to disable passwords and use only encryption keys for access, but those are rather complicated, and you might want to ask about that to the gurus in the UNIX forum.

If you need to send or receive FAXes while you are away, I can recommend eFAX's service where you get a FAX number that will forward to your email, and the ability to easily FAX to USA FAX numbers. Handy.

Happy travels,

rjt1000
(Last edited by rjt1000; Jun 2, 2006 at 08:43 PM. )
     
badtz  (op)
Mac Elite
Join Date: May 2002
Location: Los Angeles, CA.
Status: Offline
Reply With Quote
Jun 3, 2006, 05:44 AM
 
rjt1000: is there a specific reason it must be on port 2001? Instead of using the terminal, is there a GUI program that you can enter the information to? I can use the terminal, I just prefer a pretty GUI

thanks for the tip about the skypein number! i wonder if they offer germany numbers .... and I wonder if I'm able to have two numbers (germany + usa) that link to the same account ...... time to go find out
     
Senior User
Join Date: Jul 2003
Location: Asia
Status: Offline
Reply With Quote
Jun 3, 2006, 09:59 PM
 
Hi badtz,

You can choose any port you like for setting up the socks proxy, but the lower port numbers are reserved for the system and will require adding sudo to the terminal request. Just be sure you set the same port in Firefox that you specify in terminal and not to pick a port that is already in use.

There is a GUI (SSH Tunnel manager), but I think using terminal may be simpler in this case.
http://www.versiontracker.com/dyn/moreinfo/macosx/16840

You can have a number of different skypeIn numbers (up to 10 I think) linked to the same account: so your pals in Germany and in the USA can both call you at local rates.

Enjoy,

rjt1000
     
Fresh-Faced Recruit
Join Date: Mar 2000
Location: Kalamazoo, MI U.S.A.
Status: Offline
Reply With Quote
Jun 20, 2006, 11:24 AM
 
Thank you rjt, this is some very helpful information.
I have a question, though.
When you say:
"Now set Firefox to use a socks 4 proxy on port 2001, and you can use www.showmyip.com to verify your proxying through your home Mac."

What should I enter in the SOCKS Host field?

thanks again for your info!

boymilo
     
Senior User
Join Date: Jul 2003
Location: Asia
Status: Offline
Reply With Quote
Jun 20, 2006, 08:40 PM
 
Hi,

In the remote computer in Firefox preferences: General: Connection settings

To use a socks 4 proxy on port 2001 you would enter:

127.0.0.1 in the Socks field, 2001 in the port field and click on socks v 4.

It is important to leave all the other fields empty.

FYI 127.0.0.1 or localhost is the special "loopback" address which specifies your own computer. So you are telling Firefox to make the connection to port 2001 on your own computer. However you have forwarded port 2001 to your home computer which is acting as the socks proxy.

Your results will depend on the bandwidth of the connection between your remote and home locations.

Enjoy,

rjt1000
     
Professional Poster
Join Date: Jan 2003
Status: Offline
Reply With Quote
Jun 21, 2006, 09:57 PM
 
badtz, take a look at Tomchu's post in this thread,

http://forums.macnn.com/showthread.p...ghlight=tomchu
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:19 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2