I need to migrate this iptables rules to firewalld but I don't know how to do it. The rules to migrate are:

:PREROUTING ACCEPT [5322227:529801781]                  
:POSTROUTING ACCEPT [848032:52828640]                       
:OUTPUT ACCEPT [848032:52828640]    
-A PREROUTING -i eth3 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080                  
:INPUT ACCEPT [5630415:571496875]                       
:FORWARD ACCEPT [0:0]                               
:OUTPUT ACCEPT [137504827:75990945248]                      
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT             
-A INPUT -p icmp -j ACCEPT                          
*Allow all traffic on the loopback interface

-A INPUT -i lo -j ACCEPT                            
-A FORWARD -j REJECT --reject-with icmp-host-prohibited 
  • Be sure that firewalld can do what you want it to... – stolenmoment Feb 26 at 1:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.