<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Networking on Much Ado About IT</title><link>https://it.knightnet.org.uk/categories/networking/</link><description>
Recent content about Networking from Much Ado About IT |
Ramblings and rantings from IT Architect &amp; Designer, Julian Knight</description><generator>Hugo | gohugo.io | Theme twenty-sixteen</generator><language>en-gb</language><copyright>This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.</copyright><lastBuildDate>Mon, 24 Apr 2023 21:27:28 +0000</lastBuildDate><atom:link href="https://it.knightnet.org.uk/categories/networking/feed.xml" rel="self" type="application/rss+xml"/><item><title>SSH Error: "ssh_exchange_identification: Connection closed by remote host"</title><link>https://it.knightnet.org.uk/2012/05/ssh-error-ssh_exchange_identification.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2012/05/ssh-error-ssh_exchange_identification.html</guid><pubDate>Sat, 05 May 2012 21:20:56 +0000</pubDate><guid>https://it.knightnet.org.uk/2012/05/ssh-error-ssh_exchange_identification.html</guid><description><div>Fixing up an SSH login error after moving to a new ISP. "ssh_exchange_identification: Connection closed by remote host" is caused by the lack of a reverse DNS entry.</div><div>&lt;p>At home, we’ve just switched from a slow (2mbps) ADSL connection to a wonderfully fast 40mbps connection provided by the excellent &lt;!-- raw HTML omitted -->Origin Broadband&lt;!-- raw HTML omitted --> using the South Yorkshire fibre network provided by &lt;!-- raw HTML omitted -->Digital Region&lt;!-- raw HTML omitted -->.&lt;/p>
&lt;p>I did have a small problem though that has taken some searching to resolve so I’ll detail it here in case others find it useful.&lt;/p>
&lt;p>As soon as we switched over, I couldn’t connect to my &lt;!-- raw HTML omitted -->VPS&lt;!-- raw HTML omitted --> over &lt;!-- raw HTML omitted -->SSH&lt;!-- raw HTML omitted -->. I was getting the message:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;p>It turns out that this is due to the fact that the server contains the following entry in /etc/hosts.deny:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;p>The OS does a &lt;!-- raw HTML omitted -->Reverse DNS &lt;!-- raw HTML omitted -->Lookup to check for bad domains and this line tells the system to reject connection requests to SSHd that don’t have a reverse DNS address.
So it seems that my new ISP hasn’t (yet?) registered a reverse DNS address whereas my previous ISP (PlusNet) did.&lt;/p>
&lt;p>You can remove that entry but that has a security implication. The better fix is to add a line to /etc/hosts.allow:&lt;/p>
&lt;!-- raw HTML omitted -->
&lt;p>Where 1.2.3.4 should be replaced by the fixed IP address your ISP gives you. Visit WhatsMyIP.com to find out your address. If you don’t have a fixed address, you’ll probably have to do the alternative fix. The “ALL” keyword ensures that your location can access all services on the server.&lt;/p>
&lt;p>I’ve made the change and it works fine. I’ve also raised a ticket to see if I will be getting a reverse DNS entry.&lt;/p>
&lt;p>&lt;!-- raw HTML omitted -->Update 2012-07-13&lt;!-- raw HTML omitted -->: Annoyingly, I’ve had no response to my ticket with Origin Broadband. However, the fix works fine.&lt;/p></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/general">General</category><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/categories/networking">Networking</category><category domain="https://it.knightnet.org.uk/tags/dns">DNS</category><category domain="https://it.knightnet.org.uk/tags/ssh">SSH</category><category domain="https://it.knightnet.org.uk/tags/vps">VPS</category></item><item><title>Monitoring a Broadband Router</title><link>https://it.knightnet.org.uk/2010/12/monitoring-broadband-router.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2010/12/monitoring-broadband-router.html</guid><pubDate>Wed, 01 Dec 2010 20:00:59 +0000</pubDate><guid>https://it.knightnet.org.uk/2010/12/monitoring-broadband-router.html</guid><description><div/><div>&lt;p>Just been asked this question by an ex-colleague so I thought it would be good to do a write up.&lt;/p>
&lt;h2 id="how-do-i-monitor-my-broadband-router">How do I monitor my broadband router?&lt;/h2>
&lt;p>There are a number of measurements that you can do to see the health of your router.&lt;/p>
&lt;h3 id="external-monitoring">External Monitoring&lt;/h3>
&lt;p>Firstly, you can measure whether the outside world can “see” your router. This does mean that you have to allow “pings” from the Internet which does slightly reduce your router security and so this feature is often turned off by default. I use some external services to monitor the availability of both my web sites and my router:&lt;/p>
&lt;ul>
&lt;li>[basicstate.com][1]&lt;/li>
&lt;li>[mon.itor.us][2]&lt;/li>
&lt;li>[servermojo.com][3]
Each of these have both free and paid services. It is [servermojo.com][3] that I mainly use to ping my router.&lt;/li>
&lt;/ul>
&lt;h3 id="internal-monitoring">Internal Monitoring&lt;/h3>
&lt;p>Secondly, you may be able to turn on something called &lt;!-- raw HTML omitted -->SNMP&lt;!-- raw HTML omitted --> (Simple Network Management Protocol) in your router. This is a standard that allows monitoring of all sorts of information regarding servers, routers, etc. You will need to give the router an IP address of a PC within your network that will receive the information.
There are a number of free tools that allow you to monitor SNMP To monitor from within your home network, you can use [PRTG][4] or the free version of [Kiwi Syslog Server][5].
SNMP will allow you not only to see that the router is alive but whether it is connected to the outside world (the WAN port), what speed communications it is using, how long since the connection came alive and many other parameters.&lt;/p>
&lt;p>The key parameters to measure are:&lt;/p>
&lt;ul>
&lt;li>When the WAN connection went up and down&lt;/li>
&lt;li>What the download speed is&lt;/li>
&lt;li>The Signal to Noise Ratio (SNR)&lt;/li>
&lt;li>The Attenuation
If you are having intermittent router problems, these tools will give you the kind of ammunition you need to take to your ISP to encourage them to take you seriously and get the fault resolved.
[1]: &lt;a href="http://basicstate.com/">http://basicstate.com/&lt;/a>
[2]: &lt;a href="http://mon.itor.us/">http://mon.itor.us/&lt;/a>
[3]: &lt;a href="http://servermojo.com/">http://servermojo.com/&lt;/a>
[4]: &lt;a href="http://www.paessler.com/prtg/">http://www.paessler.com/prtg/&lt;/a>
[5]: &lt;a href="http://www.kiwisyslog.com/">http://www.kiwisyslog.com/&lt;/a>&lt;/li>
&lt;/ul></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/hardware">Hardware</category><category domain="https://it.knightnet.org.uk/categories/networking">Networking</category><category domain="https://it.knightnet.org.uk/tags/broadband">Broadband</category><category domain="https://it.knightnet.org.uk/tags/hardware">Hardware</category><category domain="https://it.knightnet.org.uk/tags/networking">Networking</category><category domain="https://it.knightnet.org.uk/tags/router-problems">router problems</category><category domain="https://it.knightnet.org.uk/tags/snmp">SNMP</category></item><item><title>Bridged networking in OpenSUSE 10.3 &amp; 11.0 (For VirtualBox)</title><link>https://it.knightnet.org.uk/2008/07/bridged-networking-in-opensuse-103-for.html</link><guid isPermaLink="true">https://it.knightnet.org.uk/2008/07/bridged-networking-in-opensuse-103-for.html</guid><pubDate>Wed, 02 Jul 2008 01:34:00 +0000</pubDate><guid>https://it.knightnet.org.uk/2008/07/bridged-networking-in-opensuse-103-for.html</guid><description><div/><div>&lt;p>I prefer to use VirtualBox rather than VMware as it seems to be rather faster and less resource hungry than VMware Server (the only free version of VMware with a GUI). Also VirtualBox seems to have better Linux host support (sound, etc.).&lt;/p>
&lt;p>However, there is one thing that VMware is better at – setting up the guest network on the same network as the host.&lt;/p>
&lt;p>Under VirtualBox this is called &amp;ldquo;Host Interface Networking&amp;rdquo; and, with a Linux host anyway, is a right royal pain to set up. This is because VirtualBox uses the powerful and flexible bridging capabilities of Linux – but they have no easy GUI setup!&lt;/p>
&lt;p>So here is my summary of getting host interface working on my OpenSUSE 10.3 desktop. Firstly though, note that I have two network cards. I am not going to mess with eth0 as this is the card I use for the main network from my desktop. Instead I am going to configure eth1.&lt;/p>
&lt;ol>
&lt;li>Install the package “bridge-utils”&lt;/li>
&lt;li>Follow the &lt;a href="http://en.opensuse.org/Bridging">instructions at the OpenSUSE web site&lt;/a> to set up a basic bridge. You will end up with a new file in &lt;code>/etc/sysconfig/network&lt;/code> called &lt;code>ifcfg-br0&lt;/code> containing something like:&lt;/li>
&lt;/ol>
&lt;pre>&lt;code>```
## Bridge 0 config - to allow VirtualBox to use
## Host Interface Networking mode with eth1
STARTMODE='auto'
BOOTPROTO='static'
# Change the above to dhcp to use your networks
# dhcp server to assign an address
# (the next 2 lines are then ignored)
IPADDR=192.168.3.1
NETMASK=255.255.0.0
# Note that the above puts the bridge onto a different
# subnet to my main network but that I use class B
# addressing to ensure everything can talk
NETWORK=
BROADCAST=
STARTMODE=auto
USERCONTROL=no
NAME='Bridge 0'
NM_CONTROLLED=no
BRIDGE='yes'
BRIDGE_PORTS='eth1'
BRIDGE_AGEINGTIME='300'
BRIDGE_FORWARDDELAY='0'
BRIDGE_HELLOTIME='2'
BRIDGE_MAXAGE='20'
BRIDGE_PATHCOSTS='19'
BRIDGE_PORTPRIORITIES=
BRIDGE_PRIORITY=
BRIDGE_STP='on'
```
I think that you may also need to tell the bridge where your default router is. Create a file in the same place as above called `ifroute-br0` containing:
```
default 192.168.1.1 -
```
(or whatever your router is).
Then, when you've done a `/etc/rc.d/network restart` as sudo, you should see that `eth1` and `br0` both come back up.
Note that it is possible that you have to change eth1 to give it a manual IP address of `0.0.0.0`, netmask `0.0.0.0` for it to work correctly (as per the instructions in section 6.7.1.2 of the VirtualBox manual &amp;amp;#8211; note that some of the rest of those instructions seem to be incorrect). Note that SUSE 11.0 at least has a setting for this in YAST (edit the card config and select none for address assignment).
The ethernet card eth1 is now _indirectly_ used via the bridge br0.
Here is my `ifcfg-eth1`.
```
BOOTPROTO='static'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR='0.0.0.0'
MTU=''
NAME='ASUSTeK Marvell 88E8001 Gigabit Ethernet Controller (Asus)'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='hotplug'
USERCONTROL='no'
```
**UPDATE 2008-07-18**: In addition to the above, you _must_ create a default route &amp;amp;#8211; but don't do it via YAST! YAST has a bug that often deletes the default route. Instead, put the following line in the file `/etc/sysconfig/network/routes`:
```
default 192.168.1.1 - -
```
Note the two dashes at the end
* Create a permanent interface for VirtualBox to use (also called a &amp;quot;tap&amp;quot; interface) with the command:
`sudo VBoxAddIF vbox0 &amp;lt;user&amp;gt; br0`
Where &amp;amp;lt;user&amp;gt; is the VirtualBox user running the VM - I guess you have to do this for every user who might run the VM.
If you run the command `ifconfig` you will now see a new network interface called `vbox0` which will reappear along with `br0`,
`ethx`, etc. every time you reboot.
Note that these VirtualBox interfaces can only be used once so if you have two VM&amp;amp;#8217;s, you will need two interfaces. Also note that VirtualBox has a method of creating dynamic interfaces (that only appear when you want them) but that is more complex to set up.
* Now tell your VM configuration to use this interface.
You can do this via the GUI by putting the required name (vbox0) into the network settings box &amp;amp;#8220;Interface Name&amp;amp;#8221; under the HIS section. Or you can do it with the command:
`VBoxManage modifyvm &amp;quot;My VM&amp;quot; -hostifdev1 vbox0`
* Make sure that the guest OS is running the network connection with DHCP so that it gets the correct address, gateway, DNS, etc.
* You might need to set a default gateway in the host OS.&amp;lt;/ol&amp;gt;
Job is done!! After some years of attempting this on and off, it has finally come together and all works. Hopefully this little list is enough to get you going.
Regards, J.
**UPDATE 2008-08-12**: It seems that there is something slightly amis with the above instructions. On reboot, the network is not quite left in the correct state and you have to do a &amp;amp;#8220;`/etc/rc.d/network restart`&amp;amp;#8221; before host networking will actually work.
**UPDATE 2008-08-22**: Oops, sorry but I got the `addif` command wrong, it was missing the userid bit. Rats! Blogger keeps eating the &amp;lt; symbol.
**UPDATE 2018-05-04**: Tidy markup after conversion from WordPress to Hugo/Netlify
&lt;/code>&lt;/pre></div></description><author>Julian Knight</author><category domain="https://it.knightnet.org.uk/categories/linux">Linux</category><category domain="https://it.knightnet.org.uk/categories/networking">Networking</category><category domain="https://it.knightnet.org.uk/categories/virtualisation">Virtualisation</category><category domain="https://it.knightnet.org.uk/tags/bridging">Bridging</category><category domain="https://it.knightnet.org.uk/tags/opensuse">OpenSUSE</category><category domain="https://it.knightnet.org.uk/tags/virtualbox">VirtualBox</category></item></channel></rss>