Masato Taruishi
taru****@users*****
2004年 10月 19日 (火) 20:00:57 JST
=================================================================== RCS file: demo/uml/uml-run,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- demo/uml/uml-run 2004/10/19 10:57:35 1.7 +++ demo/uml/uml-run 2004/10/19 11:00:57 1.8 @@ -35,7 +35,7 @@ tunctl -u $UML_USER -t $host_if ifconfig $host_if $host broadcast $bcast netmask $netmask up route add -host $uml dev $host_if -if test "x$nat" != "x"; then +if test "x$nat" = "xtrue"; then iptables -t nat -A POSTROUTING -s $net -d ! $net -j MASQUERADE else echo 1 > "/proc/sys/net/ipv4/conf/$host_if/proxy_arp"