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   Newer Topic  |  Older Topic 
 NATD and IPFW
Author: Noah 
Date:   28-08-00 21:28

I need the latest syntax (S) that can be used in the natd.conf file. All kinds if possible. Actual examples. I have the man pages and they do not help.

Noah

Reply To This Message
 
 RE: NATD and IPFW
Author: Dan Langille 
Date:   29-08-00 02:01

You are being quite vague. What are you trying to do? Redirect? NAT? If you provide an example of what you have tried and failed with, we can help you much better.

Reply To This Message
 
 RE: NATD and IPFW
Author: Noah Case 
Date:   05-09-00 18:19

I am trying to NAT with version 4.1. I am using a routable address on the Outside NIC and a 192.168 address on the inside NIC. I think everything seems to load on the kernel ok, but I can not NAT from behind the freeBSD machine. I am using what I thought was the correct syntax and I have edit the rc.conf file, the rc.firewall and the natd.conf file. I have also edit the resolv.conf file and can ping by IP and by name from the fressbsd server but I can not do anything from beind it.

Help,
Noah

Reply To This 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  |  Threaded View   Newer Topic  |  Older Topic 


 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