Creating Persistent names for usbtty devices

I was needing a way to manage and have persistent USB serial device names this was the answer I came up with… ex. /dev/someUSBtty Manipulate this command below to gather the information for ID_VENDOR_ID and ID_MODEL_ID # udevadm info -a -n /dev/ttyUSB1 Create :¬†/etc/udev/rules.d/99-usb-serial.rules SUBSYSTEM==”tty”, ACTION==”add”, ENV{ID_VENDOR_ID}==”0403″, ENV{ID_MODEL_ID}==”6011″, ENV{ID_USB_INTERFACE_NUM}==”00″, SYMLINK+=”canif” SUBSYSTEM==”tty”, ACTION==”add”, ENV{ID_VENDOR_ID}==”0403″, ENV{ID_MODEL_ID}==”6011″, ENV{ID_USB_INTERFACE_NUM}==”01″,…

Continue Reading

Automount USB drives with udev rules using disk label

Ensure you have ‘pmount’ installed This is by far the best udev rule for auto mounting USB drives. Create this udev rule: /etc/udev/rules.d/70-automount.rules # NOTE: # 1. use pmount –sync if drive label ends with Sync/SYNC/sync in add action to allow removal without corruption # 2. avoid mounting EFI partition for a HFS+ drive KERNEL!=”sd*”,…

Continue Reading

Mitigating DDoS Attacks with NGINX

A Distributed Denial-of-Service (DDoS) attack¬†is an attempt to make a service, usually a website, unavailable by bombarding it with so much traffic from multiple machines that the server providing the service is no longer able to function correctly because of resource exhaustion. Typically, the attacker tries to saturate a system with so many connections and…

Continue Reading