Category: Tech

  • Allowing +trace in Unbound

    By default, +trace works when querying Bind server as it returns root hints as NS-list for “.”. However, +trace disables RD flag and the first query (dig +norecurse NS .) is REFUSED by unbound. The fix: In unbound.conf, change access-control: allow to access-control: allow_snoop Change allow to allow_snoop for all subnets served by […]

  • Ubuntu – GRE Tunnel

    Creating a tunnel on Ubuntu Edit /etc/network/interface file and add this code auto gre1 iface gre1 inet static address netmask pointopoint pre-up iptunnel add gre1 mode gre local remote ttl 255 up ifconfig gre1 multicast post-down iptunnel del gre1 You might also need to “modprobe ip_gre” in some cases before activating the tunnel.

  • Ubuntu – disable USB automount

    Hate it when Ubuntu unnecessarily mounts USB drives when you are doing some R&D. Here’s a quick way to disable it. $ gconftool-2 –type bool –set /apps/nautilus/preferences/media_automount false You can also use gconf-editor to set it to false. Once done, just set it to true again to make it auto-mount.

  • Ubuntu – reset root password

    If you forgot your root password or to login to Ubuntu (for recovery) without the root password, follow these simple steps: While the computer boots, press ‘Esc’ as soon as the Grub loads to go into the menu. Press ‘e’ to edit the boot menu Select the kernel line and again press ‘e’ remove the […]

  • Hide Apache Server Signature

    To hide the detailed information about your Apache web server, OS and plugins, you disable the ServerSignature directive by modifying your Apache configuration file: On CentOS vi /etc/httpd/conf/httpd.conf On Ubuntu vi /etc/apache2/apache2.conf Search for ServerSignature and change it to off ServerSignature Off Save the config and reload Apache to apply the change: On CentOS service […]