User Tools

Site Tools


firewalld

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
firewalld [2019/05/01 09:31]
k2patel [Adding rich rule]
firewalld [2019/05/01 11:12] (current)
k2patel [Port redirection]
Line 30: Line 30:
 Using following command one can redirect port traffic to another. Using following command one can redirect port traffic to another.
 <code bash> <code bash>
 +# iptables -t nat -A PREROUTING -i eth2 -p tcp --dport 8080 -j REDIRECT --to-port 8443
 firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo --dport 8080 -j REDIRECT --to-ports 8443 firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo --dport 8080 -j REDIRECT --to-ports 8443
 </​code>​ </​code>​
firewalld.txt ยท Last modified: 2019/05/01 11:12 by k2patel