Guest User!

You are not Sophos Staff.

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

Simple Nat Question

Ok I feel dumb, but I cannot get a simple NAT to work...and its probally just a step that I am missing.

Ok here is my configuration:

Global:
Gateway: 216.x.x.97

First Nic: (internal)
IP: 192.168.1.1
mask: 255.255.255.0

Second Nic: (external)
IP: 216.x.x.101
Mask: 255.255.255.248

Aliases added to external Nic:
216.x.x.98
216.x.x.99
216.x.x.100

3 of my computers in my setup all run httpd,ssh,httpd,pop3 and smtp. I want all of them to be natted.

So I made a Service Group called web_services that  contained all of the predefined services that came with Astaro 2.016.

After this I went to Networks and defined each of my internal computers:
192.168.1.2 natasa
192.168.1.3 natasb
192.168.1.4 natasc
216.x.x.98  natasa_ext
216.x.x.99  natasb_ext
216.x.x.100  natasc_ext

First of all It would only let me use the netmask 255.255.255.255 for these; it gave errors when I tried to tell it 255.255.255.0.

After this I went DNAT and created the following rules for each service. This confused me because I thought that it should have listed service groups to select from but it didn't.
Example: 
natasa http      natasa_ext http

Anyway its not working and Im totally confused....I have setup firewalls before and its usually just these steps above...what am I missing. Can someone with the same setup go through a small walk through of how they set this up?

BTW I want the following to happen. I want the computers listed below to run httpd,ssh,httpd,pop3 and smtp:
192.168.1.2 to be 216.x.x.98
192.168.1.3 to be 216.x.x.99
192.168.1.4 to be 216.x.x.100


This thread was automatically locked due to age.
  • Hi natas, 

    this is an easy task, i am not quite sure what is wrong in your setup. But i will descibe how i did it and how it worked for me.

    Definition > Networks:

    natasa 192.168.1.2 255.255.255.255
    natasb 192.168.1.3 255.255.255.255
    natasc 192.168.1.4 255.255.255.255
    natasa_ext 216.x.x.98  255.255.255.255
    natasb_ext 216.x.x.99  255.255.255.255
    natasc_ext 216.x.x.100 255.255.255.255

    Network > DNAT

    natasa_ext HTTP natasa  HTTP
    natasa_ext SSH  natasa  SSH
    natasa_ext POP3 natasa  POP3
    natasa_ext SMTP natasa  SMTP

    natasb_ext HTTP natasb  HTTP
    natasb_ext SSH  natasb  SSH
    natasb_ext POP3 natasb  POP3
    natasb_ext SMTP natasb  SMTP

    natasc_ext HTTP natasc  HTTP
    natasc_ext SSH  natasc  SSH
    natasc_ext POP3 natasc  POP3
    natasc_ext SMTP natasc  SMTP

    Packet Filter > Rules:

    Any HTTP natasa Allow  
    Any HTTP natasb Allow  
    Any HTTP natasc Allow  

    Any SSH natasa Allow  
    Any SSH natasb Allow  
    Any SSH natasc Allow  

    Any POP3 natasa Allow  
    Any POP3 natasb Allow  
    Any POP3 natasc Allow  

    Any SMTP natasa Allow  
    Any SMTP natasb Allow  
    Any SMTP natasc Allow  

    This should be it, 
    if the natasX computers need also to connect to the internet, enable Masquerading for those hosts
    and add packetfilter rules, 

    Hope this helps, 

    kind regards
    Polluxxx