Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2000 11:45:52 -0700 (PDT)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        rakesh@cell-works.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Setting FreeBSD as Gateway!
Message-ID:  <200010091845.e99Ijq356129@explorer.rsa.com>
References:  <DUPID.94086.970878668@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd-questions you write:

>This is a multi-part message in MIME format.
>--------------AAF5793FE163632A6943EEAD
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit

>Hello Everyone,

>I am a newbie with FreeBSD and I am trying to set up my FreeBSD machine
>as Gateway.  I can ping from FreeBSD machine to my windows 98 machine
>and vice versa but I cannot get my windows 98 machine to get on the
>internet.  I can telnet from my windows 98 machine to my freeBSD
>machine.  Although I get this two lines at the end of the dmesg.

>"IP packer filtering initialized, divert disabled,  rule-based
>forwarding disabled, logging disabled,
>ip_fw_ctl: invalid command"

"divert disabled" means "natd" won't work.  Have you recompiled your
kernel with IPFIREWALL and IPDIVERT as described in the man page for
natd?  If not, do so.  The handbook describes how to build a custom
kernel.

Then you need to teach win98 to use your FreeBSD box as a gateway.

     /Mikko

[...]

>--------------AAF5793FE163632A6943EEAD
>Content-Type: text/plain; charset=us-ascii;
> name="rc_conf.txt"

[...]

>### -- Basic Network Options:  ###
>hostname="owml1.md.home.com"
>nisdomainname="NO"
>firewall_enable="YES"
>firewall_script="/etc/rc.firewall"
>firewall_type="open"
>firewall_quite="NO"

"quite" ?  Normally known as "quiet" ...  No big deal.

>natd_program="/sbin/natd"
>natd_enable="YES"
>natd_interface="ed1"
>natd_flags="-f /etc/natd.conf"
>tcp_extensions="YES"

May cause some problems later on.

>network_interfaces="lo0"   	# List of network interfaces (lo0 is loopback)
>network_interfaces="lo0 ed1 fxp0"
>ifconfig_lo0="inet 127.0.0.1"   # default loopback device configuration
>ifconfig_ed1="DHCP"
>ifconfig_fxp0="inet 192.168.1.1 netmask 255.255.255.0"
>nfs_server_enable="YES"
>nfs_client_enable="YES"

What happened to ed0 ?

>## Network routing options:  ####
>gateway_enable="YES"
>router_enable="YES"

No need for router. Set to NO.

[...]
-- 
 Mikko Työläjärvi_______________________________________mikko@rsasecurity.com
 RSA Security


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010091845.e99Ijq356129>