Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jun 1999 18:59:26 +1200
From:      "Dan Langille" <junkmale@xtra.co.nz>
To:        tsikora@tiac.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ipnat
Message-ID:  <19990603070149.ZEHG8785947.mta2-rme@wocker>
In-Reply-To: <199906030135.UAA29932@metis.host4u.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I've cc'd this message freebsd-questions.

> (Need a modified form of this)
> map ed0 192.168.0.0/16 -> 0.0.0.0/32 portmap tcp/udp
> 40000:65000
> map ed0 192.168.0.0/16 -> 0.0.0.0/32

Well, have you tried?

map ed0 192.168.0.2/32 -> 0.0.0.0/32 portmap tcp/udp
40000:65000

...and then another for each other machine

> I use Linux currently with ipchains and ipfwadm. I use
> the following there:
> 
> # IP masquerading for kernel 2.2 
> 
> /sbin/ipchains -P forward DENY
> /sbin/ipchains -A forward -j MASQ -s 192.168.0.2/32 -d
> 0.0.0.0/0
> /sbin/ipchains -A forward -j MASQ -s 192.168.0.3/32 -d
> 0.0.0.0/0
> 
> # IP masquerading with ipfwadm and 1.3 thru 2.0 kernels.
> 
> /sbin/ipfwadm -F -p deny
> /sbin/ipfwadm -F -a m -S 192.168.0.2/32 -D 0.0.0.0/0
> /sbin/ipfwadm -F -a m -S 192.168.0.3/32 -D 0.0.0.0/0

Well, I've never used Linux.

> I list each machine(192.168.0.2 and 192.168.0.3) because
> 192.168.0.1 has a separate leased line (dial-up) to the
> internet. The Masq machine is 192.168.0.4. Could you show
> me the rules for IPnat for individual machines to use with
> FreeBSD 3.2 Your help would be greatly appreciated. I had
> bad luck with natd.(constant host is down error) 

Did you see any help with that natd problem?  Sounds pretty straight 
forward.
--
Dan Langille - DVL Software Limited
The FreeBSD Diary     - http://www.FreeBSDDiary.org/freebsd/
NZ FreeBSD User Group - http://www.nzfug.nz.freebsd.org/
The Racing System     - http://www.racingsystem.com/racingsystem.htm


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?19990603070149.ZEHG8785947.mta2-rme>