Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 01:40:38 -0400
From:      Isaac Mushinsky <imush@mail.ru>
To:        "freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   routing
Message-ID:  <01071101403801.00337@omsk.mushinsky.net>

next in thread | raw e-mail | index | archive | help
Sorry for silly questions but I never had to do routing before.

I have 2 static IP addresses, x.x.x.101 and x.x.x.102 from my DSL provide=
r, a=20
DSL modem and 2 boxes, one with 2 NICs, (no router). Interface rl0 goes t=
o=20
the modem and interface dc0 to the other box. So far we used ipfw with na=
td=20
to masquerade under 1 IP. I now need to give the other public IP to the=20
second (Windows) box. Can I do it? How? I need to tell my machine that dc=
0 is=20
the way to x.x.x.102 and nowhere else.

Current setup with natd in rc.conf is=20
ifconfig_rl0=3D"inet x.x.x.101 netmask 255.255.255.0"
ifconfig_dc0=3D"inet 192.168.2.100 netmask 255.255.255.0"
firewall_enable=3D"YES"
natd_program=3D"/sbin/natd"
natd_interface=3D"rl0"
natd_enable=3D"YES"
gateway_enable=3D"YES"=20

defaultrouter=3D"x.x.x.1"           <<        this is the ISP's gateway

and
etc> cat rc.firewall
/sbin/ipfw -f flush
/sbin/ipfw add divert 8668 all from any to any via rl0
/sbin/ipfw add allow all from any to any

Thanks

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?01071101403801.00337>