Re: How to add a SNAT rule with firewalld and firewall-cmd

2025-01-07 Thread Dario Lesca
Il giorno lun, 06/01/2025 alle 21.50 -0800, Samuel Sieb ha scritto: > firewall-cmd --permanent --direct --add-rule ipv4 nat POSTROUTING 0 - > d 172.17.0.0/16 -p all -j SNAT --to 5.6.7.8 > > Where 5.6.7.8 is the interface IP address you want to use. Thanks, it work also for me. > > There's a fir

Re: How to add a SNAT rule with firewalld and firewall-cmd

2025-01-06 Thread Samuel Sieb
On 1/6/25 11:11 AM, Dario Lesca wrote: I can't use MASQUERADE because I must go out with a specific additional external IP, then I must use a SNAT rule in the place of MASQUERADE Do as indicated in the object with nft found here: https://docs.redhat.com/en/documentation/red_hat_enterprise_lin

How to add a SNAT rule with firewalld and firewall-cmd

2025-01-06 Thread Dario Lesca
I can't use MASQUERADE because I must go out with a specific additional external IP, then I must use a SNAT rule in the place of MASQUERADE Do as indicated in the object with nft found here: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/security_guide/sec-configuring_na