LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-30-2020, 11:41 PM   #1
DaveAmour
LQ Newbie
 
Registered: Sep 2020
Posts: 12

Rep: Reputation: Disabled
Turn Firewall off


I was able to SSH to my system and after tinkering with the firewall I can no longer do so

I want to turn my firewall off to confirm this

How do I do that?
 
Old 10-01-2020, 01:40 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
That depends on the firewall your system is using. In case it's ufw, I believe the answer is ufw disable. There is a nice page on ufw on the Ubuntu help site.

The Debian wiki contains a (complete? Probably not) list of firewalls. You could also tell us roughly what tinkering you did.

Last edited by berndbausch; 10-01-2020 at 01:42 AM.
 
Old 10-01-2020, 02:02 AM   #3
DaveAmour
LQ Newbie
 
Registered: Sep 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok thanks

Apologies in advance as I have only been using Linux a few days.

So the next question is how do I know which firewall I am using?
 
Old 10-01-2020, 02:15 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by DaveAmour View Post
how do I know which firewall I am using?
What were you "tinkering with"?
 
Old 10-01-2020, 02:21 AM   #5
DaveAmour
LQ Newbie
 
Registered: Sep 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
I tried 2 Apps. One just called Firewall and one called Firewall Builder. I guessed that these were just user interfaces to the same default firewall but I really don't know. Are these separate firewalls? Do I know have multiple firewalls running? I'll see if I can uninstall them.
 
Old 10-01-2020, 02:41 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
OK, post the output of 'iptables-save'.
 
Old 10-01-2020, 08:31 AM   #7
DaveAmour
LQ Newbie
 
Registered: Sep 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Sorry not sure what iptables-save means?

I tried entering that in a terminal but it said command not found

I tried iptables-save and iptables on its own

I also tried after entering su and my root password
 
Old 10-01-2020, 08:39 AM   #8
andre@home
Member
 
Registered: Oct 2003
Distribution: 2x Debian 8.1 webdav servers
Posts: 93

Rep: Reputation: 44
http://forums.debian.net/viewtopic.php?f=30&t=147514
Easier to compare the answers...
 
Old 10-01-2020, 08:40 AM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by DaveAmour View Post
I also tried after entering su and my root password
The su command alone doesn't give you the full root environment. Use su - (with a dash) instead.
 
1 members found this post helpful.
Old 10-01-2020, 08:41 AM   #10
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by andre@home View Post
To ask the same question in different forums risks people wasting their time providing an answer that was already given.

I am guilty of doing that as well, but it should be avoided.
 
Old 10-01-2020, 08:42 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,827

Rep: Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964Reputation: 5964
Try the command as root

iptables -F
 
Old 10-01-2020, 09:10 AM   #12
DaveAmour
LQ Newbie
 
Registered: Sep 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok thanks Thanks berndbausch I shall refrain from doing so but will see these through and use them to decide which is the better forum.

michaelk - still command not found
 
Old 10-01-2020, 09:16 AM   #13
DaveAmour
LQ Newbie
 
Registered: Sep 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok SSH and ping working now!

What is the protocol for closing questions here?
 
Old 10-01-2020, 09:16 AM   #14
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,648

Rep: Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564Reputation: 2564
Quote:
Originally Posted by berndbausch View Post
To ask the same question in different forums risks people wasting their time providing an answer that was already given.

I am guilty of doing that as well, but it should be avoided.
It's best to ask in the place most likely to get an answer, but the important thing is to provide a link - on both ends - so that people can check existing responses before answering.

It's not just a waste of time for responders, but it means the OP is less likely to get the same advice/questions twice.

 
Old 10-01-2020, 09:16 AM   #15
DaveAmour
LQ Newbie
 
Registered: Sep 2020
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok thanks boughtonp
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My CnMBook Manual page 5 shows how to turn off on desk top, but how do I turn on? salmagundi Linux - Newbie 2 04-04-2009 02:46 PM
xset dpms force off does'nt turn off screen anirudh.iitm Linux - General 3 02-24-2007 01:54 PM
How to start, stop, turn on, and turn off deamons BuckRogers01 Debian 3 08-16-2005 09:39 AM
turn off doesn't really turn and power off pcandpc Mandriva 11 05-30-2005 03:22 PM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration