Date: Sun, 28 May 2000 18:12:35 +0300 From: "Andrew Shahoff" <shahoff@latnet.lv> To: <freebsd-questions@FreeBSD.ORG> Subject: Ipfw + natd Message-ID: <NDBBIANAAMLPPFKCKNFIEEFKCAAA.shahoff@latnet.lv>
next in thread | raw e-mail | index | archive | help
1) What I have: /real lan/ed1 with 2 real IP`s from one
subnet/freebsd4.0/ed0 with 2 fake ip`s from 2 diference subnets
2) What I need : I need divert first fake net to first real IP , and divert
second fake subnet to second real ip
3) What I do : start 2 natd`s ( with diferent ports )
/sbin/natd -p 8668 -u -a ${firstreal}
/sbin/natd -p 8669 -u -a ${secondreal}
write in rc.firewall rules like that
${fwcmd} add 10 divert 8668 all from 10.0.0.0/24 to any via
${firstreal}
${fwcmd} add 20 divert 8669 all from 10.0.1.0/24 to any via
${secondreal}
${fwcmd} add pass all from any to any
And all , nothing work ( if I write ${fwcmd} add 10 divert 8668 all from
any to any via ${firstreal} all work but only thrue ${firstreal} )
Where is error ?
Sorry for bad eglish :)
With best Regards.....
===========================
Andrew Shahoff
shahoff@ardi.lv
===========================
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?NDBBIANAAMLPPFKCKNFIEEFKCAAA.shahoff>
