The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 RE: NATD and IPFW
Author: Stu 
Date:   07-09-00 03:00

Ok - here is rc.conf and natrules from a working server
I use ipfilter and ipnat instead of ipfirewall and natd but the theory is the same - just easier to implement

rc.conf -
ifconfig_ed1 ="inet 203.x.x.7 netmask 255.255.255.0"
ifconfig_ed2 ="inet 192.168.0.1 netmask 255.255.255.0"
defaultrouter = "203.x.x.1
gateway_enable ="YES"

ed1 is my "outside" NIC (public)
ed2 is my "inside" NIC (private)
This defines the two NICs & the default gateway
gateway_enable - to allow the internal NIC to act as a gateway for your private LAN

/etc/natrules
map ed1 192.168.0.0/16 -> 203.x.x.1/32 portmap tcp/udp 10000:40000
map ed1 192.168.0.0/16 -> 203.x.x.1/32

to fire up ipnat = ipnat -f /etc/natrules

I feel this is much simple than using ipfirewall and natd - really only one file to configure = /etc/natrules
plenty of help within this site too ;-)

Stu







 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 NATD and IPFW   new
Noah 28-08-00 21:28 
 RE: NATD and IPFW   new
Dan Langille 29-08-00 02:01 
 RE: NATD and IPFW   new
Noah Case 05-09-00 18:19 
 RE: NATD and IPFW   new
Stu 07-09-00 03:00 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org