Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2006 15:58:06 +0100
From:      "cedric Gross" <cgross@2blc.Com>
To:        <freebsd-questions@freebsd.org>
Subject:   IpNat and 3 NIC
Message-ID:  <20060112145707.76A8D6D667@bruce.cnv.fr>

next in thread | raw e-mail | index | archive | help
Hello,

I have my FreeBSD 5.4 box with 3 NIC :

Xl0 LAN with network 10.0.0.0/8 and 192.168.0.0/30
VR0 Wan 84.96.23.106/32
VR1 LAN with network 192.168.0.32/27 and 192.168.0.96/27

I use IPNAT and Ip filter.

I'm doing NAT from Xl0 to Vr0, it's working fine

I'm trying to do the same thing with vr1 to Vr0 but it's seems that traffic
coming from vr1 are not translated.
Is there a interface limitation with IPNAT ?

Is there a way to do translation from both NIC ?

Here is my ipnat.conf :
map vr0 10.0.0.0/8 -> 84.96.23.106/32 proxy port ftp ftp/tcp
map vr0 10.0.0.0/8 -> 84.96.23.106/32 portmap tcp/udp 20000:60000
map vr0 10.0.0.0/8 -> 84.96.23.106/32
map vr0 192.168.0.0/30 -> 84.96.23.106/32 portmap tcp/udp auto
map vr1 192.168.0.32/27 -> 84.96.23.106/32 portmap tcp/udp auto
map vr1 192.168.0.32/27 -> 84.96.23.106/32
map vr1 192.168.0.96/27 -> 84.96.23.106/32 portmap tcp/udp auto
map vr1 192.168.0.96/27 -> 84.96.23.106/32
rdr xl0 0.0.0.0/0 port 80 -> 10.0.0.254 port 3128 tcp
rdr vr1 192.168.0.32/27 port 80 -> 10.0.0.254 port 3128 tcp
rdr vr1 192.168.0.96/27 port 80 -> 10.0.0.254 port 3128 tcp

Thanks for help.
Cedric





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