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
Last revision Both sides next revision
firewalld [2018/09/28 12:52]
k2patel [Replace firewalld with iptables]
firewalld [2019/05/01 09:31]
k2patel [Adding rich rule]
Line 25: Line 25:
   source address="​192.168.12.0/​25"​   source address="​192.168.12.0/​25"​
   port protocol="​tcp"​ port="​9200"​ accept'​   port protocol="​tcp"​ port="​9200"​ accept'​
 +</​code>​
 +
 +==== Port redirection ====
 +Using following command one can redirect port traffic to another.
 +<code bash>
 +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