Liunx service usage (xinetd service proxy service, telnet service ,)

Source: Internet
Author: User
Tags ftp file

Xinetd service

Tftp service

Tftp-0.49-2.i386.rpm Client

Tftp-server-0.49-2.i386.rpm Server

Configuration file directory/etc/xinetd. d/tftp


Service tftp

{

Socket_type = dgram ----------------------- socket type (udp) stream (tcp)

Protocol = udp

Wait = no

User = root

Server =/usr/sbin/in. tftpd ------------- start the program

Server_args =-s-c/tftpboot ---------------- pass the parameter-c to the process to allow Creation

Disable = no-------------------------- whether to enable the Service. yes, it is disabled.

Per_source = 11 ----------------------- Number of connections to each ip Address

Cps = 100 2 --------------------------- stop for 2 seconds when the connection reaches 100

Flags = IPv4

}


Chmod 777/tftpboot

Service xinetd restart


View udp ports

Netstat-anplu | grep: 69


Add-c to upload

Tftp 192.168.1.113

Put



The downloaded directory will be downloaded from tftpboot)

Tftp 192.168.1.113

Get


Bytes ------------------------------------------------------------------------------------------


Telnet Service


Telnet-0.17-39.el5.i386.rpm Client

Telnet-server-0.17-39.el5.i386.rpm Server

Port: 23


Configuration file/etc/xinetd. d/telnet


Isable = no open the service


Check whether the port is enabled

Netstat-anplt | grep: 23




--------------------------------

Use xinetd service proxy ftp


Service vsftp stop: stop vsftp first


Cd/etc/xinetd. d/

Cp tftp

Vim ftp file editing


Service ftp this service corresponds to the vim/etc/services service, so you must write the ftp


{

Socket_type = stream

Wait = no

User = root

Server =/usr/sbin/vsftpd-this corresponds to the usr/sbin/vsftpd program.

Disable = no

}


Netstat-anplt | grep: 21 view vsftp Port



-----------------------------

This article is from the "history_xcy" blog, please be sure to keep this http://historys.blog.51cto.com/7903899/1296693

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.