Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 27, 2013, 03:15 AM   #1
Bob2001
macrumors newbie
 
Join Date: Apr 2013
redirect with ipfw to an external server

HI everybody,

I like to install an redirect from 127.0.0.1:8080 to server_xy:80 on my mac

this works (I can see the site of my webserver on the mac):
sudo ipfw add 100 fwd 127.0.0.1,80 tcp from any to any 8080

but this doesn't works (redirect to google.de -> timeout):
sudo ipfw add 100 fwd 173.194.69.94,80 tcp from any to any 8080

Could you help me, please?
Bob2001 is offline   0 Reply With Quote
Old Apr 27, 2013, 10:01 AM   #2
HenryAZ
macrumors regular
 
Join Date: Jan 2010
Location: South Congress AZ
I am no expert with ipfw, but it appears (from a quick read of the man page) that you will be unable to accomplish this with a fwd action to an external address.

You mentioned you have Apache running on the local machine. Why not set up Apache to answer to 127.0.0.1:8080 and redirect from there?
HenryAZ is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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

Forum Jump


All times are GMT -5. The time now is 07:50 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC