[Hampshire] Raspberry Pi, RS485 and libmodbus

2017-11-03 Thread Roger Munford via Hampshire
I am trying to connect an energy monitor to a raspberry pi equipped with a small RS485 card from AB electronics. Effectively the card is just an interface chip between the pi's GPIO pins and the RS485 bus which is just 3 wires. I have installed libmodbus and followed the instructions to disabl

Re: [Hampshire] ufw

2017-11-03 Thread Gareth via Hampshire
Hi rob You could always test it from the machine you are allowing... Use telnet and try to connect to another port that you know is running a service on the destination machine.. Thanks G On 3 Nov 2017 3:41 p.m., "Rob Malpass via Hampshire" < hampshire@mailman.lug.org.uk> wrote: > Thanks both –

Re: [Hampshire] ufw

2017-11-03 Thread Gareth Evans via Hampshire
My understanding would agree with yours, but "machine" is the key point. If you had mulltiple IP addresses on your server, "any" would allow 192.168.0.99 to ssh into any of them. If you only have one, it doesn't matter, but might be worth bearing in mind in case you set up another which you don't

Re: [Hampshire] ufw

2017-11-03 Thread Rob Malpass via Hampshire
Thanks both – so if I do sudo ufw allow from 192.168.0.99 to any port 22 then am I doing anything other than saying 192.168.0.99 can ssh in to this machine? This is what I’m trying to achieve but the “any” is confusing me somewhat – though the rule itself does seem to be doing what I w

Re: [Hampshire] ufw

2017-11-03 Thread Gareth Evans via Hampshire
man ufw doesn't seem to have much to say on the matter, but https://help.ubuntu.com/community/UFW suggests "any" in this context means any destination IP address (given that there may be many associated with a host): > *Allow by specific port, IP address and protocol* > > sudo ufw allow from to

Re: [Hampshire] ufw

2017-11-03 Thread Ben Parsonage via Hampshire
I am not an expert but acordinng to the man page the long format appears to be ufw to So this will allow a connection from Y to any destination on port X. On 3 November 2017 14:57:02 GMT+00:00, "Peter B. via Hampshire" wrote: >From any port on y Maybe? > >On 3 Nov 2017 14:53, "Rob Malpass

Re: [Hampshire] ufw

2017-11-03 Thread Peter B. via Hampshire
>From any port on y Maybe? On 3 Nov 2017 14:53, "Rob Malpass via Hampshire" < hampshire@mailman.lug.org.uk> wrote: > Hi all > > > > Simple question (I hope). If I’m opening port x from ip address y on my > network with the following command > > > > sudo ufw allow from y to any port x > > > > …t

[Hampshire] ufw

2017-11-03 Thread Rob Malpass via Hampshire
Hi all Simple question (I hope). If I'm opening port x from ip address y on my network with the following command sudo ufw allow from y to any port x .then where does the "any" come from? Anyone know? Seems strange to say "any port" then list the port number - unless I've misunder