236 ¹ø ±Û: [iptables] port forwarding |
±Û¾´ÀÌ: »êÀÌ
[ȨÆäÀÌÁö]
|
±Û¾´³¯: 2010³â 04¿ù 02ÀÏ 00:36:10 ±Ý(»õº®) |
Á¶È¸: 2266 |
[iptables] port forwarding
## ±»Áö ºÒÇÊ¿ä(Kernel 2.6.x)
echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
## port forwarding 8080 -> 80
iptables -A FORWARD -m state -p tcp -i eth0 --dport 8080 --state
NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 8080 -j DNAT --to-destination :80
|
ÀÌÀü±Û : [misc] ij³í Ä«¸Þ¶ó ±¤ÇÐ ºñ±³
´ÙÀ½±Û : [php] ´ë¿ë·® post ÆÄÀÏ Ã³¸®
|
from 114.111.62.248
JS(Redhands)Board 0.4 +@
|