Author Topic: FTP is blocked by firewall - how to make a rule  (Read 8716 times)

0 Members and 1 Guest are viewing this topic.

REDACTED

  • Guest
FTP is blocked by firewall - how to make a rule
« on: August 28, 2014, 09:24:17 AM »
Hi
After using Avast for many years, I have finally applied the Firewall on my Avast Premium.

Very good, but it is blocking my ftp connection to ip number 91.231.101.80. (I connect with TotalCommander).

I have tried to read this manual: http://www.avast.com/da-dk/faq.php?article=AVKB25
and understand that I have to make a "Friends" but what is the From ip number (I have tried both my public ip number and the internal ip nr)

 :) Jesper

Offline Eddy

  • Avast Evangelist
  • Maybe Bot
  • ***
  • Posts: 31079
  • Watching (over?) you
    • Malware removal, Biljart and other things.
Re: FTP is blocked by firewall - how to make a rule
« Reply #1 on: August 28, 2014, 12:28:05 PM »
Check the firewall log to see if it it blocking the connection to or from that IP.
There is a difference between them.

For the "to" part you will need to have port 21 open.
For the "from"part it depends on the ftp server settings.

REDACTED

  • Guest
Re: FTP is blocked by firewall - how to make a rule
« Reply #2 on: August 29, 2014, 11:07:55 AM »
Hi Eddy
Thanks for your fast reply.
In the firewall log I can see the following blocked trafic
Remote address 94.23.101.80, remote port 20, local address 192.168.1.201, local port 52660, protocol TCP, Direction in, program: ..Totalcommander.exe.

I have made a "Friends"  rule. From 192.168.1.201 to 94.23.101.80
In "Application Rules" i have found the program "total Commander  and have set "Allowed connections" to "All connections, and set both Out and inbound ports to all.

But I still have the same errors in the log??

What to do?

/Jesper DK
PS in the "Network connections" I can see a connection to 94.23.101.80, but to Remote port 21?

Offline Eddy

  • Avast Evangelist
  • Maybe Bot
  • ***
  • Posts: 31079
  • Watching (over?) you
    • Malware removal, Biljart and other things.
Re: FTP is blocked by firewall - how to make a rule
« Reply #3 on: August 29, 2014, 11:59:02 AM »
94.23.101.80 port 21 is the outbound.
This will allow you to contact the ftp server.

Now you need to find out what port need to be allowed for inbound so the server can reaches you.
- Clear the logfile
- Try to connect to the ftp server
- Check the log file if something is blocked and if so what is blocked.
This should tell you the inbound port.


This is for FileZilla, but may help you to understand things:
http://www.ovh.com/fr/g1380.utilisation-filezilla

REDACTED

  • Guest
Re: FTP is blocked by firewall - how to make a rule
« Reply #4 on: August 31, 2014, 05:31:58 PM »
Hi Eddy

 I have now found that my problem is due to error in TotalCommander.
When I set the FTP connection to "Passive" in Totalcommander then every thing is fine

Thanks for you help.

/Jesper DK

Offline Eddy

  • Avast Evangelist
  • Maybe Bot
  • ***
  • Posts: 31079
  • Watching (over?) you
    • Malware removal, Biljart and other things.
Re: FTP is blocked by firewall - how to make a rule
« Reply #5 on: August 31, 2014, 08:23:25 PM »
Strange,
I also use Total Commander and have my connection set to active and have no problem with it.