리눅스로 firewall 구축하기 전에 테스트를 해보았는데 몇가지 문제가 있어 문의 드립니다. 아래의 그림이 저의 네트워크 구성도 입니다. 게이트웨이 서버에는와우리눅스 6.2를 설치하였습니다. 게이트웨이 서버에는 ipchains을 설정하려고 준비중입니다. 현재의 ipchain구성은 아래와 같이 아무것도 없습니다. # ipchains -L Chain input (policy ACCEPT): Chain forward (policy ACCEPT): Chain output (policy ACCEPT): 물론 설치후 /etc/sysconfig/network화일에 FORWARD_IPV4=yes도 설정 하였고 /proc/sys/net/ipv4/ip_forword화일에도 "1"을 설정하였습니다. 192.168.2.0 네트워크에서는 인터넷도 잘되고 별 문제가 업는데 192.168.1.0 네트워크와 통신할 때에 문제가 됩니다. 1. 아래의 pc에서 리눅스 서버로 ping과 tracert는 되는데 텔넷 접속이 되지 않습니다. 2. 리눅스 서버에서 pc로 ping은 되지 않지만 traceroute 명령은 됩니다. Internet | 192.168.1.0 네트워크 | 192.168.2.0 네트워크 192.168.1.1 192.168.2.1 | | | | | | -------------------------- | | ----------------- | | | | | | 211.60.36.40 | 192.168.1.33 | | 게이트웨이서버 | 192.168.1.5 192.168.2.23 리눅스서버 pc 게이트웨이 서버의 환경 # ifconfig eth0 Link encap:Ethernet HWaddr 00:50:BF:31:54:1F inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8168 errors:0 dropped:0 overruns:0 frame:0 TX packets:5358 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:11 Base address:0xe800 eth1 Link encap:Ethernet HWaddr 00:50:BF:01:39:3C inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:7739 errors:0 dropped:0 overruns:0 frame:0 TX packets:5721 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:10 Base address:0xe400 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:175 errors:0 dropped:0 overruns:0 frame:0 TX packets:175 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.33 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth1 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 리눅스 서버의 환경 # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 192.168.2.0 192.168.1.33 255.255.255.0 UG 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0