<pre>
IP MASQ 관련 질문입니다
-----------------------------
Linux 1대 : MASQ 서버 (210.126.18.230 ; 10.200.1.1)
Widows 2대 : MASQ 클라이언트(10.200.1.2, 10.200.1.3)
Kernel : ver. 2.2.16
ipchains : ver. 1.3.9-14
-----------------------------
테스트 결과입니다
1. MASQ 클라이언트끼리는 ping이 된다
2. MASQ 서버에서는 내부네트웤주소(10.200.1.1)로 ping이 된다
고유 IP(210.126.18.230)로 ping이 된다
3. 내부네트웍과 라우팅이 되지 않는다
즉, MASQ 클라이언트에서 MASQ 서버로 ping이 안된다(Request time out)
물리적 연결에는 이상이 없음을 확인했다
4. MASQ 클라이언트와 MASQ 서버의 고유 IP(210.126.18.230)와 ping 안된다
외부의 임의의 IP로 ping이 안된다
5. /sbin/ifconfig => eth1의 Rx packet=0 (ping이 안되므로..)
/sbin/route => default Gateway(210.126.18.126)는 제대로 잡혀 있다
cat /proc/sys/net/ipv4/ip_forward => 1
/sbin/ipchains -L => 내용을 해석할 수 없으므로 후미에 기재
6. 외부 호스트네임으로의 Telnet접속은
MASQ 서버는 가능, 클라이언트는 불가
------------------------------------------
초보라서 Kernel comfile을 해보질 않았고,
Kernel과 ipchains의 버전이 높으므로 그것과는 다른 문제이지 않을까해서
이렇게 조언을 구합니다
------------------------------------------
참고 자료
[root@geophysical /]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:92:89:94
inet addr:210.126.18.230 Bcast:210.126.18.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6530 errors:0 dropped:0 overruns:0 frame:0
TX packets:704 errors:0 dropped:0 overruns:0 carrier:0
collisions:28 txqueuelen:100
Interrupt:11 Base address:0xe800
eth1 Link encap:Ethernet HWaddr 00:01:02:90:CB:92
inet addr:10.200.1.1 Bcast:10.200.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:6
collisions:0 txqueuelen:100
Interrupt:10 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:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
-----------------------------------------
[root@geophysical /]# /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
210.126.18.0 * 255.255.255.0 U 0 0 0 eth0
10.200.1.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 210.126.18.126 0.0.0.0 UG 0 0 0 eth0
--------------------------------------------
/sbin/ipchains -L
Chain input (policy ACCEPT):
Chain forward (policy DENY):
target prot opt source destination ports
MASQ all ------ 10.200.1.0/24 anywhere n/a
Chain output (policy ACCEPT):
-------------------------------------------------
[root@geophysical /]# more /etc/rc.d/rc.firewall
#
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_autofw
/sbin/modprobe ip_masq_quake
/sbin/modprobe ip_masq_cuseeme
/sbin/modprobe ip_masq_vdolive
echo "1" > /proc/sys/net/ipv4/ip_forward
#
# MASQ Timeout
/sbin/ipchains -M -S 7200 10 160
# Forwarding
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 10.200.1.0/24 -j MASQ
#
-----------------------------------------------------
경험이 없다보니 두서없이 너무 많은 걸 올린건 않은지..
고견을 부탁합니다.--JyH