๐Ÿ‘จ‍๐Ÿ’ป kimtongting

 

 

 

๋ฆฌ๋ˆ…์Šค๋ฅผ ํ™œ์šฉํ•˜๋‹ค๋ณด๋ฉด ์ง์ ‘์ ์ธ ์ ‘๊ทผ์„ ๋ง‰๊ธฐ์œ„ํ•ด ํฌํŠธํฌ์›Œ๋”ฉ์„ ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค.

ํ†ฐ์บฃ์€ 80ํฌํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋‹ค.

 

firewall ๋ฐฉํ™”๋ฒฝ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ๋Š” ๋ฐฉํ™”๋ฒฝ ์ƒ์—์„œ ์ปจํŠธ๋กค ๊ฐ€๋Šฅํ•˜๋‹ค.

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๊ฐ„๋‹จํ•˜๊ฒŒ tomcat ํฌํŠธํฌ์›Œ๋”ฉ์„ ํ•  ์ˆ˜ ์žˆ๋‹ค.

$ firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
success

$ firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo --dport 80 -j REDIRECT --to-port 8080
success

$ firewall-cmd --reload

 

 

 

 

๋ฐ˜์‘ํ˜•
profile

๐Ÿ‘จ‍๐Ÿ’ป kimtongting

@kimtongting ์ž…๋‹ˆ๋‹ค

ํฌ์ŠคํŒ…์ด ์ข‹์•˜๋‹ค๋ฉด "์ข‹์•„์š”โค๏ธ" ๋˜๋Š” "๊ตฌ๋…๐Ÿ‘๐Ÿป" ํ•ด์ฃผ์„ธ์š”!