[ previous ] [ next ] [ threads ]
 
 From:  John Stillwagen <jstillwa at liai dot org>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Advanced Nat Question
 Date:  Wed, 21 Jan 2004 12:19:29 -0800
So, when you do auto-nat or map to any, rules get created like,

map rl0 172.21.0.0/24 -> 0.0.0.0/32 proxy port ftp ftp/tcp
map rl0 172.21.0.0/24 -> 0.0.0.0/32 portmap tcp/udp auto
map rl0 172.21.0.0/24 -> 0.0.0.0/32

When you try to map to a network, you get rules like these...
map rl0 from 172.21.0.0/24 to 172.20.1.76/32 -> 0.0.0.0/32 proxy port ftp ftp/tcp
map rl0 from 172.21.0.0/24 to 172.20.1.76/32 -> 0.0.0.0/32 portmap tcp/udp auto
map rl0 from 172.21.0.0/24 to 172.20.1.76/32 -> 0.0.0.0/32

Is it possible to create a rule akin to,

map rl0 172.21.0.0/24 -> 172.20.1.76/32 portmap tcp/udp auto?


(Note: IP Addresses changed to protect the innocent)