diff --git a/fs-root/etc/cont-init.d/30-route b/fs-root/etc/cont-init.d/30-route index d08c632..69495f2 100755 --- a/fs-root/etc/cont-init.d/30-route +++ b/fs-root/etc/cont-init.d/30-route @@ -4,8 +4,8 @@ if [ -n "$NET_LOCAL" ]; then gw="$(ip route | awk '/default/{print $3}')" for net in ${NET_LOCAL//[;,]/ }; do - echo "[$(date -Iseconds)] Enabling connection to network ${net}" - #ip route | grep -q "$net" || ip route add "$net" via "$gw" dev eth0 + echo "[$(date -Iseconds)] Enabling connection to network ${net}" + ip route | grep -q "$net" || ip route add "$net" via "$gw" dev eth0 iptables -A INPUT -i eth0 -s "$net" -j ACCEPT iptables -A OUTPUT -o eth0 -d "$net" -j ACCEPT iptables -A FORWARD -i eth0 -d "$net" -j ACCEPT