I need a firewall rules set for my pc (iptable)

Kernels & Hardware, configuring network, installing services

I need a firewall rules set for my pc (iptable)

Postby cooleo » 2020-04-07 13:08

I use this pc for web surfing, so I want to restict the internet communication tightly.

Only allow http / https / ssh / ftp / vpn ...
(maybe something more, please remaind me)

Can someone help me to a firewall rules set? with iptable or ferm.
cooleo
 
Posts: 28
Joined: 2020-04-07 05:28

Re: I need a firewall rules set for my pc (iptable)

Postby cuckooflew » 2020-04-07 14:22

iptable rules on Debian
==========================
https://wiki.debian.org/iptables
=======================
https://wiki.debian.org/DebianFirewall
===========================
https://wiki.debian.org/FirewallRules
=======================
When you did your searches, (note;* Please Read.. What we expect you have already Done.
Did you not find any of these usefull ?
Or do you think someone will just writing them for you ?
You need to at least make some effort , and do your part, you do not even tell us what version of Debian you are using, and are you sure you want to use iptables ?
https://wiki.debian.org/DebianFirewall
Introduction

WARNING: iptables is being replaced by nftables

A network firewall is a set of rules to allow or deny passage of network traffic, through one or more network devices. A network firewall may also perform more complex tasks, such as network address translation, bandwidth adjustment, provide encrypted tunnels and much more related to network traffic.

==================
https://wiki.debian.org/nftables
Current status

NOTE: Debian Buster uses the nftables framework by default.

Starting with Debian Buster, nf_tables is the default backend when using iptables, by means of the iptables-nft layer (i.e, using iptables syntax with the nf_tables kernel subsystem). This also affects ip6tables, arptables and ebtables.

You can switch back and forth between iptables-nft and iptables-legacy by means of update-alternatives (same applies to arptables and ebtables).

The default starting with Debian Buster:

I know, you must be a very important person,and much to busy to waste your precious time performing mundane tasks such as doing a search and reading some of the documentation, so you want one of us to write the rules for you, at no cost, and that is ok, but at least take the time to tell use what version of Debian it is, etc,... then maybe someone can hold your hand and help you.
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west

Re: I need a firewall rules set for my pc (iptable)

Postby Head_on_a_Stick » 2020-04-07 16:12

cooleo wrote:Can someone help me to a firewall rules set?

Why do you think that you need a firewall?

Which services do you have running that are listening to open ports?
Black Lives Matter

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

Re: I need a firewall rules set for my pc (iptable)

Postby cooleo » 2020-04-08 01:34

cuckooflew
"I know, you must be a very important person,and much to busy to waste your precious time performing mundane tasks such as doing a search and reading some of the documentation, so you want one of us to write the rules for you, at no cost, and that is ok, but at least take the time to tell use what version of Debian it is, etc,... then maybe someone can hold your hand and help you."

----Ah... Someone sounds bitter here.

I know I asked a few questions at the same time, but you know, thats what a newbie always do, we have a few questions without answer, so we sign-up to the forum to ask.
cooleo
 
Posts: 28
Joined: 2020-04-07 05:28

Re: I need a firewall rules set for my pc (iptable)

Postby cuckooflew » 2020-04-08 01:55

Actually, only a few "newbies" post questions like these, because most read the "beginners questions" section, before posting / asking, and they see the second item, and read it.
Please Read.. What we expect you have already Done.
How ever, since you are such a busy important person, you obviously did not have time to do that. But that is ok,we forgive you, since you are a newbie.
RE:
by coolo :mrgreen: ----Ah... Someone sounds bitter here.

No, not at all bitter, maybe there is something wrong with your "text to voice/sound" software ? Eg, just reading the text has no sound on my end, besides that I can not hear any way, so nobody sounds bitter to me anyway.
Cooloe> :mrgreen: we have a few questions without answer,

Exactly, and that is why we have the "beginners questions" section, quite often beginners have many questions, and quite often even though they have no answers, they do find the answers since the same questions get asked over and over.
Maybe it would be more productive if you just answered the questions that HOAS asked,
Why do you think that you need a firewall?

Which services do you have running that are listening to open ports?

It should be pretty obvious by my use name, some of my marbles got lost some where, when I was flying around, but any way, I enjoy this, and in no way am bitter,..have a nice day, and welcome to the forum.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
cuckooflew
 
Posts: 683
Joined: 2018-05-10 19:34
Location: Some where out west


Return to System configuration

Who is online

Users browsing this forum: No registered users and 17 guests

fashionable