Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Help about MediaWiki
FUTO
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Introduction to a Self Managed Life: a 13 hour & 28 minute presentation by FUTO software
(section)
Main Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 6.1 Making iptables rules ==== Allow established connections (makes https more stable, [https://www.reddit.com/r/radiohead/comments/ovvkrg/understanding_ok_computers_fitter_happier/ fitter, happier, more productive]. Not eating too much) <pre>sudo iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT</pre> <blockquote>Allow localhost access to port 5000: </blockquote> <pre>sudo iptables -A INPUT -i lo -p tcp --dport 5000 -j ACCEPT</pre> <blockquote>Allow Home Assistant access to port 5000 </blockquote> <pre>sudo iptables -A INPUT -s 192.168.5.4 -p tcp --dport 5000 -j ACCEPT</pre> <blockquote>Block all other access to port 5000 </blockquote> <pre>sudo iptables -A INPUT -p tcp --dport 5000 -j DROP</pre> <blockquote>Make sure Docker respects these rules </blockquote> <pre>sudo iptables -I DOCKER-USER -j RETURN</pre> <blockquote>Install the <code>iptables-persistent</code> package: </blockquote> <pre>sudo apt install iptables-persistent</pre> # During installation, you’ll be asked if you want to save the current iptables rules. Choose Yes. # If you’re not prompted, you can manually save the rules by running: <code>sudo netfilter-persistent save</code> # YOU NEED TO INSTALL <code>IPTABLES-PERSISTENT</code> AND TELL IT TO SAVE YOUR RULES OR ELSE YOU HAVE TO RUN THIS EVERY TIME YOU BOOT! <span id="installing-nginx"></span>
Summary:
Please note that all contributions to FUTO may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
FUTO:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:
Cancel
Editing help
(opens in new window)