Entradas

Mostrando las entradas con la etiqueta Networking

Periodic DNS queries for fedoraproject.org

Imagen
 A while back I decided to install Fedora in my old Laptop Gateway M-6806m and used it to test random things like Grafana, Docker, etc.   In the last weeks pi-hole was installed to test it as a docker container instead of the installation done in my Raspeberry Pi 2 Model B , for that I used instead the Gateway laptop.   So, it was really strange to see "fedoraproject.org" in the pi-hole section "Top Permited Domains" Ater a fast search with qwant.com found the answer in Reddit with the same question so, I'm keeping a copy of the answer here for my self (and you) 'cause I don't see the point to keep "asking" the DNS sever about that domain name even when I randomly use this laptop. r/Fedora 1 yr. ago unconcious_insomnia Question: How to stop periodic DNS queries for fedoraproject.org Was just looking at DNS logs while nothing is running. Constant DNS queries for fedoraproject.org without anything running. Edit: Solved by u/aioeu | rpm-ostree o...

AdGuard Home instead of pi-hole with a Raspberry Pi 2 Model B

Imagen
In the last days/weeks I'm seeing people talking about "AdGuard" instead of "pi-hole" so I decided to give it a try. These are the steps I followed to install it using the Raspberry Pi 2 Model B where I have pi-hole running at the moment. First, stop/disable pi-hole: pi@localhost:~ $ pihole disable   [i] Disabling blocking   [✓] Reloading DNS service   [✓] Pi-hole Disabled pi@localhost:~ $ sudo systemctl stop lighttpd pi@localhost:~ $ sudo systemctl disable lighttpd Synchronizing state of lighttpd.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable lighttpd pi@localhost:~ $ sudo pihole disable   [i] Blocking already disabled, nothing to do pi@localhost:~ $ sudo systemctl stop pihole-FTL pi@localhost:~ $ sudo systemctl disable pihole-FTL pihole-FTL.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable pihole-FTL Now proce...

Trying pi-hole to block ads, trackers and more.

Imagen
In the last months I've been using pi-hole to block ads/trackers/etc, here's a guide based on the official document and examples found on different sites/blogs. I'm using a Raspberry Pi 2 Model B along with raspbian  - Download/install/configure pi-hole # curl -sSL https://install.pi-hole.net | bash The installation script runs and you'll be shown the following: "This installer will transform your device into a network-wide ad blocker! " The next step requires you to provide the DNS upstream servers, consider using the Cloudfare DNS servers 1.1.1.1 and 1.0.0.1  or the DNS server you want. The installation is done and you should get the message: Installation Complete! The next steps depends on your home network configuration, on your router find the section where you set the DNS server and use the ip address that you configured for pi-hole. Now, open your favorite web browser and point it to the ip address assigned to the h...

HOWTO : Find IP and/or MAC address of Brocade switch

Imagen
If you have to work with Brocade Switches and for some reason you need to find out the ip and/or the mac address of the network interface, you might have to use (at least) two options, depending on the model/firmware version. To find the IP: broc01:FID340:admin> ipaddrshow SWITCH Ethernet IP Address: 1.1.2.4 Ethernet Subnetmask: 255.255.240.0 Gateway IP Address: 1.1.2.1 DHCP: Off To find the MAC address (two options): broc01:FID340:admin> ifmodeshow eth0 but depending on the model/firmware version you might get this output: "This command is deprecated in Fabric OS v8.0.1. Please use command ethif." broc01:FID340:admin> ethif --show eth0 eth0 interface: Link mode: negotiated 100baseTx-FD, link ok MAC Address: 00:F8:72:90:56:36 eth0      Link encap:Ethernet  HWaddr 00:F8:72:90:56:36           inet addr:1.1.2.1  Bcast:1.1.2.255  Mask:255.255.2255.0           UP BROADCAST R...

DWA-131, driver configuration and installation rtl8192eu

Well, while trying to do some troubleshooting to get this device working I found a blog where we get an explanation about how to get it working. This worked with Debian, didn't test it with other Linux distribution. The site is  https://trollingheavy.wordpress.com/2016/09/25/d-link-dwa-131-rev-e-on-linux/ Just in case that blog dissapears, I'm doing copy & paste of the instructions provided ('cause I know I'm going to need them in the future again): " Early models in round cases used chipsets which now have inbuilt support (rev A- realtek 8192su, rev B – realtek 8192cu), but the newer ones (revision E) use a realtek 8192eu. There is a driver available from D-Link, but for me it was a kernel-panicky mess. This is a list of instructions that I used to install a driver hosted by github user  jpostma  which seems to be the official realtek driver with patches (for what? not sure, but it works) applied. User  Brainiarc7  suggests using  https...

How to determine switch/port Info using tcpdump / snoop decoding CDP and/or LLDP packets

This is a handy way to get a lot of info about the switch/port an interface is connected to. CDP stands for  Cisco Discovery Protocol , which is a layer 2 protocol and is used to share information about other directly connected Cisco equipment (WikiPedia). ## ether[20:2] == 0x2000 - Capture only packets that are starting at byte 20, and have a 2 byte value of hex 2000 LLDP stands for  Link Layer Discovery Protocol  and replaces CDP. LLDP is a vendor-neutral Data Link Layer protocol used by network devices for advertising of their identity, capabilities and neighbours (WikiPedia). ##tcpdump -i eth0 -s 1500 -XX -c 1 'ether proto 0x88cc' The folllowing command shows how to use tcpdump if you ever need switch/port info on a linux host assuming you are connected to a Cisco device: tcpdump -nn -vv -i   -s 1500 -c 1 '(ether[12:2]=0x88cc or ether[20:2]=0x2000)' Example: root@arrakis:~ # tcpdump -nn -vv -i eth0 -s 1500 -c 1 '(ether[1...

