Page 1 of 1

Is there a command to turnon/off firewall in FP64?(SOLVED)

Posted: Mon Jan 31, 2022 4:13 am
by gychang

I need to turnoff the firewall during use of pureftp in the server and gftp on the client in my home network. I am trying to make a small script that will turnoff during when I am using gftp. Is there a command to turnon and turnoff the firewall in FP64?


Re: command to turnon/off firewall in FP64

Posted: Mon Jan 31, 2022 8:15 am
by HerrBert

Firewall is started/stopped by script /etc/init.d/rc.firewall
Like any system service in /etc/init.d it can be controlled with the start|stop parameter.

So to turn off your firewall run /etc/init.d/rc.firewall stop
Start it again with /etc/init.d/rc.firewall start

(Why not configure firewall for ftp?)


Re: command to turnon/off firewall in FP64

Posted: Mon Jan 31, 2022 1:45 pm
by gychang
HerrBert wrote: Mon Jan 31, 2022 8:15 am

Firewall is started/stopped by script /etc/init.d/rc.firewall
Like any system service in /etc/init.d it can be controlled with the start|stop parameter.

So to turn off your firewall run /etc/init.d/rc.firewall stop
Start it again with /etc/init.d/rc.firewall start

(Why not configure firewall for ftp?)

I first tried as seen here but did not seem to work (message "entering passive mode and hangs)... Your suggestions work perfectly with commands.

FP-2022-01-31-1643636588_screenshot_1360x768.jpg
FP-2022-01-31-1643636588_screenshot_1360x768.jpg (58.1 KiB) Viewed 1023 times

Re: Is there a command to turnon/off firewall in FP64?(SOLVED)

Posted: Tue Feb 01, 2022 3:10 am
by bigpup

If you are trying to set specific ports open.
Do that.
But do not have selected "when this button is checked a generic firewall is generated" .
That makes apply button, still produce the generic firewall, no matter what you select for individual ports.

Select the ports to open.
I think you also need to now select "your firewall is configured".
Then select apply.


Re: Is there a command to turnon/off firewall in FP64?(SOLVED)

Posted: Tue Feb 01, 2022 3:28 pm
by gychang
bigpup wrote: Tue Feb 01, 2022 3:10 am

If you are trying to set specific ports open.
Do that.
But do not have selected "when this button is checked a generic firewall is generated" .
That makes apply button, still produce the generic firewall, no matter what you select for individual ports.

Select the ports to open.
I think you also need to now select "your firewall is configured".
Then select apply.

thanks!, got it.