Monday, October 31, 2011

How to disable ICMP echo responses in Linux

Many malicious attacks begin with a ping scan. Disabling ICMP echo requests prevents your system’s discovery with a ping. Disable ICMP echo responses temporarily You can temporarily disable the ICMP using the following method but this setting will be erased after the reboot.root@lifelinux:~# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_allAlso, to enable the ICMP echo responses back, type the following command:root@lifelinux:~# echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_allDisable ICMP echo responses permanentlyYou can permanently disable ...
Continue Reading »

How to Enable TCP/IP Forwarding in Windows XP

To enable TCP/IP forwarding, follow these steps: Start Registry Editor (Regedit.exe). In Registry Editor, locate the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters Set the following registry value: Value Name: IPEnableRouterValue type: REG_DWORDValue Data: 1 A value of 1 enables TCP/IP forwarding for all network connections that are installed and used by this computer. Quit Registry Editor. ...
Continue Reading »

Howto enable internet for ip in Centos

#eth0 – internet#eth1 – networkecho -e “192.168.10.99 00:15:F2:16:6C:C2 dev eth1″ > /srv/mac.listarp -f /srv/mac.listiptables -t nat -A POSTROUTING -o eth0-j MASQUERADEiptables -A FORWARD -i eth1 -j ACCEPTecho 1 > /proc/sys/net/ipv4/ip_forward#this script enable internet for ip 192.168.10.99 with MAC 00:15:F2:16:6C:C2 ...
Continue Reading »

Enable IP forwarding under RHEL/CentOS

The regular way Edit /etc/sysctl.conf Edit the “net.ipv4.ip_forward” line and set it to 1# Kernel sysctl configuration file for Red Hat Linux## For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and# sysctl.conf(5) for more details.# Controls IP packet forwardingnet.ipv4.ip_forward = 1# Controls source route verificationnet.ipv4.conf.default.rp_filter = 1# Do not accept source routingnet.ipv4.conf.default.accept_source_route = 0# Controls the System Request debugging functionality of the kernelkernel.sysrq = 0# Controls whether core ...
Continue Reading »