Author Topic: Command line with putty to stop firewall  (Read 3276 times)

mammut3d

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Command line with putty to stop firewall
« on: April 26, 2019, 09:18:16 am »
Hi,

I turned zentyal 6.0 firewall on, now i can not access zentyal via browser. Is there a command line based command to disable this module?

Update:
I stop Zentyal service by command : sudo service zentyal stop
‌But still can not connect with putty.
Command: nmap -Pn <server_IP> returns:
all 1000 scanned ports on are filtered.

Can anyone help?
« Last Edit: April 26, 2019, 10:26:19 am by mammut3d »

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Command line with putty to stop firewall
« Reply #1 on: May 26, 2019, 09:38:09 pm »
Hi,

I turned zentyal 6.0 firewall on, now i can not access zentyal via browser. Is there a command line based command to disable this module?

Update:
I stop Zentyal service by command : sudo service zentyal stop
‌But still can not connect with putty.
Command: nmap -Pn <server_IP> returns:
all 1000 scanned ports on are filtered.

Can anyone help?

Zentyal enables the firewall just in the moment the network interfaces are configured the first time. If you configures as external interface the same iface that you're using to connect with webadmin you'll lost the connection because the default firewall external configuration. The same is valid for SSH.

You have to use the local console in order to disable the firewall while setting a firewall external interface rule granting the webadmin and SSH traffic. Use this command:

Code: [Select]
sudo zs firewall stop
Afterwards you'll have full access throught the external interface. Configure the rules for SSH and webadmin and restart the service using the webadmin or the command:

Code: [Select]
sudo zs firewall start
Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,