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

Question about DMZ

Hi!

I recently managed to setup a DMZ with help from this forum. I have a ftpserver running on the DMZ. The FTP is working as a charm from external and from the lan.

I only have one external ip from ISP.

The problem now is that i don't know how to set the correct rules to let the server access HTTP etc.

eth0: 192.168.0.X (LAN)
eth1: 217.XXX.XXX.XXX (ISP)
eth2: 192.168.4.X (DMZ)

I don't know if the lan-settings are correct on the server.
IP: 192.168.4.1
Gateway: 192.168.0.254 (ASTARO) 


This thread was automatically locked due to age.
Parents Reply Children
  • Correcting my previous post, as it had an error in the SNAT line.

    You will need a SNAT rule like this:

    FTP Any -> External_Interface__ / FTP None ftpserver.whatever.com

    The logic is this:

    Any address entering the external interface,
    FTP protocol only (ports 20 & 21),
    No source address translation (original address is preserved),
    forward to internal FTP server on local LAN.

    I have this configured on my ASL box, and it works.

    The FTP server must point to the ASL box as its default gateway