No route to host with nc but can ping

468

Your no route to host while the machine is ping-able is the sign of a firewall that denies you access politely (i.e. with an ICMP message rather than just DROP-ping).

See your REJECT lines? They match the description (REJECT with ICMP xxx). The problem is that those seemingly (#) catch-all REJECT lines are in the middle of your rules, therefore the following rules won't be executed at all. (#) Difficult to say if those are actual catch-all lines, the output of iptables -nvL would be preferable.

Put those REJECT rules at the end and everything should work as expected.

Share:
468

Related videos on Youtube

Onret
Author by

Onret

Updated on September 18, 2022

Comments

  • Onret
    Onret over 1 year

    I am a bit new to flash and actionscript but i am learning. With this code I am trying to get a message that says true when the value is between from and to. When I run this it gives the error in the title. What am I doing wrong?

    from = Number(txtFra.text);
    value = Number(txtTall.text);
    to = Number(txtTil.text);
    var from:Number;
    var value:Number;
    var value:Number;
    
    function insideIntervall(from:int, value:int, to:int):Boolean
    {
        var bool:Boolean
        if (from<value<to)
        {
            bool = true;
        }
        else
        {
            bool = false;
        }
        if (bool == true)
        {
            trace("True");
        }
        else
        {
            trace("False");
        }
    }
    
    • BadFeelingAboutThis
      BadFeelingAboutThis about 8 years
      Your function definition has ):Boolean at the end, which means there's a contract that says this function will return a true or false value. Likely what you want to do is just return bool at the end of the function.
  • null
    null about 8 years
    plus the code outside the function (above it in the code) is somewhat strange: from and value are assigned a value before being declared and the latter is declared twice.