Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 00:44:30 +0300
From:      Victor Meirans <vic@rezekne.lv>
To:        FreeBSD ISP mailing list <freebsd-isp@FreeBSD.ORG>
Subject:   What am I doing wrong?
Message-ID:  <37E164BE.BAECADE0@rezekne.lv>

next in thread | raw e-mail | index | archive | help
Hello...
I need to set up a FreeBSD (3.2-RELEASE) router with NAT. 2 NICs.
The situation is:

Internet
   |
   |
--------159.148.42.241
|Router|------------------
--------255.255.255.252  |
                         |
                         |
                         |159.148.42.242
                         |255.255.255.252
                   -------------
                   |  FreeBSD  |
                   -------------
                         |192.168.1.254
                         |255.255.255.0
                         |                   
                         |                       ---------------
                         |-----------------------|Local network|
                                                 |192.168.1.0  |
                                                 |255.255.255.0|
                                                 ---------------

What I did:

1. Compiled kernel with
	options IPFIREWALL
	options IPDIVERT

2. My rc.conf is
	moused_port="/dev/psm0"
	moused_enable="YES"
	saver="logo"
	gateway_enable="YES"
	firewall_enable="YES"
	natd_enable="YES"
	natd_interface="ed1"
	natd_flags="-f /etc/natd.conf"
	hostname="ufo.blezurs.lv"
	ifconfig_ed2="inet 192.168.1.254  netmask 255.255.255.0"
	ifconfig_ed1="inet 159.148.42.242  netmask 255.255.255.252"
	defaultrouter="159.148.42.241"	
	network_interfaces="ed2 ed1 lo0"
	linux_enable="YES"
	ntpdate_enable="YES"
	ntpdate_flags="Time1.Stupi.SE"	
	named_enable="YES"

3. My rc.firewall is
	/sbin/ipfw -f flush
	/sbin/ipfw add divert natd all from any to any via ed1
	/sbin/ipfw add pass all from any to any

4. My rc.local just runs natd

	natd -f /etc/natd.conf

5. My natd.conf is
	interface ed1
	use_sockets yes
	same_ports yes
	dinamic yes

That's all. Nothing works. I can't ping the router nor I can ping local
addresses. Am I missing something? Is something misconfigured?
Thanks in advance...

-- 
---> ViC <---

--==>   Rezekne Internet Service Center         http://www.risc.lv
        "PCT Latgale" Ltd.                      Phone:  +371-4622972
        Baznicas 17, Rezekne,                   Fax:    +371-4625931
        LV-4601, Latvia                         GSM:    +371-9577569
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-


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




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