Re: After f40->f42 upgrade, NAT is not set up.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux