>> Edit article
이름
제목
패스워드
리눅스에서 ping으로 날아간 ICMP패킷(ping을 때리면 이 형식으로 넘어간다 고 하는군요)을 매스커레이딩 하려면 커널 옵션중 ICMP Masquerading인가 하 는 걸(네트워크 쪽에 있습니다) 살려 놓아야 됩니다(일반 TCP/IP패킷과 ICMP 패킷은 커널에서 따로 관리하는 듯 합니다.). ping test로 확인하시려 한다 면 커널 컴파일을 하셔야 할 것 같네요. 아니면, 클라이언트 리눅스 박스에서 넷스 띄우셔서 아무데나 들어가 보세 요. 되면 일단 Masquerading은 된겁니다. 시간 남으실때 위의 내용처럼 커 널 옵션 바꿔서 컴파일 해 보세요. : 리눅스-윈도 에서 MASQ 는 간단히 해결 되는데요.. : : 리눅스-리눅스 에서 MASQ 가 안되네염.. : : 워낙 기초지식이 없는지라.. 그냥 하는방법 외워서 하는정도입니다.. : : 지금 내부 핑은 됩니다.. 그런데 ipchains 걸어주고 외부핑이 안됩니다. : : 서버는 내부:192.168.1.1 외부:ADSL(유동ip) : : 인터페이스는 lo , eth0(ADSL 접속용) eth1(192.168.1.1) ppp0(ADSL 접 속) : : 인터넷 접속은 되구요 윈도 연결해서 ipchains 하면 잘되구요.. : : 리눅스 연결하면 안됩니다.. : : 리눅스 클라이언트는 인터페이스가 lo , eth0(192.168.1.2) 입니다. : : ipv4 forwarding 체크하구요 디폴트 게이트웨이 192.168.1.1 로 하고 : : 디폴트 디바이스 eth0 으로 하구요 : : 클라이언트 에서 이렇습니다... : : [root@linux /root]# route : Kernel IP routing table : Destination Gateway Genmask Flags Metric Ref Use Iface : linux.client * 255.255.255.255 UH 0 0 0 eth0 : 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 : 127.0.0.0 * 255.0.0.0 U 0 0 0 lo : default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 : : [root@linux /root]# ifconfig : eth0 Link encap:Ethernet HWaddr 00:01:02:5E:CE:DC : inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 : UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 : RX packets:3 errors:0 dropped:0 overruns:0 frame:0 : TX packets:3 errors:0 dropped:0 overruns:0 carrier:0 : collisions:0 txqueuelen:100 : Interrupt:9 Base address:0xec00 : : lo Link encap:Local Loopback : inet addr:127.0.0.1 Mask:255.0.0.0 : UP LOOPBACK RUNNING MTU:3924 Metric:1 : RX packets:14 errors:0 dropped:0 overruns:0 frame:0 : TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 : collisions:0 txqueuelen:0 : : [root@linux /root]# ping www.kornet.net : PING www.kornet.net (211.48.62.77) from 192.168.1.2 : 56(84) bytes of data. : : : --- www.kornet.net ping statistics --- : 51 packets transmitted, 0 packets received, 100% packet loss : : 응답없습니다.. : : [root@linux /root]# ping -c 4 192.168.1.1 : PING 192.168.1.1 (192.168.1.1) from 192.168.1.2 : 56(84) bytes of data. : 64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=0.7 ms : 64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.6 ms : 64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.6 ms : 64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=0.6 ms : : --- 192.168.1.1 ping statistics --- : 4 packets transmitted, 4 packets received, 0% packet loss : round-trip min/avg/max = 0.6/0.6/0.7 ms : : 내부핑은 잘됩니다.. : : [root@linux /root]# telnet chollian.net : Trying 210.120.251.50... : [root@linux /root]# route : Kernel IP routing table : Destination Gateway Genmask Flags Metric Ref Use Iface : 192.168.1.2 * 255.255.255.255 UH 0 0 0 eth0 : 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 : 127.0.0.0 * 255.0.0.0 U 0 0 0 lo : default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 : [root@linux /root]# : : 이정도구요.. : : 왜 안되는지 모르겠습니다... : : 제발좀 도와주세요!!--저는 아내 태희와 아들 경찬이, 경현이를 너무너무 사랑합니다! 염장만세!
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved