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

   Á¶È¸ 614   Ãßõ 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 2/144
06-30   396   stone92±è°æ¹Î
06-27   695   makeyz
06-26   617   ¹Ì´ã
06-26   502   ´Ï¾Ó¸¶
06-26   694   ½ÅÀº¿Ö
06-25   540   ±è´ÞÈ£
06-24   1037   ½ÅÀº¿Ö
06-24   427   ´ºÁø½º
06-22   747   ¾Ç¸¶¶ó³×
06-21   777   Á¦¿ÂÇÁ·Î
06-20   481   GoverZG
06-20   610   Sakura24
06-19   570   SugarCube
06-18   668   Sakura24
06-17   490   Sakura24
06-16   656   ÃѾËź»ç³ªÀÌ
06-16   660   Sakura24
06-16   654   Setila
06-16   568   GoverZG
06-15   738   ±èÀ¯°â