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

   Á¶È¸ 187   Ãßõ 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 1/33
05-06   218   galaxyfamily
05-01   188   µµÄ«ºñ
04-30   326   Sakura24
04-29   478   Sakura24
04-28   436   ¹«Áö°³reinb¡¦
04-26   603   Sakura24
04-25   389   ö
04-15   668   ´ÙÃʸ°
04-13   681   µà¾ócpu
04-11   504   grzlr
04-10   812   ÇöÁØÀÌ
04-09   355   °ËÀº½Å¹ß
04-03   672   ¿Ã´Ð½º
04-03   643   ºñ¿À´Â³¯¿ì»ê
04-03   522   ¹Ú
03-31   634   Sakura24
03-27   895   Pathway
03-26   610   ½ÅÀμ¼·Â
03-25   1050   Pathway
03-25   625   Software1995