How to use some of the basic utilities:
The following assumes you are in the console on the device for which you are testing the connectivity. This can be the physical console or a telnet session to the device.
1. To work out whether a device on the network can communicate with another device on the network, you can use the ping utility:
ping <ip address>
This will show "request timed out" or success.
However ping has limited value as some firewalls will disallow ICMP and therefore ping will not work.
2. A better way is to try and connect to a specific port (the one you need) by using telnet.
telnet <ip address> <port>
If the comms is set up correctly, then you will get a connection (with which you can do nothing) otherwise the connection will fail. This tests EXACTLY what you want to do. It can also be used to test the communication over the internet. When the connection works, expect to see garbage displayed on screen otherwise "connection failed".
3. To test DNS setup you can use ping <url> and it will display the IP it thinks is associated with the URL. The ping might still fail for various reasons, but if the IP is found it means the DNS is set up correctly.
Problems I have had in the past:
A. Ubuntu linux ships with IPv6 enabled, which, according to the Ubuntu documentation can cause problems, like connection failures. This can be disabled easily (from Ubuntu documentation):
- IPv6 is supported by default in Ubuntu and can sometimes cause problems.
- To disable it, open a Terminal (Applications → Accessories → Terminal) and type the command: gksudo gedit /etc/modprobe.d/aliases.
- Find the line alias net-pf-10 ipv6 and change it to read alias net-pf-10 off.
- Reboot Ubuntu.
B. If you have more than one router on your network, make sure you set the default gateway on a device to point at the router on which you are doing portforwarding to that device. If this is set up incorrectly then it will be possible to ping the device on the internal network, but not from the router. I did this incorrectly and it took me a while to find the problem.
C. If you do not use static IP addresses for all your devices on your network, then make sure that you set up the range of IP addresses in your DHCP server (normally the router) that DHCP can issue. Make sure that none of your static IP addresses fall with in this range.
D. SECURITY: Make sure that you change your router username/password as soon as possible - DO NOT LEAVE IT AS DEFAULT. This also applies to your dreambox, especially if you expose the admin or web interface to the internet.