Monthly Archives: December 2012

Adding routes to VPN (pptpd)

There is a file for running commands when PPP goes up or down. On CentOS it is located at /etc/ppp/ip-up  (create it if not) Examples of #!/bin/bash case “$5” in         172.16.4.200)                 /sbin/route add -net 172.16.3.64/26 gw 172.16.4.200                 ;; … Continue reading

Posted in Linux | Tagged , | Leave a comment

Clone/Copy hdd/MBR

sfdisk -d /dev/sda | sfdisk /dev/sdb (clone partition table sda to sdb) Backing up the MBR The MBR is stored in the the first 512 bytes of the disk. It consist of 3 parts: The first 446 bytes contain the … Continue reading

Posted in Linux | Tagged | Leave a comment