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

DNAT Advice

Hi All,

During 6.312, the DNAT must be different ports
I have a web server at port 80 on my laptop.
This port is not to server website but for F-Secure Policy Manager whereby the it runs a Apache server and clients reports to it via HTTP.

Thus I did a DNAT from Port 1000 -> 80
Example http://account.dyns.org:1000
I recall I created 2 rules
ANY -> WAN Interface Port 1000 Allow
ANY -> My laptop Port 80 Allow

Now in version 7.1
I did a DNAT and used the create rule automatically.
1) I did a scan at GRC and port 1000 is open
2) I run my web server and it seems fine.
3) Run for sometime and I realised it does Not always work and majority of time does not.

4) I do confirm there are times it is successful.

I open Packet Filter

1) It shows "suspecious TCP state" etc in Grey
    Took me sometime and end up I disable everything in Protocol handling
  
2) Now it shows Default Drop.
    By right we should create a rule but I am confused what rule I need as I cannot see the rule that is auto created by the DNAT.

3) I am hasitent to create rule as there are times the console shows client report successfully.

4) I agree rule must be created if 100% default drop but now it seems to work at times, just small minority.


Is this "intermittent" working a DNAT bug ?

Is it still necessary for the ports to be different in 7.1?

Is it advisable to enable protocol handling, check all the boxes and set to strict? Does that make it secure?

TCP Suspicious State in Grey means it drop? or alert and pass thru?


This thread was automatically locked due to age.
Parents
  • "ANY -> WAN Interface Port 1000 Allow"

    This is unnecessary.

    "Is it still necessary for the ports to be different in 7.1?"

    Huh? As long as your ISP allows port 80 incoming, you could use that, or any other port not used by webmin.

    What is your DNAT setting?

    I thought ICMP packets were gray...

    Barry
  • I have a F-Secure Policy Server that runs on my Laptop on port 80 as the module is Apache Server.

    Clients reports to my external interface via port 1000.
    http://***.dyndns.org:1000

    During the Astaro 6.312, the DNAT must be different ports.
    Thus I have to use 1000 -> 80.

    I also have to create 2 rules.
    ANY -> External Interface 1000 Allow
    ANY -> F-Secure Server 80 Allow.

    This worked fine.

    In Astaro, there is Auto Packet Rule.
    Thus I created a DNAT
    ANY Port 1000 -> F-Secure Policy Server 80

    This was actually working thus I mentioned I see clients reporting.

    The "confusion" comes when I open Packet Filter and see a lot of
    Suspecious State in grey showing port 1000 on my External Interface.
    That makes me worried things is dropping.
    Did not know what is suspecious state until I found Protocol Handling.
    Turned Everything Off and now it shows
    Default Drop External Interface 1000
    That got me worried.
    So I create a rule on top ANY -> External Interface Port 100 Allow.
    This cause another default drop whereby 
    External Inferface Port 1000 -> Any  Droped.

    Thinking I seems to be messing things up, I removed all the rules and leave it alone.

    Turns out, the clients are working fine, they are reporting and also receiving the policy etc.

    So what is the problem?

    Honestly, I do not know as I do not know how to read what is behind those IP Address / Ports whereby you see ACKFIn etc is beyond my knowledge.

    [:)]
  • I'm not sure I understand what you are trying to do o not, but it sounds like you are just trying to setup simple port forwarding. Is this correct?

    If so its just a single DNAT rule (you don't even need a PF rule as long as you check the auto PF rule button in the NAT section)
Reply
  • I'm not sure I understand what you are trying to do o not, but it sounds like you are just trying to setup simple port forwarding. Is this correct?

    If so its just a single DNAT rule (you don't even need a PF rule as long as you check the auto PF rule button in the NAT section)
Children
No Data