LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-04-2016, 08:37 AM   #1
barad
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Rep: Reputation: Disabled
dhcp of omapi should listen to localhost


Hi,

my linux box is enable with omshell of dhcp by having entry in dhcpd.conf
say,
omapi-port 5601;

And after isc-dhcp-server restart, it started to listen for omapi on 0.0.0.0:5601.

But i want dhcp to listen on 127.0.0.1:5601.

Can anyone please help me out??


Thanks in advance.

Last edited by barad; 07-04-2016 at 08:53 AM.
 
Old 07-08-2016, 03:08 AM   #2
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Does omapi fail? (Does it NOT work?) What does it say?
http://www.howtogeek.com/225487/what....1-and-0.0.0.0
EDIT: ooops, I'm guessing you mean for it to NOT listen on/to INTERNET:
https://kb.isc.org/article/AA-01355/...nnections.html
Maybe the only way is to 'fix' the source code... Idk, sorry...

Last edited by Jjanel; 07-08-2016 at 03:50 AM.
 
Old 07-10-2016, 05:46 AM   #3
barad
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks.

Yeah source code is designed in that way. made it possible by modifying the source code.
 
Old 07-10-2016, 06:01 AM   #4
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
You edited the source? COOL (GREAT)! Might you post the diff/change[?] p.s. feel free to mark this thread 'solved'.
 
Old 10-22-2018, 09:44 AM   #5
Dmitryc
LQ Newbie
 
Registered: Oct 2018
Distribution: Debian, Ubuntu
Posts: 1

Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by Jjanel View Post
You edited the source? COOL (GREAT)! Might you post the diff/change[?] p.s. feel free to mark this thread 'solved'.
For those still interested in modifying the source code - I've implemented such a solution, (can post related diff-files attached, not a standard patch though).
Because of company's decision, this solution hasn't have made its way to production. It looks like we could achieve similar effect with the following iptables rules:
Code:
$ iptables -A INPUT -p tcp --dport 7911 -s 127.0.0.0/8 -j ACCEPT
$ iptables -A INPUT -p tcp --dport 7911 -j REJECT
HTH
 
  


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
Apache2 and SSL listen only on localhost gando Linux - Software 11 05-21-2013 01:53 AM
Linux server doesnt listen on localhost even i have its entry in host.conf 501607386 Linux - Server 7 08-01-2012 03:12 AM
Openldap listen on localhost mgichoga Linux - Server 3 11-17-2009 09:50 PM
persist OMAPI host declarations vortmax Linux - Server 1 06-17-2008 04:05 PM
Can sunrpc be configured to listen only to localhost? Robhogg Linux - Security 3 03-02-2006 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:19 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