테스트로 nat를 이용해볼까 하고 다음과 같이 구성했습니다.
인터넷 -
211.211.211.1(eth0) 192.168.0.1(eth1) linux - 192.168.0.2(win-eth1) 211.211.211.2(공인win-eth0 )win 으로 이루어져있습니다.
리눅스 머신에서
modprobe ipt_MASQUERADE
iptables -t nat -A POSTROUTING -o eht0 -j SNAT --to 211.211.211.1
echo 1 > /proc/sys/net/ipv4/ip_forward
로 세팅을 했습니다.
iptables -t nat -L 로 확인하면
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- anywhere anywhere to:211.211.211.1