Posts Tagged ‘Linux’


These are the Iptable rules required for port forwarding to /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d –dport 8888 -j DNAT –to /sbin/iptables -A FORWARD -p tcp -i eth0 -d –dport 80 -j ACCEPT # iptables -t nat -L Here rdp will forward to port […]

Step-by-step OpenLDAP Installation and Configuration on server side

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Configuration OpenLDAP Server openldap 2.2.13-6.4E System name: Domain name: System IP: Note: Use your domain name and IP instead of xyz. Easy steps for adding users:     1. Create unix user […]

Step-by-step OpenLDAP Installation and Configuration on client side

Step #1. Installation [root@ldapclient ~]#  yum install authconfig Step #2. Run the command [root@ldapclient ~]# authconfig-gtk Step #3. Settings          [*] Use LDAP     [*] Use LDAP Authentication     [Both should be checked]         Click “Next”.         [ ] Use TLS         Server:         Base DN: dc=xyz,dc=com         Click “Ok” to confirm. Note: Use your domain name instead of xyz.

Quit from shell without saving into history

There are many instances when we want to quit from shell without saving any command in history. We might have run by mistake some rookie command and you dont want to disclose it to others. kill -9 $$ will do the needful as $$ will provide the PID of the current shell.    

Local port range sysctl tuning for high bandwidth Linux servers

Most of the Linux distributions specify local port range from 16384 to 65536 and this may be too low for very high bandwidth and busy boxes, let’s say SMTP, Hosting, POP3/Imap and Proxy servers. You can adjust this setting by editing /etc/sysctl.conf file and replacing the default: net.ipv4.ip_local_port_range = 16384 65536 with net.ipv4.ip_local_port_range = 1024 65536 […]