>> Edit article
이름
제목
패스워드
: 윈 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 일단 허접한 저의 설정 값을 올렸습니다. 일단 성공하시면 바꾸어 사용 하세여. 이와 관련된 더 자세한 많은 문건이 있을 것으로 생각이 됩니다. 보다 자세한건 관련 문서에 잘 나와 있을겁니다. ^^--이 곳에 서명을 적어주십시오. 즐거운 삽질 되시길..~~
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved