Tuesday, August 31, 2010

Install and Configure telnet :

Install and Configure telnet :



Install telnet:


# yum install telnet*


This will install telnet and xinetd packages...


# chkconfig telnet on
# chkconfig xinetd on
# /etc/init.d/xinetd start


# vi /etc/xinetd.d/telnet


# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
}


# /etc/init.d/xinetd restart




To connect:


telnet {host ip}


# telnet 192.168.1.x


# telnet 192.168.1.x
Trying 192.168.1.x...
Connected to 192.168.1.x.
Escape character is '^]'.
Fedora release 9 (Sulphur)
Kernel 2.6.33-default on an x86_64 (4)
login:
Password:




Give the username and password....


===============================================


If you got an error like


"getaddrinfo: localhost Name or service not known 
Connection closed by foreign host."


check the /etc/hosts file having two lines..


127.0.0.1 localhost.localdomain localhost
192.168.1.x   restpc.com


where restpc.com is my host name..


And in /etc/sysconfig/network file also having the same HOSTNAME as restpc.com


===============================================


The default port number of telnt 23.


To check the telnet port number


# /usr/sbin/semanage port -l | grep telnet
telnetd_port_t                 tcp      23


oR


# cat /etc/services | grep telnet


================================================


To Download this document  in txt format just click the following link..


http://www.ziddu.com/download/15762093/InstallandConfiguretelnet.txt.html





Saturday, August 14, 2010

service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])

"service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
service failed to start due to unresolved dependencies: set(['iptables_openvpn']) "

This is mostly the iptables modules issue in the node, do the following steps to solve the issue.



** First check the TUN/TAP is enabled or not

Run the following command in your VPS to check the TUN/TAP is enabled or   not.
# cat /dev/net/tun
If this shows "File descriptor in bad state" means TUN/TAP is enabled in your -vps. If  not enable it.



** Edit /etc/vz/vz.conf and add "ipt_state" and "iptable_nat" to the end of the list of IPTABLES modules(From node).



** Install the following kernel module using the following command(From node).

         # modprobe ipt_mark
         # modprobe ipt_MARK



** Now restart the container(From node).

         # vzctl restart xxx


This will solve your issue.