Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
firewalld problems [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1607

PostPosted: Thu Sep 24, 2015 12:21 pm    Post subject: firewalld problems [solved] Reply with quote

When I try to apply any permanent changes to firewalld rules I get the following:
pc services # firewall-cmd --permanent --zone home --remove-service samba-client
Error: INVALID_SERVICE: 'mdns' not among existing services


thanks


Last edited by Adel Ahmed on Tue Sep 29, 2015 4:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3498

PostPosted: Thu Sep 24, 2015 5:18 pm    Post subject: Reply with quote

What are those rules you set? Are you trying to configure firewall with service names instead of ports?
Do you have mdns in your /etc/services?
Quote:
$ grep mdns /etc/services
mdns 5353/tcp # Multicast DNS
mdns 5353/udp
mdnsresponder 5354/tcp noclog # Multicast DNS Responder IPC
mdnsresponder 5354/udp noclog # noclogd with TCP (nocol)
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1607

PostPosted: Thu Sep 24, 2015 6:39 pm    Post subject: Reply with quote

that is the only rul I have tried so far:
firewall-cmd --permanent --zone home --remove-service samba-client
yes , if I use the service name:
pc tiny # firewall-cmd --add-port 8080/tcp --permanent
Error: INVALID_SERVICE: 'dhcpv6-client' not among existing services

and yes both services are in /etc/services



thanks
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1607

PostPosted: Fri Sep 25, 2015 8:07 pm    Post subject: Reply with quote

help anyone?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1607

PostPosted: Sun Sep 27, 2015 12:11 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1607

PostPosted: Tue Sep 29, 2015 4:20 pm    Post subject: Reply with quote

solved by removing the services from the public zone

firewall-cmd --zone=public --remove-service dhcpv6-client --permanent
firewall-cmd --zone=public --remove-service mdns --permanent
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum