Linux Tips and Tricks.
How to boot Linux from the Windows Bootloader
===================================
Let's create a dual boot system with a non-Linux bootloader.To do this , first install Windows XP and then Linux. During the installation of LInux ,make sure that you choose to install the Linux bootloader to the root partition instead of over writing the MBR, which already holds the Windows bootloader.
Now,download a tiny program called Bootpaer and run it from the DOS prompt in its directory by typing bootpart in its directory.It will display all partitions.
Then type the following:
bootpart <> bootlinx.bin
Guard against SYN attacks and 'ping'
====================================
As the root user ,execute the following code:
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
Want to disable ping?
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Disable broadcast/multicast ping??
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
And to enable again:
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
===================================
Let's create a dual boot system with a non-Linux bootloader.To do this , first install Windows XP and then Linux. During the installation of LInux ,make sure that you choose to install the Linux bootloader to the root partition instead of over writing the MBR, which already holds the Windows bootloader.
Now,download a tiny program called Bootpaer and run it from the DOS prompt in its directory by typing bootpart in its directory.It will display all partitions.
Then type the following:
bootpart <> bootlinx.bin
Guard against SYN attacks and 'ping'
====================================
As the root user ,execute the following code:
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
Want to disable ping?
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Disable broadcast/multicast ping??
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
And to enable again:
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
No comments:
Post a Comment