Announcement

Collapse
No announcement yet.

can't open ports in ufw

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    can't open ports in ufw

    I've been trying to figure out why couldn't I open ports using ufw...
    I've used: sudo ufw allow ssh/tcp
    but when I connect it shows that connectio is not allowed.
    here is the output for iptables -L
    Code:
    Chain INPUT (policy DROP)
    target   prot opt source        destination     
    ufw-before-logging-input all -- anywhere       anywhere      
    ufw-before-input all -- anywhere       anywhere      
    ufw-after-input all -- anywhere       anywhere      
    ufw-after-logging-input all -- anywhere       anywhere      
    ufw-reject-input all -- anywhere       anywhere      
    
    Chain FORWARD (policy DROP)
    target   prot opt source        destination     
    ufw-before-logging-forward all -- anywhere       anywhere      
    ufw-before-forward all -- anywhere       anywhere      
    ufw-after-forward all -- anywhere       anywhere      
    ufw-after-logging-forward all -- anywhere       anywhere      
    ufw-reject-forward all -- anywhere       anywhere      
    
    Chain OUTPUT (policy ACCEPT)
    target   prot opt source        destination     
    ufw-before-logging-output all -- anywhere       anywhere      
    ufw-before-output all -- anywhere       anywhere      
    ufw-after-output all -- anywhere       anywhere      
    ufw-after-logging-output all -- anywhere       anywhere      
    ufw-reject-output all -- anywhere       anywhere      
    
    Chain ufw-after-forward (1 references)
    target   prot opt source        destination     
    
    Chain ufw-after-input (1 references)
    target   prot opt source        destination     
    RETURN   udp -- an
    Anyone here can lighten up my dilemma?
    "Never attribute to malice that which can adequately be defined by stupidity"
Working...
X