[ previous ] [ next ] [ threads ]
 
 From:  Tonni Aagesen <agent29 at stofanet dot dk>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  simple NAT troubles
 Date:  Sat, 03 Jan 2004 16:29:52 +0100
Hi list,

sorry for the simple question, but I just can't figure out why NAT 
doesn't work.

I have a pretty simple setup as described here below, and it should work 
  as far as I can tell. There are no other rules in config than the one 
posted below. Anyone?


Best regards
Tonni Aagesen


----------------- SETUP -------------------------------------

[WAN] --> [m0n0 on a NET4801] --> [LAN]
                                     |
                                     |-> [Server: 10.0.0.190]
                                     |-> [client: 10.0.0.xyz]

-------------------------------------------------------------


---------------- some config.xml ----------------------------

<nat>
     <rule>
         <protocol>tcp</protocol>
         <external-port>2222</external-port>
         <target>10.0.0.190</target>
         <local-port>2222</local-port>
     </rule>
</nat>
<filter>
     <rule>
         <type>pass</type>
         <interface>wan</interface>
         <protocol>tcp</protocol>
         <source>
             <any/>
             <port>2222</port>
         </source>
         <destination>
             <any/>
             <port>2222</port>
          </destination>
     </rule>
     <rule>
         <type>pass</type>
         <descr>Default LAN -&gt; any</descr>
         <interface>lan</interface>
         <source>
             <network>lan</network>
         </source>
         <destination>
             <any/>
         </destination>
     </rule>
</filter>
------------------------------------------------------------