Hi Team,
till last month we were using IPtables in our centos7 VM to do port forwarding from 53 to 8600 ,we observed in some VM's iptables rules were just vanishing not sure about exact reason behind , and were ended updating iptable rules again , we suspected firewalld might be erasing the rules provided in iptables , so we added port forwarding rules in firewalld like below. after adding firewall rules we were not able to access google cloud apis , like GCS Storage to store snapshots. when we disable the firewalld service we are able to access the same.
can you please help us in below questions we have :
a. can we disable firewalld and use only iptables to do port forwarding , would there be any issues
b. if we use firewalld instead of iptables , any rule to be applied to access GCS bucket or google cloud api's.
Firewalld rules :
firewall-cmd --permanent --direct --add-rule ipv4 nat PREROUTING 0 -p tcp --dport 53 -j REDIRECT --to-ports 8600
firewall-cmd --permanent --direct --add-rule ipv4 nat PREROUTING 0 -p udp --dport 53 -j REDIRECT --to-ports 8600
firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp --dport 53 -j REDIRECT --to-ports 8600
firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p udp --dport 53 -j REDIRECT --to-ports 8600
Thanks,
Srinidhi