>> Read Reply from No. 0 article  
RE: 마스커레이딩 ... 도와주세요...방법이 없습니다.
..

등록 2000-07-31 22:12:00     조회 1
이름 mu    

		: 윈 98 과 리눅스를 연결 하려고 합니다.
:
: 클라이언트에서  ping 192.168.0.1 은 잘 되고요
:
: 서버에서도 잘 됩니다.
:
: 클라이언트 설정은 ip 192.168.0.2이고요
: gateway 192.168.0.1 입니다
:
: 그리고 dns host : hun.kangdong.thrunet.com
: domain : kangdong.thrunet.com
:
: 입니다 서버 설정은 아래 대로 입니다.
:
: [root@hun /root]# ifconfig
: eth0      Link encap:Ethernet  HWaddr 00:00:21:F9:87:7E 
:           inet addr:210.181.112.120  Bcast:210.181.112.255  Mask:255.255.255.0
:           UP BROADCAST RUNNING  MTU:1500  Metric:1
:           RX packets:3842 errors:0 dropped:0 overruns:0 frame:0
:           TX packets:662 errors:0 dropped:0 overruns:0 carrier:0
:           collisions:26 txqueuelen:100
:           Interrupt:9 Base address:0x7000
:
: eth1      Link encap:Ethernet  HWaddr 00:50:BF:23:4C:DB 
:           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
:           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
:           RX packets:333 errors:0 dropped:0 overruns:0 frame:0
:           TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
:           collisions:0 txqueuelen:100
:           Interrupt:11 Base address:0x7800
:
: 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:0 errors:0 dropped:0 overruns:0 frame:0
:           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
:           collisions:0 txqueuelen:0
:
: [root@hun /root]# route
: Kernel IP routing table
: Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
: hun.mynet.org   *               255.255.255.255 UH    0      0        0 eth1
: 192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
: 210.181.112.0   *               255.255.255.0   U     0      0        0 eth0
: 127.0.0.0       *               255.0.0.0       U     0      0        0 lo
: default         210.181.112.1   0.0.0.0         UG    0      0        0 eth0
: [root@hun /root]# ipchains -L
: Chain input (policy ACCEPT):
: Chain forward (policy DENY):
: target     prot opt     source                destination           ports
: ACCEPT     all  ------  192.168.0.0/24       anywhere              n/a
: ACCEPT     all  ------  anywhere             192.168.0.0/24        n/a
: MASQ       all  ------  192.168.0.0/24       !192.168.0.0/24        n/a
: MASQ       all  ------  192.168.0.0/24       anywhere              n/a
: MASQ       all  ------  192.168.0.0/24       anywhere              n/a
: Chain output (policy ACCEPT):
: [root@hun /root]#
:
: 입니다 .
:
: 문제점은 클라이 언트의 인터넷이 안됩니다...
: 제발 도와주세요~
[root@mu /root]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
mu114.2y.net    *               255.255.255.255 UH    0      0        0 eth1
211.108.144.128 *               255.255.255.192 U     0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         211.108.144.129 0.0.0.0         UG    0      0        0 eth0
 Chain input (policy ACCEPT):
Chain forward (policy DENY):
target     prot opt     source                destination           ports
MASQ       all  ------  192.168.0.2          anywhere              n/a
MASQ       all  ------  192.168.0.3          anywhere              n/a
MASQ       all  ------  192.168.0.4          anywhere              n/a
Chain output (policy ACCEPT):
 제가 생각하기에는 메스커레이딩 설정이 잘못 되어 있는것 같군여.
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_vdolive
/sbin/modprobe ip_masq_portfw
#/sbin/modprobe ip_masq_mfw
#/sbin/modprobe ip_masq_quake port=26000,27000,27910,27960
/sbin/modprobe ip_masq_autofw
echo "1" > /proc/sys/net/ipv4/ip_forward
 /sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -j MASQ -s 192.168.0.2/32 -d 0.0.0.0/0
/sbin/ipchains -A forward -j MASQ -s 192.168.0.3/32 -d 0.0.0.0/0
#/sbin/ipchains -A forward -j MASQ -s 192.168.0.4/32 -d 0.0.0.0/0
일단 허접한 저의 설정 값을 올렸습니다.
일단 성공하시면 바꾸어 사용 하세여.
이와 관련된 더 자세한 많은 문건이 있을 것으로 생각이 됩니다.
보다 자세한건 관련 문서에 잘 나와 있을겁니다. ^^--이 곳에 서명을 적어주십시오.
즐거운 삽질 되시길..~~
이름
암호


>> 관련글
  답장 RE: 마스커레이딩 ... 도와주세요...방법이 없습니다...  정계옥  2000.07.31  ....
  답장 RE: 마스커레이딩 ... 도와주세요...방법이 없습니다...  mu  2000.07.31  ....
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.68 초 ] 작업시간: [ 0.08 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1789839868
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.