Showing posts with label networking. Show all posts
Showing posts with label networking. Show all posts

Tuesday, 1 January 2013

How to stop avahi-daemon from advertising on a network

The problem exists when a box decides to tell everyone on the network "hey, I have a VNC / SSH / Remote Disk connection, come and try me out!"  This can be evidenced by running the command 'avahi-browse -a' on the host pc with the services being advertised.

Some people go to lengths to kill of the daemon all-together, but there are some things avahi-daemon does with can be beneficial, other than advertising services.  Also killing off the avahi-daemon during runtime is difficult as alot of other things like talk to it.

All you need to do is modify the /etc/avahi/avahi-daemon.conf file.

uncomment and edit the line to read:
disable-publishing=yes

And then restart the service to make the changes stick
sudo service avahi-daemon restart

from the man page avahi-daemon.conf
disable-publishing= Takes a boolean value ("yes" or "no"). If set to "yes", no record will be  published  by Avahi, not even address records for the local host. Avahi will be started in a querying- only mode. Use this is a security measure. This option defaults to "no"

It's not all beer and skittles, clients looking for services on the host may throw up errors sometimes.



references:
man avahi-daemon
mon avahi-daemon.conf

WindyCityTech Blogger
WindyWindyCityTech Wordpress

Sunday, 10 July 2011

Networking and Computing Videos

A great resource, this guy teaches very well.  If you don't want to read pages of stuff then eli's videos are what you need.  Subject include networking and computing and also other Stuff.

Everyman Videos






WindyCityTech Blogger
windywindycitytech wordpress

Thursday, 9 June 2011

USB tethering ZTE V9 with Ubuntu 11.04

No Problems experience here. 
  • Plug in the USB connection
  • Hit 'back' to get out of the data storage screen
  • Go to settings > Wireless & networks > Tethering & portable hotspot > USB tethering
  • Network manager will now auto connect
The bonus here is that the tablet will be charged from the USB port while you are surfing using your laptop and you can surf the web on the tablet while tethered.




lsusb





WindyCityTech Blogger
windywindycitytech wordpress

Saturday, 26 March 2011

Wireshark No Interfaces, sudo permissions how to fix!



When I open Wireshark in Ubuntu, there are no interfaces.  That is because Wireshark needs to be run with sudo permissions to access the interfaces.  It is not a good idea to run Wireshark from sudo as there are 30K lines of code running with full admin permissions and it will warn you about it as well.

Below is the preferred way.

sudo su
groupadd wireshark
usermod -a -G wireshark stretch
newgrp wireshark
chgrp wireshark /usr/bin/dumpcap
chmod 750 /usr/bin/dumpcap
setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap

If setcap does not exist then:
sudo apt-get install libcap2-bin

check to see if sucessful
getcap /usr/bin/dumpcap
/usr/bin/dumpcap = cap_net_admin,cap_net_raw+eip

logout and log back in!