LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-01-2009, 09:13 PM   #1
yzhong
Member
 
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 = 127.0.0.1
redirect = 192.168.0.244 21 23
}
...
when I telnet to the above server, it doesn't forward to 192.168.0.244, 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 192.168.0.242.43589 > 192.168.0.248.telnet: S 3214467077:3214467077(0) win 5840 <mss 1460,sackOK,timestamp 2673855246 0,nop,wscale 7>
14:27:41.372006 IP 192.168.0.248.telnet > 192.168.0.242.43589: R 0:0(0) ack 3214467078 win 0
...
Anything I miss on the configuration? Thx in advance.
 
Old 02-02-2009, 07:25 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Is that a typo? You have 2 port numbers listed after the IP address on the redirect line:
Code:
redirect = 192.168.0.244 21 23
Shouldn't it just be this?
Code:
redirect = 192.168.0.244 23
 
Old 02-03-2009, 03:29 PM   #3
yzhong
Member
 
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
 
  


Reply


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 05:21 PM
can't get vsftpd to work properly alfredofernandeza Linux - Server 2 12-12-2006 11:27 PM
sshd doesnt work with tcp wrapper(xinetd)... seagley Linux - Security 4 12-24-2005 09:05 PM
wierd scanner on slack that I got to work on mdk with xinetd Quercus ruber Slackware 2 02-16-2005 08:09 AM
SENDMAIL - Why does it not work when i shutdown xinetd adamrau Linux - Software 2 10-22-2001 10:36 AM


All times are GMT -5. The time now is 02:54 PM.

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