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!
=== Step 6: Add iptables rules for bridging === For the bridge to work correctly, you need to allow traffic forwarding on the <code>br0</code> bridge interface. This requires creating iptables rules & making them persistent across reboots. This is a very important detail, often [https://www.tecmint.com/create-network-bridge-in-ubuntu/ left out of guides on setting up bridge interfaces]. Skipping this part will result in a setup that doesn’t work; you will be stuck in the hell of posting on GNU/Linux forums where people with IQs of 180+ will tell you to ''“RTFM”'', a man page, that is 2000000+ pages long. This is analogous to Derek Jeter telling you to ''“just keep your eye on the ball.”'' right. You may wonder why that is the case. Setting up things with open source software is like MacBook board repair 12 years ago: it’s a club & you’re not in it. Most teachers know their subject matter. As a result, they forget what it was like to try something for the first time. This is why I am building a machine from scratch as I do this. Telling you how I did it on my machine will never work. There will always be some small detail I subconsciously assume you will know; or perhaps a detail I forgot myself since some of these services I’m showing you were set up in my closet ten years ago! By performing the tasks from what I have written, I am forced to provide you with instructions that '''''actually work!''''' # Run the following commands to add the iptables rules: <pre> sudo iptables -I FORWARD 1 -i br0 -j ACCEPT sudo iptables -I FORWARD 1 -o br0 -j ACCEPT</pre> '''NOTE:''' These iptables rules let traffic go through the bridge interface so your virtual machines can work on your network. Without them, your virtual machines will not be able to connect to anything, and you won’t be able to connect to them. If you see that your virtual machine received an IP address in virtual machine manager, but it can’t connect to anything, you likely skipped this step. > >The order of rules in iptables matters. Inserting rules at the top (using the ‘-I’) puts them at the top. If traffic forwarding does not work as expected, check rules & the order which you can do by running ‘sudo iptables -L -v -n’. <ol start="2" style="list-style-type: decimal;"> <li><p>Verify the iptables rules by running:</p> <pre>sudo iptables -L</pre> <p>You should see the rules for accepting traffic on <code>br0</code>.</p></li></ol> <span id="step-7-make-iptables-rules-persistent"></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)