Hábitos de la gente rica (infografía).

Imagen
Visto en:  http://www.seremprendedor.com.mx/habitos-de-la-gente-rica/

How to get the bandwidth (consumed by wireless clients) provided by dd-wrt.

This started one night while trying to get the open ports of our Wii Console, my wife told me that YouTube App started to play the video for some random time and then kept buffering, played some seconds and you got the picture now, impossible to watch a video from the start till the end. I used "nmap" and yes I found that the Wii doesn't have any port open, all the communications are initiated by the console. So, if I can't monitor the network device using SNMP, MRTG, CACTI, etc., I might be able to get the bandwidth consumed from the access point, right? Well, that depends. My (old?) Linksys WRT160N v3 with DD-WRT v24-sp2 (03/25/13) mini is great because allows me to do many things that the default software provided by CISCO / Linksys dons't support. Yes, I know under "Status" -> "Bandwidth" you can check a graph showing the bandwidth for the WAN/LAN (eth0, vlan0, vlan1), wireless wl0,  but that's not what I'm looking f...

World IPv6 Launch Day

Imagen
World IPv6 Launch Day

Analizando las conexiones del PS3 (segunda parte).

Imagen
El juego en línea no parece mejorar mucho, aunque veo que no soy el único que no logra tener una buena conexión: Seguimos con las pruebas en pingtest.net y speedtest.net: Y lo que obtengo del resultado es: Espero que la situación mejore pronto.

Analizando las conexiones del PS3.

Imagen
Debido a los problemas de lentitud mientras juego los títulos de Call of Duty en el PlayStation 3, me enfoqué a observar el tráfico generado por la consola mientras se ejecutaban los juegos. Usando una computadora con GNU/Linux, dos tarjetas de red [una tarjeta hacia la conexión de internet, la otra hacia el PS3 ] y un "sniffer" como "tcpdump" resultó que al iniciar los juegos la consola se comunica con los servidores de PlayStation, el primer análisis lo hice jugando COD4. 21:04:29.916106 IP (tos 0x0, ttl 64, id 23890, offset 0, flags [none], proto UDP (17), length 78) 192.168.125.22.53202 > dns.isp.mx.domain: [udp sum ok] 26686+ A? fus01.ps3.update.playstation.net. (50) 21:04:29.926844 IP (tos 0x0, ttl 61, id 18762, offset 0, flags [none], proto UDP (17), length 537) dns.isp.mx.domain > 192.168.1.20.35102: 26686 q: A? fus01.ps3.update.playstation.net. 5/9/9 fus01.ps3.update.playstation.net.[|domain] Obviamente, hay más datos sobre estas conexiones, ...

Problemas de conectividad.

Imagen
Estoy observando que mientras juego los títulos de COD en línea con el PS3, hay problemas obvios de conectividad, por lo que desde el navegador que viene en la consola hice algunas pruebas con el sitio "speedtest.net". Las capturas son del 26 de Septiembre poco después de las 13:00 a.m. : Ok, así que el resultado indica que la conexión no anda bien, sin embargo las velocidades de descarga/subida están bien: Tendré que esperar a que la situación mejore, mientras los problemas para jugar con los videojuegos en línea y la navegación en los sitios web, es evidente y bastante incómodo. Saori me lo ha confirmado cuando ha consultado su correo vía web y visita diversos sitios, por lo que no aplica aquello de que se tengan problemas por ser "horas pico".

Nuevo switch.

Imagen
En días pasados, en casa se nos estaban presentando problemas de navegación, como muchos creí que el problema sería del lado del proveedor de servicios de internet, pero no fué así; el problema era (posterior a diversas pruebas) que el switch estaba provocando las fallas. Así que nos encaminamos a la tienda de cómputo más cercana, para adquirir un switch económico, sin embargo al llegar a dicha tienda, tenía como única opción éste equipo Airlink. Una vez instalado en el lugar del anterior switch, los problemas de conexión desaparecieron y ahora podemos navegar, jugar con el PS3 y el Wii, escuchar la radio en línea, perder el tiempo en facebook, lo "normal". Total que con el nuevo switch va de perlas la conexión a Internet todo el tiempo. Lo curioso es que posteriormente, hice una prueba conectando el switch anterior a un puerto del nuevo y no tuvo problemas para darle conexión a una laptop, lo que ahora parece que vamos a necesitar, es un nuevo punto de acceso ...

Banda Ancha Móvil (BAM) de Iusacell y Kyocera KR1

Imagen
Hace un par de semanas tuve oportunidad de probar la conexión inalámbrica de Iusacell conocido como "Banda Ancha Móvil (BAM)" . El asunto era que la persona que contrató este servicio deseaba acceder desde Internet a una cámara IP y estaba usando un router Kyocera KR1, en el cual estaba insertada la tarjeta PCMCIA que Isacell entrega para hacer uso de su servicio. Al conectar una laptop al router Kyocera, la laptop podía acceder al puerto 80 de la dirección IP que tenía configurada la cámara, sin embargo desde Internet no era posible. En un principio creíamos que eran las reglas del router Kyocera el que nos estaba bloqueando ya que cualquier equipo conectado a él si podía acceder a la cámara IP; pero con una conexión de Prodigy no era posible y en el caso de una conexión con Megared aparentemente si se lograba la conexión al puerto, pero nunca se obtenía respuesta. Total que después de haber hecho varios intentos decidimos dejarlo y yo me puse a probar la conexió...