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

   Á¶È¸ 379   Ãßõ 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 5/5745
2014-05   5336121   Á¤ÀºÁØ1
2015-12   1851118   ¹é¸Þ°¡
05-28   317   À嵿°Ç2014
05-30   318   ¹Ì´ã
06-07   319   Sakura24
05-13   319   ¹Ì¼ö¸Ç
06-06   319   Sakura24
05-02   323   ±è·ç³ë
05-21   325   ¹«½î»Ôó·³
05-28   326   ¹«¾Æ
06-05   331   ¶óÆ®¶óÆÎÅ×
05-19   331   ¹Ú¹®Çü
05-23   332   ¹Ì¼ö¸Ç
2020-05   333   ±×¸ðµµ
04-30   334   ´ÙÀâ¾Æ
04-29   337   lovemiai
2017-02   339   TRUE
06-05   339   ¼­¿ïI±èµ¿¼ö
06-05   340   epowergate
05-21   341   À嵿°Ç2014
05-20   341   ±¸ÇüȰ¿ë°¡
05-31   342   Sakura24