Subject: Re: ipnat: Multiple interfaces and routing
To: Jonathan A. Kollasch <jakllsch@kollasch.net>
From: None <wysoft@extremecode.org>
List: tech-net
Date: 11/27/2005 16:37:52
Aha! That was it! Thanks Johnathan :)

On Sun, 27 Nov 2005, Jonathan A. Kollasch wrote:

> Date: Sun, 27 Nov 2005 16:41:39 -0600
> From: Jonathan A. Kollasch <jakllsch@kollasch.net>
> To: wysoft@extremecode.org
> Cc: tech-net@netbsd.org
> Subject: Re: ipnat: Multiple interfaces and routing
> 
> On Sun, Nov 27, 2005 at 01:46:50PM -0800, wysoft@extremecode.org wrote:
>> nothing should be getting blocked. Here is my ipnat.conf:
>>
>> # Compensate for NAT-broken protocols
>> map ex0 192.168.1.0/24 -> 0/32 proxy port ftp ftp/tcp
>> map mc0 192.168.2.0/24 -> 0/32 proxy port ftp ftp/tcp
>>
>> # Port redirections
>> #rdr ex0 0.0.0.0/0 port 6114 -> 192.168.1.106 port 6114 udp
>>
>> # Essential mappings
>> map ex0 192.168.1.0/24 -> 67.168.161.233/32
>> map ex0 192.168.1.0/24 -> 67.168.161.233/32 portmap tcp/udp auto
>> map mc0 192.168.2.0/24 -> 67.168.161.233/32
>> map mc0 192.168.2.0/24 -> 67.168.161.233/32 portmap tcp/udp auto
>
> Try this:
>
> # Compensate for NAT-broken protocols
> map ex0 192.168.1.0/24 -> 0/32 proxy port ftp ftp/tcp
> map ex0 192.168.2.0/24 -> 0/32 proxy port ftp ftp/tcp
>
> # Port redirections
> #rdr ex0 0.0.0.0/0 port 6114 -> 192.168.1.106 port 6114 udp
>
> # Essential mappings
> map ex0 192.168.1.0/24 -> 67.168.161.233/32
> map ex0 192.168.1.0/24 -> 67.168.161.233/32 portmap tcp/udp auto
> map ex0 192.168.2.0/24 -> 67.168.161.233/32
> map ex0 192.168.2.0/24 -> 67.168.161.233/32 portmap tcp/udp auto
>
> 	Jonathan Kollasch
>