>> Edit article
이름
제목
패스워드
: masquerading을 설정한후 재부팅을 했는데 그때부터 안돼더라구여... : : 커널 : 2.4.16 : 맨 처음 masquerading을 설정할때 그땐 ipchains로 설정을 했었구여... : 리부팅한 후 다시 ipchains를 설정하려 하는데.. 안돼더라구여... : ================================================ : server → internet (O) : client → internet (X) : 내부끼리는 ping 전달.. : ================================================ : #ipchains -F 부터 쭈~ 욱~~~ : ipchains : Incompatible with this kernel -> 이런 메시지가 뜨면서 : 여... : 제가 보기엔 이 커널에서 ipchains가 맞지 않다는.. 즉, 사용할 수 없다는 : 메시지 같은데... : : 근데, 이상하게도 맨처음 masquerading설정시는 ipchains가 어떻게.. 왜.. : 사용 됐는지... : ===================================================== : ipchains설치과정... : #ipchains -F : #ipchains -P forward DENY : #ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0/0 : ====================================================== : : : 그리고, 이 버전(2.4.16)에서 iptables로 설정하려니깐.. : #iptables -t not -F : bash : iptables : command not found 이렇게 뜨더군여... : : : 그래서 결국엔.. LILO에서 맨처음 터보리눅스(2.2.18-10)로 부팅시키고, : ipcahains를 사용해서masquerading를 사용하게끔 해놨거든여... : : 흠... 2.4.16에선 ipchains를 사용할 수 없는건지...(참고로.. 커널 컴파일 : 시 설정을 해놓킨 했지만...) 다시 컴파일 해야 하는건지... : 아님 제가 확인하지 못한 다른 방법이 있는건지... : 답변 부탁드립니다! : : : 참고로... : iptables 설정은 이거 맞는거져? 혹시, 틀린거 있나여? : : iptables -t not -F : iptables -P FORWARD DROP : iptables -A FORWARD -i eth1 -O eth0 -j ACCEPT : iptables -A FORWARD -i eth0 -O eth1 -j ACCEPT : iptables -t not -A POSTROUYING -O eth0 -j MASQUERADE : iptables -t not -L--iptables -t not -F ------> iptables -t nat -F not ----> nat로 바꾸셔야 됩니다.. 아래에 2 - 3 군데 있군요 not하구 POSTROUYING 에서 Y->T로 바꿔져야 됩니다. 수정하면 아래와 같습니다. 도움이 된지 알수 없군요 iptables -t nat -F iptables -P FORWARD DROP iptables -A FORWARD -i eth1 -O eth0 -j ACCEPT iptables -A FORWARD -i eth0 -O eth1 -j ACCEPT iptables -t nat -A POSTROUTING -O eth0 -j MASQUERADE iptables -t nat -L
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved