인터넷 공유를 위해서 리눅스 서버를 매스커레이딩하려는데요..
이상하게 모듈설치까지 다 이상없이 됐는데 iptable을 실행하면 에러가 나오네요
도대체 뭐가 문제일까요...
여기 게시판에도 같은 질문이 있던데.. 확실한 해결책은 없더군요..
[root@linuxer /root]# iptables -A INPUT -s localhost -p icmp -j DROP
iptables v1.2.1a: can't initialize iptables table `filter': Table does not exi
st (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
커널은 2.4.18이구요.. 아래는 떠있는 모듈들입니다.
[root@linuxer /root]# lsmod
Module Size Used by
soundcore 3632 0 (autoclean)
ipt_MASQUERADE 1264 1 (autoclean)
ip_nat_ftp 3008 0 (unused)
iptable_nat 13872 2 [ipt_MASQUERADE ip_nat_ftp]
ip_conntrack_ftp 3408 0 (unused)
ip_conntrack 13648 2 [ipt_MASQUERADE ip_nat_ftp iptable_nat ip_conntrack_ftp]
ip_tables 11424 4 [ipt_MASQUERADE iptable_nat]
8139too 13104 2 (autoclean)
mii 1104 0 (autoclean) [8139too]
다행히 매스커레이딩이 되긴 하는데요..
원래 iptables 모듈만 떠있어도 매스커레이딩은 되는건가요?
아래는 실제로 iptables 실행한 화면입니다. 혹시나 해서 적어봅니다.
[root@linuxer /root]# iptables -A INPUT -s localhost -p icmp -j DROP
iptables v1.2.1a: can't initialize iptables table `filter': Table does not exi
st (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
[root@linuxer /root]# ping -c 1 localhost
PING localhost (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=0 ttl=255 time=279 usec
--- localhost ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/mdev = 0.279/0.279/0.279/0.000 ms