ubuntu 10.04에는 ipmasq 패키지가 없넹? 다음과 같이 ufw를 사용해 maquerading 을 할 수 있음.
/etc/default/ufw
DEFAULT_FORWARD_POLICY="ACCEPT"
/etc/ufw/sysctl.conf
net.ipv4.ip_forward=1
/etc/ufw/before.rules
# nat Table rules *nat :POSTROUTING ACCEPT [0:0] # Forward traffic from eth1 through eth0. -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE # don't delete the 'COMMIT' line or these nat table rules won't be processed COMMIT
다음 명령으로 ufw 재 시작
sudo ufw disable && sudo ufw enable