freebsd and the natd interface ??

freebsd and the natd interface ??

Post by Terry Moor » Wed, 18 Oct 2000 04:00:00



Greetings all.

I have a dedicated ip

321.321.321.321  interface vr0

I have a private net

192.168.10.1  ( 255.255.255.0)  on interface vr1

ok  

I think this way :

all trafic on vr1 I  need to masqurade so
in this order

(1)   /sbin/natd -v -log -dynamic -interface vr1

(2)   ${IPFW} add  divert natd all from any to any via vr1

OK... now should line (2) have the interface of

vr1 or vr0

Regards
Terry

 
 
 

freebsd and the natd interface ??

Post by Kristian Ra » Wed, 18 Oct 2000 04:00:00


Hi



Quote:>321.321.321.321  interface vr0
>192.168.10.1  ( 255.255.255.0)  on interface vr1
>all trafic on vr1 I  need to masqurade so
>in this order

No it needs to be nat'ed... "masquarade" is a linuxism :)
The RFC that linux Masquarading is build upon talks about
NAT. So does everyone else, except the penguin folks...

Quote:>(1)   /sbin/natd -v -log -dynamic -interface vr1
>(2)   ${IPFW} add  divert natd all from any to any via vr1
>OK... now should line (2) have the interface of
>vr1 or vr0

nope.

natd is applied to the nic that has the public IP
natd/8660 is diverted through the same if that has the natd running

regards

Kristian        AKA The eternal newbie