From: mitty Date: Tue, 7 Jul 2009 14:30:18 +0000 (+0000) Subject: * wait for a while to surely set rules X-Git-Tag: r89-trunk~60 X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=7c270d4dd09b93118b652bfd994edfeda5a6b2a0;p=lab.git * wait for a while to surely set rules * sometimes fail to set rules for some unclear reason git-svn-id: https://lab.mitty.jp/svn/lab/trunk@18 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/iptables/setlan2wan.sh b/iptables/setlan2wan.sh index ca9e94a..ac9c617 100644 --- a/iptables/setlan2wan.sh +++ b/iptables/setlan2wan.sh @@ -28,5 +28,10 @@ fi # set rule +( +sleep 60 + /sbin/iptables -t nat -A PREROUTING -i ${LANIF} -s ${LANMASK} -d ${WANIP} -j DNAT --to-destination ${LANIP} echo "set rule for access to WAN device on router node from LAN clients" + +) &