LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2017, 02:53 PM   #1
gglq000
Member
 
Registered: Mar 2012
Posts: 65

Rep: Reputation: Disabled
specifying interface to list for xinetd


I have xinetd and dhcpd working together for PXE network boot. Now I needed to add one more interface as our env changed to include another subnet. I re-config dhcpd.conf to include extra subnet on which PXE service works. However first one stopped working. When logging through wireshark, I can see dhcpd is still giving IP address normally however there is no tftp transaction taking place at all during net pxe boot.

It appears, xinetd is servicing the second i-face but not first. How do I explicitly tell xinetd to listen on particular i-face (two or more) when more than one interface is present?

I am using CENTOS 6.x
 
Old 08-22-2017, 10:11 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by gglq000 View Post
It appears, xinetd is servicing the second i-face but not first. How do I explicitly tell xinetd to listen on particular i-face (two or more) when more than one interface is present?
You RTFM

Quote:
bind

Allows a service to be bound to a specific interface on the machine. This means you can have a telnet server listening on a local, secured interface, and not on the external interface. Or one port on one interface can do something, while the same port on a different interface can do something completely different. Syntax: bind = (ip address of interface).

interface

Synonym for bind.
 
1 members found this post helpful.
Old 08-22-2017, 12:35 PM   #3
gglq000
Member
 
Registered: Mar 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
You RTFM
i dont see a single useful stuff or single stuff that i can understand from this reply. Can anyone else do it?
 
Old 08-22-2017, 12:40 PM   #4
gglq000
Member
 
Registered: Mar 2012
Posts: 65

Original Poster
Rep: Reputation: Disabled
yOU MEAN RTFM means read the [removed] manual? That is because based on my experience linux network modules and most packages are [removed] piece of [removed] and in general distro-s are all filled with piece of craps and does not work as documented so I dont bother mostly reading 'em to save my precious time.
 
Old 08-22-2017, 01:49 PM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by gglq000 View Post
i dont see a single useful stuff or single stuff that i can understand from this reply. Can anyone else do it?
lol, I even gave you the relevant section of the manual. So let's see if we can make this really simple.

By default services defined in the /etc/xinetd.d folder will listen on all interfaces.

If there is a "bind" directive in the service config file in the /etc/xinetd.d folder then that service will only listen on the address specified after the = sign in the bind directive.

Using the command:
Code:
netstat -lnp | grep xinet
will show which addresses / ports xinetd is listening on.

For example, this shows xinetd listening on port 2222 on all the interfaces on this server (which has two NICs, one external and one internal that has two IPs assigned to it).

Code:
# netstat -lnp | grep xinet
tcp        0      0 :::2222                     :::*                        LISTEN      30888/xinetd
If I place a bind = 10.10.101.101 directive in the config file for the service in the /etc/xinet.d folder and restarting xinetd I can bind the service to one of the two private IPs:

Code:
# netstat -lnp | grep xinet
tcp        0      0 10.10.101.101:2222          0.0.0.0:*                   LISTEN      31664/xinetd
If I make a copy of the config file in /etc/xinet.d and give it a different bind directive, such as bind = 10.10.101.1 I can restart xinetd and bind the service to the additional private IP address.

Code:
# netstat -lnp | grep xinet
tcp        0      0 10.10.101.101:2222          0.0.0.0:*                   LISTEN      31958/xinetd
tcp        0      0 10.10.101.1:2222            0.0.0.0:*                   LISTEN      31958/xinetd
 
1 members found this post helpful.
Old 08-22-2017, 01:53 PM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by gglq000 View Post
[...]so I dont bother mostly reading 'em to save my precious time.
Strangely enough, I put my precious time in to reading, checking and learning, I guess that's why I'm getting paid 6 figures to administer linux servers and now have spare time to spend on forums attempting to help people that CBA reading.
 
1 members found this post helpful.
Old 08-23-2017, 05:18 PM   #7
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
gglq000, Language like that isn't acceptable here at LQ.

--jeremy
 
  


Reply



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
Good web interface to mailing list? littlebigman Linux - Software 6 06-22-2015 01:48 PM
network card interface list vkmgeek Programming 1 09-18-2007 06:18 AM
GUI Interface for xinetd - Fedora 4 - KDE LinuxLoverDurga Fedora 1 10-23-2005 07:37 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM
interface list? (pcap or libnet) Hammo Linux - Networking 3 01-05-2004 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:26 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
Open Source Consulting | Domain Registration