On 6/6/25 3:45 AM, fedora@xxxxxxxxxxxxxx wrote:
I recently upgraded f40->f42. Had issues (see my earlier thread) which I
"fixed"...
While dealing with that other issue I found that while the server was
working just fine,
other machines (on a wired connection) still cannot access the internet.
After looking everywhere, and digging into my iptables rules and such, I
discovered that NAT is not being set up.
I added a rule to my firewall script
iptables-legacy -t nat -A POSTROUTING -o eth1 -j MASQUERADE
eth0 is the local network, eth1 sees the internet.
Things work now.
In f40 NAT was always being set up automatically. Is it a network
manager issue?
One day I will learn how to set up firewall rules in the "new way".
I use a Fedora system as server/router/gateway/etc. I recently switched
to using firewalld. It was a bit complicated but that's only because
the network setup is complicated. For a simple gateway with two
interfaces, use "firewall-config" to enable masquerading on the zone
that's on the outgoing interface (probably should be the "public" zone)
and in network manager, set the internal network interface to be "shared
to other computers" as the IPv4 config.
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue