[네트워크] iptables 로 masq 하기..
kernel 을 2.4.2 로 upgrade 하면서 iptables 로 변경하였습니다.
IP MASQ 를 위한 이전 kernel 2.2.16 에서는 아래와 같았습니다.
########## IP MASQ Fot Kernel 2.2.x
#################################
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -P forward DENY
ipchains -A forward -s 192.168.1.0/24 -j MASQ -d 0.0.0.0/0
/sbin/ipchains -M -S 7200 10 160
###############################################################
iptables 로 변경된 kernel 2.4.2 에서는 아래와 같이 변경되었습니다.
########### IP NAT For Kernel 2.4.x ############################
echo 1 > /proc/sys/net/ipv4/ip_forward
/usr/local/sbin/iptables -t nat -A POSTROUTING -o eth0 -j SNAT –to
211.47.65.68
참고하시길…..
3 Responses
… [Trackback]
[…] Read More on to that Topic: nblog.syszone.co.kr/archives/350 […]
… [Trackback]
[…] Find More Info here to that Topic: nblog.syszone.co.kr/archives/350 […]
… [Trackback]
[…] Information on that Topic: nblog.syszone.co.kr/archives/350 […]