You are not logged in.

#1 2015-12-08 19:38:13

jerik
Member
Registered: 2009-03-02
Posts: 197

[Solved] Can't get KDE Connect to work with UFW

Hello! KDE Connect works when I turn off UFW, but when I add

1714:1764/tcp (v6)         ALLOW       Anywhere (v6)
1714:1764/udp (v6)         ALLOW       Anywhere (v6)

it does not work...

I also tried

10.0.0.255 1764/udp        ALLOW       10.0.0.0 1714/udp
10.0.0.255 1764/tcp        ALLOW       10.0.0.0 1714/tcp

as I wanted to limit the ports to the local network, but this does not work either...

If I stop ufw and connect my phone, and then fire up uwf again, it remains connected till reboot, but I suppose this is normal behaviour?

Last edited by jerik (2015-12-11 22:49:27)

Offline

#2 2015-12-09 15:18:29

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: [Solved] Can't get KDE Connect to work with UFW

Has anyone here successfully installed both KDE Connect and UFW with Arch? This problem is with two of my PCs...

Offline

#3 2015-12-10 12:45:44

aouelete
Member
Registered: 2015-05-27
Posts: 30

Re: [Solved] Can't get KDE Connect to work with UFW

Right now I am using KDE connect and ufw without any issues.
The only thing that I think that I can think of is that you did not open ports 1714-1764 for both udp and tcp.

Offline

#4 2015-12-10 15:12:49

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: [Solved] Can't get KDE Connect to work with UFW

As you can see in my first post I have added rules for both... It is very strange, because if I remove those rules, stop ufw and connect my phone, the connection is lost as soon as I start ufw again.
But with the rules enabled, the connection remains after I start ufw again....

Offline

#5 2015-12-10 15:13:45

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: [Solved] Can't get KDE Connect to work with UFW

Could you provide the commands you use to open the port ranges? Just to see if there is something you do differently...

Offline

#6 2015-12-10 15:15:15

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: [Solved] Can't get KDE Connect to work with UFW

I have tried this:

$ sudo ufw allow proto tcp from 10.0.0.0 port 1714 to 10.0.0.255 port 1764
$ sudo ufw allow proto udp from 10.0.0.0 port 1714 to 10.0.0.255 port 1764

and this:

$ sudo ufw allow proto tcp to any port 1714:1764
$ sudo ufw allow proto udp to any port 1714:1764

Offline

#7 2015-12-10 21:12:39

aouelete
Member
Registered: 2015-05-27
Posts: 30

Re: [Solved] Can't get KDE Connect to work with UFW

What I did (if I remember correctly) was:

# ufw allow 1714:1764/udp
# ufw allow 1714:1764/tcp

I think that if you get rid of your from and to ip addresses it should work.

Offline

#8 2015-12-10 21:21:03

jerik
Member
Registered: 2009-03-02
Posts: 197

Re: [Solved] Can't get KDE Connect to work with UFW

Thank you!

Doing that I now see that it adds two rules for each time, one with (v6) and one without. I suppose this has to do with IPv6. I am quite sure that this was it, that rules for IPv4 was missing ;D

Offline

Board footer

Powered by FluxBB