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 
 IPFW/NATD/DHCP/Gateway Help
Author: David Elliott 
Date:   28-03-00 06:23

Installed 3.2 stable and am running ipfw, natd and dhcp (cable modem). rc.conf looks like this:
ifconfig_mx0="inet 192.168.1.1 netmask 255.255.255.0"
gateway_enable="yes"
network_interfaces="mx0 mx1 lo0 auto"
ifconfig_lo0="127.0.0.1"
hostname="myname.my.domain"
firewall_enable="yes"
natd_enable="yes"
natd_interface="mx1"
natd_flags="-f /etc/natd.conf"
named_enable="no"

natd.conf has this:
interface mx1
port 8668
dynamic yes
use_sockets yes
same_ports yes
unregistered_only yes

Boot-up script has this:
dhclient mx1
ifconfig mx0 inet 192.168.1.1 255.255.255.0
natd -f /etc/natd.conf

My problem is that the win98 machine can't get out. I can ping it from the bsd box & the bsd box has access to the outside. This newbie will appreciated any suggestions.


Reply To This Message
 
 RE: IPFW/NATD/DHCP/Gateway Help
Author: Marc Giannoni 
Date:   31-03-00 16:51

Make sure you have GATEWAY and DIVERT enabled in your kernel, and be sure that 'natd' knows which interface is for the divert socket. There is a good tutorial on the FreeBSDzine site. I've had to specify "open" firewall rules for 'ipfw' to get everything going.

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