I have a problem, which I can not explain. I am using Ubuntu server 12.04 LTS as a home gateway. Remotely rebooting the system, I noticed that sometimes after reboot I can not access it. SSH, web server, any other software with listening ports is not accessible. that is terribly annoying, because local access is required to reboot the system once more (or several times) until remote access will appear. Strange but from the local network everything works fine (server is running as a gateway), so I need to test accessibility from the internet from my phone after every restart. The firewall is accepts all incoming connections.
This is my interfaces file. eth0 is looking on ISP network, eth1 - LAN network, eth0.6 - IPTV VLAN
Maybe anyone have an idea what i need to do in this complicated situation?
iface lo inet loopback
iface eth0 inet dhcp
post-up iptables-restore < /etc/iptables.up.rules
iface eth0.6 inet dhcp
iface eth1 inet static