• We did not send an email asking for donations - please read this post.

Firewalling with iptables

aleff

New Member
Joined
Sep 13, 2022
Messages
12
Reaction score
0
Credits
120
Hello everybody I'm new here and i come because i need an help because I'm not sure that i have firewalled correctly my computer.
I used this instruction
Code:
-P INPUT DROP
-P FORWARD ACCEPT
-P OUTPUT DROP
-A INPUT -i wlp59s0 -m state --state ESTABLISHED -j ACCEPT
-A OUTPUT -o wlp59s0 -m state --state NEW,ESTABLISHED -j ACCEPT

I want to drop all request that is not a response from a mine request, so i don't want that my computer is reachable from other devices.
 
Last edited:


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,835
Reaction score
6,660
Credits
29,046
G'day @aleff and welcome to linux.org :)

I know a young Sorceror, name of @Peer who used to be handy with IPtables, he may drop by - by my mentioning him, he will be alerted.

There are others who may read this and assist.

Good luck.

Chris Turner
wizardfromoz
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,572
Reaction score
1,191
Credits
10,050
I want to drop all request that is not a response from a mine request, so i don't want that my computer is reachable from other devices.

Almost all modern distro's do this by default.
wlp59s0 looks like a wireless interface to me. Wifi is a little more challenging.
Typically your firewall will disable everything except ping replies.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Latest posts

Top