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

   Á¶È¸ 526   Ãßõ 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 8/5749
2015-12   1882482   ¹é¸Þ°¡
2014-05   5368715   Á¤ÀºÁØ1
05-30   506   ¹Ì´ã
06-04   506   Sakura24
06-09   511   ¼­»õº½¹«À塦
06-05   511   MyApple
06-02   511   ¹Ú¹®Çü
05-26   515   ¹æÈ­µ¿ÀûÅ䡦
05-31   516   Sakura24
05-19   516   ¹Ú¹®Çü
06-05   518   ¹Ì´ã
06-16   519   Setila
04-23   522   ¾Ö´Ï¾Ç
06-18   522   ¿µ»êȸ»ó
06-17   523   alpha099
05-28   524   À嵿°Ç2014
06-16   526   ÃѾËź»ç³ªÀÌ
05-01   527   µµÄ«ºñ
05-18   528   Mentis
04-26   531   ocarina
06-19   531   ¶Ñ¶Ñ±è´ë¿ø
01-29   531   isilentwind