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 > Software - Troubleshooting and Discussion > Mac OS X > ipfw add fwd question

ipfw add fwd question
Thread Tools
Mac Elite
Join Date: Sep 2001
Location: Chile
Status: Offline
Reply With Quote
Aug 29, 2006, 11:50 PM
 
Hi,

A friend on another forum asked this question, I'm pretty sure it can be done with ipfw, but can't figure out the propper command. Any help is appreciated.

The problem is with mail server configurations.
In his workplace, this guy has to configure Mail.app to fetch mail from an internal IP in the company's LAN, say aaa.bbb.ccc.ddd.
When he goes home, he can't reach the internal IP so he uses the server's domain name mail.company.com.
The domain name cannot be accessed from inside the LAN.

Now, my solution would be to use ipfw's 'fwd' rule to create rule 1234 that instructs ipfw to forward all traffic addressed to mail.company.com to the IP aaa.bbb.ccc.ddd. And when the guy goes home he just uses 'sudo ipfw delete 1234'.
Maybe using it alongside the hosts file. Or maybe use the 'divert' command ?

It's not -that- elegant but it's easier than changing Mail.app's configuration each time. (Unless there's some way to change this with OS X's Location manager that I don't know of).

Anyway, my problem is that I can't figure out the proper syntax for this.

Again, any help is appreciated.
(Last edited by Sarc; Aug 30, 2006 at 12:23 AM. )
:: frankenstein / lcd-less TiBook / 1GHz / radeon 9000 64MB / 1GB RAM / w/ext. 250GB fw drive / noname usb bluetooth dongle / d-link usb 2.0 pcmcia card / X.5.8
:: unibody macbook pro / 2.4 Ghz C2D / 6GB RAM / dell 2407wfp - X.6.3
     
   
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 01:16 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