Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-01-2009, 10:13 PM   #1
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Rep: Reputation: 16
xinetd doesn't work properly

want to set up xinetd to forwarding some message, but has some problem..
on xinetd.conf
service telnet
socket_type = stream
wait = no
server = /usr/sbin/in.telnetd
log_on_success += DURATION USERID
log_on_failure += USERID
bind =
redirect = 21 23
when I telnet to the above server, it doesn't forward to, only stay on itself.I can use tcpdump to see the package
[root@wikisvr ~]# tcpdump port 23
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
14:27:41.248238 IP > S 3214467077:3214467077(0) win 5840 <mss 1460,sackOK,timestamp 2673855246 0,nop,wscale 7>
14:27:41.372006 IP > R 0:0(0) ack 3214467078 win 0
Anything I miss on the configuration? Thx in advance.
Old 02-02-2009, 08:25 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 165Reputation: 165
Is that a typo? You have 2 port numbers listed after the IP address on the redirect line:
redirect = 21 23
Shouldn't it just be this?
redirect = 23
Old 02-03-2009, 04:29 PM   #3
Registered: Jun 2007
Location: sydney
Distribution: redhat , ubuntu, centos
Posts: 56

Original Poster
Rep: Reputation: 16
Problem solved, just don't have time to update here.
1.It can have more than one port number after the ip address.
2.Problem is I forgot to set net.ipv4.ip_forward to 1 (default is 0).
3.For saving time, I changed to use iptables -t nat -A prerouting... to do the forwarding

thx all the help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login don't work properly a_minor Linux - Desktop 3 01-04-2009 06:21 PM
can't get vsftpd to work properly alfredofernandeza Linux - Server 2 12-13-2006 12:27 AM
sshd doesnt work with tcp wrapper(xinetd)... seagley Linux - Security 4 12-24-2005 10:05 PM
wierd scanner on slack that I got to work on mdk with xinetd Quercus ruber Slackware 2 02-16-2005 09:09 AM
SENDMAIL - Why does it not work when i shutdown xinetd adamrau Linux - Software 2 10-22-2001 11:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration