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

Similar Threads
thread Thread Starter Forum Replies Last Post
Mac Mini server with external RAID storage - a good file server solution? teme Digital Video 1 Mar 5, 2014 10:34 AM
ipfw configuration meme1255 OS X 0 Dec 8, 2013 06:47 AM
IPFW help please. houserhythm OS X 10.8 Mountain Lion 3 Sep 9, 2013 03:43 PM
Configuring ipfw on OS X ghostpaladin OS X 17 Jan 25, 2013 12:53 AM
Mac Mini Server + USB External + Time Machine Server + Wireless Backups = Frozen sieken OS X 0 Jun 25, 2012 08:31 AM

Forum Jump

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

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

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