Page 1 of 1

How Open Firewall Ports?

Posted: 16 Feb 2016, 11:56
by txema75
Hello. I´m new in porteus 3.1 64bits, and i have a problem with firewall.
When this is active, mail program (trojitá) don´t connect. Also occurs with p2p program (amule). I have to turn off the firewall to run this. :oops
I need help to open the apropiate ports in porteus firewall rules to these programas

Thanks in advance :ROFL:

Re: How Open Firewall Ports?

Posted: 25 Feb 2016, 08:48
by Nergal
try edit firewall script with su

Code: Select all

gksu "mousepad /etc/rc.d/rc.Firewall"
then find line "ALLOWED_PORTS" and add the port you want to open here. for example 7234

Code: Select all

ALLOWED_PORTS="20 21 22 25 80 110 143 443 7234"
save it and restart the firewall:

Code: Select all

gksu "/etc/rc.d/rc.Firewall stop"
gksu "/etc/rc.d/rc.Firewall start"
but this setting won't load in next always fresh mode
You can try to create module for your applications, which I more recomended, so it will be able even if in always fresh mode.

Re: How Open Firewall Ports?

Posted: 28 Feb 2016, 18:27
by txema75
Many Thanks Nergal :)
I tried it but I get this error message
(gksu:2261): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
GConf Error: No D-BUS daemon running
I see the path where the firewall file is and edit it with kwrite, but will not let me save changes

Thanks for the help :)

Re: How Open Firewall Ports?

Posted: 28 Feb 2016, 18:29
by brokenman
You need to run this command as guest, not root.
If running it as root just leave out the gksu part.

Re: How Open Firewall Ports?

Posted: 08 Mar 2016, 11:32
by txema75
Thanks again
I have also tried as a guest. A window appears and asks for administrative authentication permision (root?) and gives me this error with password "toor"
guest@porteus:~$ gksu "mousepad /etc/rc.d/rc.Firewall"
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
sh: mousepad: no se encontró la orden
with password "guest" appears new error windows
Failed to run mousepad /etc/rc.d/rc.Firewall as user root.

Failed to communicate with gksu-run-helper.

Received:

su: se produjo un fallo en la autenticación

While expecting:
gksu: waiting