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 > Developer Center > NAT (IP MASQUERADING)

NAT (IP MASQUERADING)
Thread Tools
powert
Guest
Status:
Reply With Quote
Feb 21, 2001, 10:47 AM
 
Has anyone had any luck setting up ppp with NAT or with dualethernet cards?

It is very easy to do on OpenBSD (v.good how to's) but I don't find FreeBSD that helpful.

The man says to enable pppd with -nat, which is fine but I'm not familar with the syntax of the rules or where they should reside, or even how to start pppd with nat (apple does it).

OpenBSD has a rules file in /etc. You basically add:
192.168.0.0/24 -> interface

     
Senior User
Join Date: Jan 2000
Status: Offline
Reply With Quote
Feb 21, 2001, 05:47 PM
 
Go here:

http://forums.macnn.com/cgi-bin/Foru...ML/000133.html

It should have all the information you need.
     
powert
Guest
Status:
Reply With Quote
Feb 22, 2001, 01:52 AM
 
Yep that does the trick. Quite easy. However I was unable to start natd before ppp0 was enabled through the ppp connect. Perhaps another line has to be added, something like:
ipconfig ppp0 up?

OpenBSD allows you to set up a range of ports for natd instead of just one... how is that done?

In OpenBSD you do (in /etc/ipnat.rules) eg
map ppp0 10.0.0.0/8 -> ppp0/32 portmap tcp/udp 10000:20000

OpenBSD is a lot better than FreeBSD in ease of use, security, and installation, surprised Apple would not have used that as its base.
     
   
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 12:27 PM.
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