How Open Firewall Ports?

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
txema75
Black ninja
Black ninja
Posts: 46
Joined: 07 Feb 2016, 17:45
Distribution: Porteus 3.1 64bits
Location: spain

How Open Firewall Ports?

Post#1 by txema75 » 16 Feb 2016, 11:56

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:

Nergal
White ninja
White ninja
Posts: 4
Joined: 25 Apr 2015, 09:10
Distribution: 3.17.4-porteus
Location: Indonesia

Re: How Open Firewall Ports?

Post#2 by Nergal » 25 Feb 2016, 08:48

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.

txema75
Black ninja
Black ninja
Posts: 46
Joined: 07 Feb 2016, 17:45
Distribution: Porteus 3.1 64bits
Location: spain

Re: How Open Firewall Ports?

Post#3 by txema75 » 28 Feb 2016, 18:27

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 :)

User avatar
brokenman
Site Admin
Site Admin
Posts: 5460
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: How Open Firewall Ports?

Post#4 by brokenman » 28 Feb 2016, 18:29

You need to run this command as guest, not root.
If running it as root just leave out the gksu part.
How do i become super user?
Wear your underpants on the outside and put on a cape.

txema75
Black ninja
Black ninja
Posts: 46
Joined: 07 Feb 2016, 17:45
Distribution: Porteus 3.1 64bits
Location: spain

Re: How Open Firewall Ports?

Post#5 by txema75 » 08 Mar 2016, 11:32

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

Post Reply