stephendarcy123
New Member
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:
/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:
99_config.yaml -
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.
What I've done so far:
Server:
/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:
99_config.yaml -
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.