Skip to content

u/LuaMilkshake

In this archive from Mar 2012 to Oct 2017

0
posts
16
comments
0
media
143
score

Top comments

Do you have IPTables configured on your systems? You should at least have something to the tune of this in /etc/iptables/iptables.rules (as well as ip6tables.rules, with address changes if relevant):

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT

If you're running a web server as well, you'll want something like (before the COMMIT line):

-A INPUT -p tcp --dport 80 -j ACCEPT
# (if you use HTTPS)
-A INPUT -p tcp --dport 443 -j ACCEPT

and you mentioned ssh, which I assume only comes from your laptop:

# (replace 192.0.2.10 with your laptop's IP)
-A INPUT -p tcp --dport 22 -s 192.0.2.10 -j ACCEPT

Enable/apply all of this with systemctl:

systemctl enable iptables
systemctl start iptables
systemctl enable ip6tables
systemctl start ip6tables

EDIT: Added the table name and COMMIT lines to the file, other than that the original post was still correct. Amazing what you memorize when you've written it hundreds of times.

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.