[SOLVED ]Turn Firewall Off

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED ]Turn Firewall Off

Postby DaveAmour » 2020-10-01 03:05

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?

Thanks
Last edited by DaveAmour on 2020-10-01 23:46, edited 1 time in total.
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby sickpig » 2020-10-01 05:23

DaveAmour wrote:I want to turn my firewall off to confirm this

How do you know that it is turned on?
User avatar
sickpig
 
Posts: 575
Joined: 2019-01-23 10:34

Re: Turn Firewall Off

Postby DaveAmour » 2020-10-01 05:45

Good question

I am assuming it is turned on as I was able to SSH every day since I installed it and I was able to ping.

I only installed a week ago.

Then I was trying to setup VNC and my connection was being refused so I tried to open up the ports and couldn't get this to work but now I cannot ping or SSH either.

I am a very new Linux user - just a few days and have no idea what I'm doing
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby sickpig » 2020-10-01 06:14

By default firewall is off. So unless you have it turned it on it should be off.
DaveAmour wrote:so I tried to open up the ports

How?
User avatar
sickpig
 
Posts: 575
Joined: 2019-01-23 10:34

Re: Turn Firewall Off

Postby DaveAmour » 2020-10-01 06:17

I installed a couple of graphical firewall apps and tinkered with them.

I assumed they interfaced with the underlying FW but really have no idea what I am doing.

One was called Firewall Builder and one was just called Firewall
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby sickpig » 2020-10-01 06:27

DaveAmour wrote:I assumed they interfaced with the underlying FW but really have no idea what I am doing.

Why assume and take the risk?

You can consult https://manpages.debian.org/buster/iptables/iptables.8.en.html for a detailed howto.
Though iptables will soon be replaced by nftables as per https://wiki.debian.org/nftables

You can use
Code: Select all
iptables -L

To check the current policy and blockages
User avatar
sickpig
 
Posts: 575
Joined: 2019-01-23 10:34

Re: Turn Firewall Off

Postby DaveAmour » 2020-10-01 06:35

Why assume and take the risk?

Because this is on an old pc with no data on or port forwarding to it and I have to take the risk otherwise how do I learn to do things?
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby sickpig » 2020-10-01 06:46

DaveAmour wrote:how do I learn to do things?

The efficient way is to make an effort to try and understand how things work.

And one of the other ways I suppose is to blindly go ahead without any knowledge
DaveAmour wrote:I assumed they interfaced with the underlying FW but really have no idea what I am doing.
User avatar
sickpig
 
Posts: 575
Joined: 2019-01-23 10:34

Re: Turn Firewall Off

Postby DaveAmour » 2020-10-01 12:36

It feels like this could descend into an argument about my learning style and find your comments a little insulting and condescending

I don't want that

If you can help me further great, if not then thanks for your help so far
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby sunrat » 2020-10-01 12:55

Ignore the piggie, it forgets it was a beginner once.
Basically you don't need a firewall in Linux unless you're running a server open to the internet. Just purge whatever packages you installed.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3244
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Turn Firewall Off

Postby DaveAmour » 2020-10-01 13:14

Thanks sunrat

I'm only a beginner in Linux

To put this in context

Installed Debian
SSH and ping worked
Tried to install VNC, not sure if I did that right
VNC connections being refused
Tried to add a firewall rule. I assumed the connections were being blocked by a firewall and that SSH was open by default
SSH and ping stopped working
Uninstalled the 2 firewall apps I added
Rebooted
SSH and ping still not working
Also on the Debian box I was able to see my windows box but now cannot

All I am trying to do now is get SSH and eventually VNC working
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby DaveAmour » 2020-10-01 13:26

Ok SSH and ping working now!
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby DaveAmour » 2020-10-01 13:29

What is the correct protocol for closing questions?
DaveAmour
 
Posts: 12
Joined: 2020-10-01 03:00

Re: Turn Firewall Off

Postby Head_on_a_Stick » 2020-10-01 17:36

You explain how you fixed things then edit the thread title and prepend [SOLVED]. And remember to thank sickpig and sunrat for taking the time to help you.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Turn Firewall Off

Postby sickpig » 2020-10-01 20:22

DaveAmour wrote:It feels like this could descend into an argument about my learning style and find your comments a little insulting and condescending

Well if its only a little then its ok. Also check http://forums.debian.net/viewtopic.php?f=11&t=47078 I do not suppose you have done a single thing mentioned in that.

sunrat wrote:Ignore the piggie, it forgets it was a beginner once.

But I still am :) Ever the learner.
User avatar
sickpig
 
Posts: 575
Joined: 2019-01-23 10:34

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable