iptables rule À» firewalld rule ·Î º¯È¯ÇÏ·Á°í ÇÕ´Ï´Ù.

   Á¶È¸ 312   Ãßõ 0    

안녕하세요?

centos 7.9를 Rocky 9.5로 마이그레이션하였는데 cent에서 사용하던 iptables를

firewalld로 바꾸려고 합니다.

일반적인 IP 및 포트 등의 제어는 문제가 없는데 KVM guest로 포트포워딩이 문제입니다.

iptables -I FORWARD -m tcp -p tcp --dport 59006 -j ACCEPT
iptables -t nat -A PREROUTING -p TCP --dport 59006 -j DNAT --to 192.168.122.106:59006

위와 같은 rule을 firewall-cmd로

firewall-cmd --permanent --add-forward-port=port=59006:proto=tcp:toaddr=192.168.122.106:toport=59006

로 했는데 안되고 centos 에서 사용하던 iptables로 하면 당연히 잘 되지만 iptables를 안쓰려고 합니다.

방법이 없을까요?

ªÀº±Û Àϼö·Ï ½ÅÁßÇϰÔ.
tcp dport 59006¿¡ ´ëÇÑ 192.168.122.106:59006 À¸·Î Æ÷Æ®Æ÷¿öµùÀ̸é
firewall-cmd --permanent --add-forward-port=port=59006:proto=tcp:toaddr=192.168.122.106:toport=59006
firewall-cmd --permanent --add-port=59006/tcp
firewall-cmd --reload


QnA
Á¦¸ñPage 1509/5742
2014-05   5317660   Á¤ÀºÁØ1
2015-12   1833362   ¹é¸Þ°¡
2023-04   6224   akfalles
2015-12   5926   ¹«¾Æ
03-28   952   ³ª·Î¿Í
2014-08   3459   sprirea
2021-10   3302   °Ü¿ï³ª¹«
2014-08   4220   klein
2016-11   5436   ³ª¹«½£
2013-01   12579   ¹³¹ÙÀÌ
2018-01   8522   ´«ÆÃµ¹ÀÌ
2023-05   2577   tantan11
2013-01   13189   ¼ºÅõºÒÆÐ
2015-12   4052   ´ÏÆ÷
2018-01   4018   ¼¼¹ú½­
05-01   313   µµÄ«ºñ
2009-12   6596   ¹Î±Ô
2019-03   4039   ÀϷиӽºÅ©
2013-01   6327   µþ±â´ëÀå
05-18   496   inquisitive
2013-01   6824   ¼ºÅõºÒÆÐ
2018-01   3858   ¸Ó¶óÄ«´Âµ¥