>> Edit article
이름
제목
패스워드
kldp.org 에서 많은 정보를 얻고있는 한 회사의 네트워크 운영요원 입니다. 저희는 사내 네트워크와 공인 IP를 같이 쓰고 있기 때문에 공인 IP 단에다가 방화벽을 설치해서 쓰려고 리눅스를 도입했습니다. 기존에는 공인 IP중 한대에 MS익스체인지와 웹서버를 운영하고 있었습니다. 이번에 방화벽 설치로 로컬 IP를 얻게 되었지요. 처음 며칠간은 잘 작동하다가 그 다음부터는 나가거나 들어오는 데이터가 안되기 시작 하더군요. 첨부한 ipchains 설정 화일을 보시고 조언해 주시면 고맙겠습니다. 공인 IP 211.192.X.X ~ 사설 192.168.1.1~ /etc/rc.d/rc.local #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. if [ -f /etc/alzza-release ]; then R=$(cat /etc/alzza-release) arch=$(uname -m) a="a" case "_$arch" in _a*) a="an";; _i*) a="an";; esac NUMPROC=`grep -cl "^cpu[0-9]+" /proc/stat` if [ "$NUMPROC" -gt "1" ]; then SMP="$NUMPROC-processor " if [ "$NUMPROC" = "8" -o "$NUMPROC" = "11" ]; then a="an" else a="a" fi fi # This will overwrite /etc/issue at every boot. So, make any changes you # want to make to /etc/issue here or you will lose them when you reboot. echo "" > /etc/issue echo "$R" >> /etc/issue echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue cp -f /etc/issue /etc/issue.net echo >> /etc/issue fi # ALZZA Recommendation :-) # RedHat uses this /etc/rc.d/rc.local, which is for personal configuration # originally. # How about keeping your personal configuration in rc.local.mine, # for example. This makes post-upgrade process much easier. # # 알짜 리눅스 (6.2) 권장 사항: # # 레드햇 리눅스에서 rc.local 파일을 사용하기 때문에 패키지를 업그레이드하다 # 보면 매번 /etc/rc.d/rc.local.rpmsave와 새롭게 만들어진 /etc/rc.d/rc.local를 # 비교하느라 시간을 보냅니다. # # 그래서 아예 배포판에서 쓰지 않을 만한 /etc/rc.d/rc.local.mine과 같은 # 파일을 만들어 개인 설정을 모두 그 안에 넣으십시오. init 스크립트 패키지를 # 업그레이드하더라도 다음과 같은 3 줄만 넣어주면 업그레이드 뒷처리가 # 끝나게 됩니다. # if [ -x /etc/rc.d/rc.local.mine ]; then . /etc/rc.d/rc.local.mine fi # Masqurading List /sbin/modprobe ip_masq_cuseeme /sbin/modprobe ipip /sbin/modprobe ip_masq_irc /sbin/modprobe ip_masq_ftp /sbin/modprobe ip_masq_raudio /sbin/modprobe ip_masq_vdolive /sbin/modprobe ip_masq_quake /sbin/modprobe ip_masq_autofw /sbin/modprobe ip_masq_portfw /sbin/modprobe ip_masq_user # /sbin/ipchains -F DENY /sbin/ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0.0.0.0/0 /sbin/ipchains -M -S 10000000000 120 300 # /usr/sbin/ipmasqadm autofw -A -v -u -r udp 51200 51201 -c udp 7175 # 새롬 인터넷 폰 /usr/sbin/ipmasqadm autofw -A -v -u -r tcp 51210 51210 -c tcp 7175 # 새롬 인터넷 폰 # MS 익스체인지 서버와 웹 서버를 위한 설정 /sbin/redir 192.168.1.2 80 80 & /sbin/redir 192.168.1.2 25 25 & /sbin/redir 192.168.1.2 21 21 & /sbin/redir 192.168.1.2 110 110 & /sbin/redir 192.168.1.2 143 143 &
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved