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:


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
 
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.
 

Members online


Top