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

Packet Filter Newbie :(

Can someone help me to Make my IRC Server and my FTP Server for external client (internet) ?

Thanks.


This thread was automatically locked due to age.
Parents Reply Children
  • You will need to DNAT to your HTTP server
  • Ho ao, 

    Can you explain to me how to do please since i'm a newbie sorry  [:(] 

    Thanks
  • I believe your HTTP server is using fixed IP, then you have to define its IP on Astaro "Definitions >> Networks" with 255.255.255.255 as netmask.

    In "Networks >> NAT/MASQD", you create DNAT with any name of your choice and nat from External Network to External_interface with HTTP as service.  Then select your HTTP IP you define earlier as the destination address. Then your  Packet Filter should work

    So your DNAT/SNAT should look like:
    Source: External_Network
    Destination: External_Interface
    Service: HTTP
    Change destination to: HTTP_Server_IP

    Hope it helps,
    ao
  • Could you first clarify the following for me:

    1)Astaro is installed with how may NIC, 2 or 3?
    2)Is it not the ADSL router to be connected directly to the Internet.  Then why is it having unpublicide IP of 10.0.0.2.
    3)The public IP given to you by your ISP, is it not to be configured on the ADSL Router?
    4)What are range of IP you are using for your Internal_Network and DMZ.
    5)Can you at present get to the Internet the way your configuration is?

    ao
     
     [size="1"][ 04 October 2002, 13:49: Message edited by: ao ][/size]
  • Hi ao !

    So, 

    1 - ON my Astaro i have 2 NIC
    2 - The ADSL Router is connectly directly to the internet and my ISP give me my public IP (80.65.226.54) and the ADSL Router have a internal IP for Administrative Feature (10.0.0.2)
    3 - Between my ADSL Router and Astaro the NetWork Range is 10.0.0.0/255.255.255.0 and Behind Astaro, the network range is 192.168.0.0/255.255.255.0
    4 - I have not a DMZ since my HTTP Server is my Primary Domain Controler so it must be in my private LAN (192.168.0.0) and not in DMZ

    I Repeat my Configuration : 

    Private LAN (192.168.0.0/255.255.255.0) --> (Internal : 192.168.0.1) ASTARO (External, but not public : 10.0.0.2) --> (Internal : 10.0.0.1) Router ADSL (External Public Adress : 80.65.226.54)

    Thanks  [:)]
  • My configuration is somehow different since I am using dynamic ip on cable model.  However, what I can say is that there is no way the firewall is seeing the existence of your internet public IP and no nating is being done since external request goes to 80.65.226.54.

    So what I will suggest 2 options:

    Option 1) Define a network called "Internet_Interface"(80.65.226.54 
    /255.255.255.255)on the firewall. Then change your nating to:

    NAME : HTTP Server
    Source Adress : Any
    Destination Adress : Internet_Interface(80.65.226.54/255.255.255.255)
    Service : HTTP

    Change Source To : No Change
    Change Destination To : ZOOSRV (192.168.0.2)
    Service Destination : No Change

    Leave packet filter as it is.

    Option 2)Define a networks called "Internet_Interface"(80.65.226.54 
    /255.255.255.255)and "Internet_Network"(80.65.226.54/NM giving to you by your ISP) on the firewall. Then change your nating to:

    NAME : HTTP Server
    Source Adress : Internet_Network"(80.65.226.54/NM giving to you by your ISP)
    Destination Adress : Internet_Interface(80.65.226.54/255.255.255.255)
    Service : HTTP

    Change Source To : No Change
    Change Destination To : ZOOSRV (192.168.0.2)
    Service Destination : No Change
    and Packet filter
    From (Client) : Internet_Network"(80.65.226.54/NM giving to you by your ISP)
    Service : HTTP
    To Server : ZOOSRV (192.168.0.2)
    Action : Allow

    Let me know if it works.

    You did not say if you are able to access Internet with your present configuration.
     
     [size="1"][ 04 October 2002, 16:10: Message edited by: ao ][/size]
  • Yep i can access internet with my present configuration. I'm trying your solution.
  • no it doesn't work  [:(]
  • i have found an issues by creating 2 Masquerade rules : 

    NAME : LAN
    NetWork : ANY
    Interface : eth1 (10.0.0.2)

    NAME : WAN
    NetWork : ANY
    Interface : Eth0 (192.168.0.5)

    i think that it's not the better method but it works, so now how to securise this configuration ?  [:)]
  • No sorry it does'nt work  [:(] 

    My NetWork :

    [Internet] -> (80.65.226.54) Router ADSL (10.0.0.1) -> (10.0.0.2) Astaro (192.168.0.1) -> (192.168.0.2) HTTP Server

    I have'nt a DMZ.

    I have make DNAT

    NAME : HTTP Server
    Source Adress : Eth1_network (10.0.0.0/255.255.255.0)
    Destination Adress : Eth1_Interface (10.0.0.2/255.255.255.255)
    Service : HTTP

    Change Source To : No Change
    Change Destination To : ZOOSRV (192.168.0.2)
    Service Destination : HTTP

    Moreover i have make Packet Filter for it :

    From (Client) : Any
    Service : HTTP
    To Server : ZOOSRV (192.168.0.2)
    Action : Allow

    So what i have forgoten ???

    Thanks for take care about me   [:)]