Korea FreeBSD Users Group News, Internal, Projects, Home
Software, Support, Documentation

Re: [Áú¹®]natd·Î ºñ°øÀÎ À¥¼­¹ö µ¹¸®±â. .¸¶Áö¸· Áú¹®..



[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ]

[ÀÌÀü ±Û] [´ÙÀ½ ±Û] [ÀÌÀü ´ñ±Û] [´ÙÀ½ ´ñ±Û]


 #> natd -redirect_port tcp 80 192.168.0.2:80
ÀÌ ¾Æ´Ï¶ó
 #> natd -redirect_port tcp 192.168.0.2:80 80
ÀÌ µÇ¾ßÇÒ °Í °°Àºµ¥¿ä.
targetIP(³»ºÎip)°¡ ¸ÕÀú¿Í¾ß ÇÕ´Ï´Ù.

/etc/natd.conf¿¡
redirect_port tcp 192.168.0.2:80 80

¿Í °°ÀÌ Àû¾îÁÖ¸é ÆíÇϰÚÁÒ
¹°·Ð natd´Â ´Ù½Ã ½ÃÀÛÇØ¾ßÇÕ´Ï´Ù.

man natd
ÇÏ¸é ½ÇÁ¦ ¿¹±îÁö ÀÚ¼¼È÷ ³ª¿ÍÀÖ½À´Ï´Ù.


----- Original Message ----- 
From: "BaikKH" <nt_admin@shinbiro.com>
To: <questions@kr.FreeBSD.org>
Sent: Tuesday, December 11, 2001 7:15 PM
Subject: [Áú¹®]natd·Î ºñ°øÀÎ À¥¼­¹ö µ¹¸®±â..¸¶Áö¸· Áú¹®..


> natd·Î ºñ°øÀÎ IP·Î À¥¼­¹ö¸¦ µ¹¸®·Á°í Çϴµ¥ Á׾ ¾ÈµË´Ï´Ù.
> ¾îÂîµÈ ¿µ¹®ÀÎÁö ¾Ë¼ö°¡ ¾ø³×¿ä
> ±âº»³»¿ë¹°
> ÀÎÅͳݰøÀÎ IP´Â fxp0(·£Ä«µå)
> ºñ°øÀÎ IP´Â xl0 (192.168.0.1)·Î ¼ÂÆÃµÊ
> ºñ°øÀΠȣ½ºÆ® 192.168.0.2 (À¥¼­¹ö±¸µ¿)
> 
> 1.Ä¿³Î ¼Ò½º ÄÄÆÄÀÏ ¾Æ·¡ ¿É¼ÇÀ»ÁÖ°í ÇÔ
> options IPFIREWALL
> options IPFIREWALL_DEFAULT_TO_ACCEPT
> options IPDIVERT
> options IPFIREWALL_VERBOSE
> options IPFIREWALL_FORWARD
> options IPFIREWALL_VERBOSE_LIMIT=100
> 
> 2. /etc/rc.conf ÆíÁý ¾Æ·¡¸¦ Ãß°¡ÇÔ
> 
> gateway_enable="YES"
> firewall_enable="YES"
> firewall_type="OPEN"
> natd_enable="YES"
> natd_interface="fxp0"
> natd_flags="-f /etc/natd.conf"
> natd_flags=""
> 
> # -- sysinstall generated deltas -- # Thu Nov  1 18:18:49 2001
> ifconfig_xl0="inet 192.168.0.1  netmask 255.255.255.0"
> 
> 3. natd.conf ³»¿ë
> use_sockets
> same_ports
> unresistered_only
> log_denied
> 
> 4. Å×½ºÆ®
> 192.168.0.2 ºñ°øÀÎ ¼­¹ö¿¡¼­ ¿ÜºÎ·Î ÅÚ³Ý,pingÀßµÊ
> 
> 5. ºñ°øÀÎ IP·Î À¥Àüȯ ½Ãµµ (¿©±â¼­ ºÎÅÍ ¾ÈµÊ)
> #> natd -redirect_port 80 192.168.0.2:80
> °á°ú : natd: unknown protocol 80. Expected tcp or udp
> 
> #> natd -redirect_port tcp 80 192.168.0.2:80
> °á°ú : natd: 80 is missing port number
> 
> #> natd -redirect_port tcp xxx.xxx.xxx.xxx:80 192.168.0.2:80
> xxx.xxx.xxx.xxx´Â fxp0ÀÇ ÀÎÅͳݰøÀÎ IP
> °á°ú: natd: aliasing address not given
> 
> #> natd -n fxp0 -redirect_port tcp 80 192.168.0.2:80
> °á°ú natd: 80 is missing port number
> 
> 
> #>natd -n fxp0 -redirect_port tcp xxx.xxx.xxx.xxx:80 192.168.0.2:80
> °á°ú natd: Unable to bind divert socket.: Address already in use
> 
> #>natd -n fxp0 -redirect_port tcp 192.168.0.2:80 80
> °á°ú natd: Unable to bind divert socket.: Address already in use
> 
> ´ëü ¹«¾ùÀÌ À߸øµÈ°ÍÀÎÁö ¾Ë¼ö°¡ ¾ø³×¿ä..
> 

¡Š.a¨h g­Ê‹«~·žÉ¨h¡Ê&i×kz˶m§ÿæj)rj(r‰“¡Iì¹»®&Þ±éÝ™¨¥¶‰šŽŠÝ¢j$¬ZÞxƒ¢¸0ŠØnžË›±Êâmê®zËb¢{"žØ^àØ¡ûazg¬±¨

[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ]

Copyright © 1998-2005 Korea FreeBSD Users Group.
All rights reserved. webmaster at kr.FreeBSD.org
$Date: 2002/03/26 13:37:35 $
Powered by FreeBSD