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 
 Cant get DNS working in my local network with natd
Author: Kenny 
Date:   03-05-00 00:32

Hello
I have a little problem with dns resolving from my local computer that is connected via a gateway using natd.

First some info! :)
This is how the computers are connected to each other
Windows2k -(xl0)-> FreeBSD 4 -(ed1)-> Internet

Windows2k=192.168.1.2
FreeBSD=192.168.1.1

I'm using a cable modem with dynamic IP (It doesn't change until I reset the modem) through a Ethernet compatible card (ed1). The Windows2k computer is connected with a 3com905b (xl0)...

Now to the problem! I've installed natd and its working excellent as a gateway except one thing, the Windows2k computer cant resolv dynamic IP adresses (like www.blahblah.com), only clean IP (ex. 1.2.3.4.) - can't be too specific :) It IS possible to ping internet IP with the Windows2k computer via natd.
Thats the problem. I'm not very experienced with FreeBSD and networking yet so I have no clue what it could be.I would be very glad if someone could find a solution to my problem.

Here is some config files:
------------------------------------
rc.conf: (snapped)
firewall_enable="YES"
firewall_script="/etc/rc.firewall"
natd_program="/sbin/natd"
natd_enable="YES"
natd_interface="ed1"
natd_flags="-f /etc/rc.natd -dynamic"
-------------------------------------
rc.firewall:
/sbin/ipwf -f flush
/sbin/ipwf add divert natd all from any to any via ed1
/sbin/ipwf add pass all from any to any
-------------------------------------
rc.natd:
log no
deny_incoming no
use_sockets no
same_ports yes
verbose no
unregistered_only no
#dynamic yes (use the -dynamic options, dont know why)
-------------------------------------

Any1 help! :)


Reply To This Message
 
 FIXED
Author: Kenny 
Date:   09-05-00 15:10

I've fixed it.

Reply To This Message
 
 RE: FIXED
Author: Dan Langille 
Date:   10-05-00 08:46

How?

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