HOW TO CONFIGURE CHAT SERVER IN LINUX AS SERVER AND WINDOWS AS CLIENT.

In this post we will learn how to configure chat server in linux . And how chat server works in linux as server and windows as client .

[root@deepitp5 ~]# yum install telnet*
Loaded plugins: rhnplugin, security
Repository 'a' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
a                                                                                      | 1.3 kB     00:00
Setting up Install Process
Package 1:telnet-server-0.17-39.el5.i386 already installed and latest version
Package 1:telnet-0.17-39.el5.i386 already installed and latest version
Nothing to do
  • Open telnet configuration file through vim
[root@deepitp5 ~]# vim /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         = yes
}
~
~
~
~
~
  • You just have to make small change , just make disable = no  in place of yes .
  • Press I ( insert mode )
# 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
}
~
~
~
~
~
  • Press ESC and type :wq ( to save and quiet )
~
~
~
:wq
  • Start the telnet service .
[root@deepitp5 ~]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
  • Type below command so that telnet should be on even after system reboots .
[root@deepitp5 ~]# chkconfig xinetd on
  • Check whether your firewall is enabled or not
  • If  you will see word “ ACCEPT ” , that means firewall is enabled .
[root@deepitp5 ~]# iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     esp  --  anywhere             anywhere
ACCEPT     ah   --  anywhere             anywhere
ACCEPT     udp  --  anywhere             224.0.0.251         udp dpt:mdns
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ipp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ipp
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited
  • to disable linux firewall        =  iptables  -F
  • to disable se linux settings  =  setenforce 0
[root@deepitp5 ~]# iptables -F
[root@deepitp5 ~]# setenforce 0
  • Now check the ip address of server machine .
  • Like my server ipaddress is 192.168.56.101
[root@deepitp5 ~]# ip a
eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 08:00:27:f8:4a:4c brd ff:ff:ff:ff:ff:ff
    inet 192.168.56.101/24 brd 192.168.1.255 scope global eth1
    inet6 fe80::a00:27ff:fef8:4a4c/64 scope link
       valid_lft forever preferred_lft forever

NOW COMES THE CLIENT ROLE

In windows , Open Control Panel and go to program and features .

And select ” TURN WINDOWS FEATURES ON OR OFF

programs in control panel

  • Now you will see windows features that has been enabled on your machine  ( which is tick marked )
  • Tick mark telnet client , then click on ok .

windows features in control panel

Type below command in your linux machine before connecting .

This means 8808 will be port in which chat server will be working on . ( you can give port number of your wish )

[root@deepitp5 ~]# nc -l 8808
  • Now open command prompt as administrator in windows and type

telnet  server  ipaddress  port number

  • Like telnet   192.168.56.101   8808

chat server in linux

  • Now you are connected to your server machine
  • Keep chatting ….

c4

 

 

WHAT’S FINGER SERVER AND HOW TO CONFIGURE FINGER SERVER IN LINUX .

WHAT’S ROOTKIT AND RKHUNTER IN LINUX . HOW TO RUN RKHUNTER IN LINUX

VIRUS IN LINUX . LEARN HOW TO INSTALL AND RUN AVG ANTIVIRUS IN LINUX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s