Score:0

Ufw allow http traffic out

cn flag

I have a machine on wich i've installed ufw, this are my rules

To                         Action      From
--                         ------      ----
22/tcp                     LIMIT       Anywhere                  
Nginx Full                 ALLOW       Anywhere                  
5000                       ALLOW       Anywhere                  
25                         ALLOW       Anywhere                  
22                         LIMIT       Anywhere                   # allow SSH connections in
80/tcp                     ALLOW       Anywhere                  
443/tcp                    ALLOW       Anywhere                   # allow https traffic update
Apache Full                ALLOW       Anywhere                  
587                        ALLOW       Anywhere                  
993                        ALLOW       Anywhere                   # godaddy IMAP
995                        ALLOW       Anywhere                   # godaddy POP3
465                        ALLOW       Anywhere                   # godaddy SMTP
SMTPTLS                    ALLOW       Anywhere                  
80                         ALLOW       Anywhere                  
22/tcp (v6)                LIMIT       Anywhere (v6)             
Nginx Full (v6)            ALLOW       Anywhere (v6)             
5000 (v6)                  ALLOW       Anywhere (v6)             
25 (v6)                    ALLOW       Anywhere (v6)             
22 (v6)                    LIMIT       Anywhere (v6)              # allow SSH connections in
80/tcp (v6)                ALLOW       Anywhere (v6)             
443/tcp (v6)               ALLOW       Anywhere (v6)              # allow https traffic update
Apache Full (v6)           ALLOW       Anywhere (v6)             
587 (v6)                   ALLOW       Anywhere (v6)             
993 (v6)                   ALLOW       Anywhere (v6)              # godaddy IMAP
995 (v6)                   ALLOW       Anywhere (v6)              # godaddy POP3
465 (v6)                   ALLOW       Anywhere (v6)              # godaddy SMTP
SMTPTLS (v6)               ALLOW       Anywhere (v6)             
80 (v6)                    ALLOW       Anywhere (v6)             

53                         ALLOW OUT   Anywhere                   # allow DNS calls out
123                        ALLOW OUT   Anywhere                   # allow NTP out
80/tcp                     ALLOW OUT   Anywhere                  
443/tcp                    ALLOW OUT   Anywhere                   # allow HTTPS traffic out
43/tcp                     ALLOW OUT   Anywhere                   # allow whois
25                         ALLOW OUT   Anywhere                   # allow MAIL out
SMTPTLS                    ALLOW OUT   Anywhere                   # open TLS port 465 for use with SMPT to send e-mails
21/tcp                     ALLOW OUT   Anywhere                   # allow FTP traffic out
53 (v6)                    ALLOW OUT   Anywhere (v6)              # allow DNS calls out
123 (v6)                   ALLOW OUT   Anywhere (v6)              # allow NTP out
80/tcp (v6)                ALLOW OUT   Anywhere (v6)             
443/tcp (v6)               ALLOW OUT   Anywhere (v6)              # allow HTTPS traffic out
43/tcp (v6)                ALLOW OUT   Anywhere (v6)              # allow whois
25 (v6)                    ALLOW OUT   Anywhere (v6)              # allow MAIL out
SMTPTLS (v6)               ALLOW OUT   Anywhere (v6)              # open TLS port 465 for use with SMPT to send e-mails
21/tcp (v6)                ALLOW OUT   Anywhere (v6)              # allow FTP traffic out

I'm trying to make a curl request to another server curl http://my.ip:5000 But this command gives a connection timed out error.

I thought that the problem was ufw not allowing http traffic out so I enabled it but didn't work. If i totally disable ufw the curl command works correctly and returns the response but i cannot figure out what rule i need to add

wizardpurple avatar
cn flag
If you limiting outgoing traffic by the rules shown, it looks like you haven't allowed port 5000 out.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.