Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-14-2014, 02:46 PM
|
#1
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,854
|
Why is FTP working when it is not allowed in GUFW?
Hi.
I have a a firewall on my wireless router (standard setting). I also have GUFW enabled (no additional settings made).
Recently I used this Android app named ' Ftp Server' to copy files to my smartphone from my PC via the router.
I am curious as to why FTP is working when it is not allowed as a rule in GUFW. I presume my router firewall allows it by default.
Can someone shed some light on this?
Thanks.
Last edited by linustalman; 01-14-2014 at 02:47 PM.
|
|
|
01-14-2014, 03:13 PM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,367
|
I assume that the smartphone is connected via wifi so it is on your internal LAN. Your router's firewall has no affect in this case. If your transferring files to the smartphone then the incoming connection is already established and so the GUFW allows it.
|
|
|
01-15-2014, 10:31 AM
|
#3
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,854
Original Poster
|
Quote:
Originally Posted by michaelk
I assume that the smartphone is connected via wifi so it is on your internal LAN. Your router's firewall has no affect in this case. If your transferring files to the smartphone then the incoming connection is already established and so the GUFW allows it.
|
Hi michaelk.
Yes, it's connected via wireless. Could you elaborate on 'incoming connection is already established'. Attached is a screengrab of my Gufw setup (for 'Incoming' it says 'Deny'). Also I am able to copy a file from my smartphone to my PC via Filezilla - should that be allowed?
Last edited by linustalman; 01-15-2014 at 10:32 AM.
|
|
|
01-15-2014, 02:39 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,367
|
The screen shot is missing.
Basically, an established connection will allow incoming traffic from outgoing connections. For example someone might probe your computer for a ftp server. The firewall will block that but if you initiate a connection to a FTP server from the computer itself the firewall will allow that traffic back.
Is your incoming policy deny? Without seeing your rules I can not say why you can connect to the ftp server on the PC.
|
|
|
01-15-2014, 03:38 PM
|
#5
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,854
Original Poster
|
Quote:
Originally Posted by michaelk
The screen shot is missing.
Basically, an established connection will allow incoming traffic from outgoing connections. For example someone might probe your computer for a ftp server. The firewall will block that but if you initiate a connection to a FTP server from the computer itself the firewall will allow that traffic back.
Is your incoming policy deny? Without seeing your rules I can not say why you can connect to the ftp server on the PC.
|
Sorry, here it is.
|
|
|
01-15-2014, 05:44 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,367
|
It appears that the firewall should drop incoming connections.
|
|
|
01-17-2014, 04:27 AM
|
#7
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,854
Original Poster
|
Quote:
Originally Posted by michaelk
It appears that the firewall should drop incoming connections.
|
So I should not be able to copy files from my smartphone to the PC? Do you think this a Gufw or ufw bug?
Code:
sudo ufw status verbose
Code:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip
Last edited by linustalman; 01-17-2014 at 03:01 PM.
|
|
|
All times are GMT -5. The time now is 03:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|