Help with using networkd on ubuntu desktop rather than network manager

stephendarcy123

New Member
Joined
Dec 3, 2021
Messages
1
Reaction score
0
Credits
18
Hi I've two ubuntu desktop machines running and I am trying to set up one to operate as a router. I've set both to use networkd using this tutorial here
What I've done so far:
Server:
1638499655427.png

/etc/sysctl.conf - net.ipv4.ip_forward=1
sudo iptables -A FORWARD -i enp0s8 -o enp0s3 -j ACCEPT
sudo iptables -A FORWARD -i enp0s3 -o enp0s8 -m state --state RELATED,ESTABLISHED -j ACCEPT F
sudo iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE
sudo bash -c "iptables-save > /etc/iptables/rules.v4"
/etc/default/ufw - DEFAULT_FORWARD_POLICY="ACCEPT"
/etc/ufw/sysctl.conf - net/ipv4/ip_forward=1
sudo ufw disable
sudo ufw enable
sudo netfilter-persistent save
Client:
1638499684976.png

99_config.yaml -
1638499498697.png

sudo netplan apply.

My 01-Network-manager-all.yaml is empty
The server connects to the internet fine with networkd but the client will not connect to the router.

Apologies if I haven't posted in the right place or format this is my first post.
 

Members online


Top