CollabNet Guide: Difference between revisions

fix formatting
No edit summary
(fix formatting)
We'll then disable systemd-resolved and set up a static DNS config
 
{{code|<nowiki>
sudo systemctl disable --now systemd-resolved
sudo systemctl mask systemd-resolved
nameserver 1.0.0.1
EOF
}}
</nowiki>}}
 
Note that the internet will die on the router. This is because systemd-networkd is not configured by default. First, let's figure out our interface names using the command <code>ip a</code>. For me, the WAN interface was <code>ens3</code> and the LAN was <code>ens4</code>. This may vary however if you're using the QEMU command above the WAN interface will appear first in the list. For the rest of the guide I will be assuming the above interface names. Make sure to change them if yours are different.
Lastly, set some sysctl values:
 
{{code|<nowiki>
<nowiki>sudo tee /etc/sysctl.d/router.conf </nowiki><<<nowiki>EOF
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.all.rp_filter = 2
net.ipv4.ip_forward = 1
EOF</nowiki>
}}
</nowiki>}}
 
=== nftables ===