This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Static Nat

First i want to say, its my first time with the Astaro Firewall, and  I want to configure a static nat. I found in the forum several posts about nat configuration but nothing worked for me. 

Here is the nat rule :  Match parameters : testpc -> Any / Any, SRC translation: natpc,  DST translation:  None 

My paket filter rules : 
  1  pcnat Any Any Allow   
  2  Any Any testpc Allow 
  3  testpc Any Any Allow  
  5  natpc  Any testpc Allow 
  4  Any Any Any Log Drop   
 

Anyone an idea what i have configured wrong here ? When I enable masquerading it works fine.. but this is not what I need.
   


This thread was automatically locked due to age.
Parents
  • maybe you should tell us what you want the nat rule to do for you...

    /marcel 
  • Silly me, was too tired yesterday  

    I want to static nat a Pc here, from a internal adress of one official external adress (its just for testing purpose). The pc should have then access to the internet and must reachable from there. 

    Take Care
      
  • do the following definitions:

    PC-intern: 
    PC-extern:  (if you want to use 'External_Interface__', skip this definition)

    add the following NAT rules:
    1 - SNAT (traffic from PC to outside):
    Match Source: PC-intern
    Match Dest: no match
    Match Port: no match
    Change Source: PC-extern (or External_Interface__)
    Change Dest: no change

    2 - DNAT (traffic from outside to PC):
    Match Source: no match
    Match Dest: PC-extern (or External_Interface__ - be careful here.. access to the Webadmin from outside will no longer work!)
    Match Port: no match
    Change Source: no change
    Change Dest: PC-intern

    add the following Packetfilterrules:

    PC-intern  Any  Any Allow  (for traffic from PC to outside)
    Any Any PC-intern Allow (for traffic from outside to PC)

    done

    for more questions: read the FAQ

    /marcel 
  • Heya Marcel,

    thx for your fast answer. But it only works when I am configure the SNAT/DNAT rule for the external interface, and not for the external PC Ip adress. 

    I am working with ASL 4002..

    Any ideas ?


       
  • Hi!

    I solved this issue so that I added additional IP to the external NIC. I don't know if this is the best way, but it works.

    Best regards, Matjaz 
  • Yeah Matjaz.. this works perfect. Thx for your help

    regards Netzzwerk   
Reply Children
No Data