Hi all! My ISP provides me with internet with PPPoE through VLAN. As my (old) computer is already always-on and acting as a server, and for fun purposes, I decided to make my computer a router.
The excellent @vgaetera helped me with this, suggesting me a few commands to go through, but it doesn’t seem to work (see the thread here).
So far, his suggestion is:
# WAN
VLAN_DEV="eth0"
VLAN_VID="1234"
PPPOE_USER="test"
PPPOE_PASS="12345678"
sudo dnf install NetworkManager-ppp NetworkManager-adsl
sudo nmcli connection delete wan-vlan
sudo nmcli connection add \
type vlan \
con-name wan-vlan \
dev "${VLAN_DEV}" \
id "${VLAN_VID}" \
ipv4.method disabled \
ipv6.method disabled
sudo nmcli connection delete wan
sudo nmcli connection add \
type pppoe \
con-name wan \
ifname ppp0 \
parent "${VLAN_DEV}.${VLAN_VID}" \
username "${PPPOE_USER}" \
password "${PPPOE_PASS}" \
connection.zone external
sudo nmcli connection up wan-vlan
sudo nmcli connection up wan
# WLAN
WIFI_SSID="test"
WIFI_PSK="12345678"
sudo nmcli connection delete wlan
sudo nmcli connection add \
type wifi \
con-name wlan \
wifi.mode ap \
wifi.ssid "${WIFI_SSID}" \
wifi-sec.group ccmp \
wifi-sec.pairwise ccmp \
wifi-sec.proto rsn \
wifi-sec.key-mgmt wpa-psk \
wifi-sec.psk "${WIFI_PSK}" \
ipv4.method shared \
ipv4.addresses 192.168.1.1/24 \
ipv6.method shared \
ipv6.addresses 2001:db8:1::1/64 \
connection.zone internal
sudo nmcli connection up wlan
# Firewall
sudo tee /etc/NetworkManager/conf.d/99-local.conf << EOF > /dev/null
[main]
firewall-backend=none
EOF
sudo systemctl restart NetworkManager.service
sudo firewall-cmd --permanent --zone=internal --add-service=dhcp
sudo firewall-cmd --permanent --zone=internal --add-service=dns
sudo firewall-cmd --permanent --new-policy=internal-external
sudo firewall-cmd --permanent --policy=internal-external --set-target=ACCEPT
sudo firewall-cmd --permanent --policy=internal-external --add-ingress-zone=internal
sudo firewall-cmd --permanent --policy=internal-external --add-egress-zone=external
sudo firewall-cmd --permanent --policy=internal-external --add-rich-rule="rule tcp-mss-clamp value=pmtu"
sudo firewall-cmd --permanent --policy=internal-external --add-rich-rule="rule family=ipv4 masquerade"
sudo firewall-cmd --permanent --policy=internal-external --add-rich-rule="rule family=ipv6 masquerade"
sudo firewall-cmd --reload
You can check the previous thread for a bit more background over here.
I would appreciate if any of you would help me here. What am I doing wrong?
Edit: Let me share with you a poor picture of what’s being displayed on my server when I check the journalctl logs: