LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-21-2009, 04:57 AM   #1
vazirkhan
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
How to Stop a service on one particular interface


We have a single linux box will be shared as a server for multiple testbeds. We had decided to achieve this by assigning different interfaces for each testbed.



Now, we have a few scripts which requires to stop the services (like HTTP, DNS etc) running in the server. But this would affect the test running in other testbed (since they are using the same server).



I am looking for a way by which the service has to be running, at the same time it should not respond to traffic coming from one particular interface (i.e when the script runs in testbed A, it should look as if the service is not running, but in reality the service should be running and giving responses to other testbeds B,C,D etc)


The one option that we thought was using an IPTables and dropping the response from the service in the interface which is assigned to the testbed, but this would mean that we may need to build a RST packet ourself and send back to the requestor. We are not aware of that.



Please let me know if there is some other way by which this can be done.

Thanks
Vazir
 
Old 01-22-2009, 01:11 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
hmm...doesnt ifdown ethx help?
Just bring down the interface.
 
  


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
How to stop Iptables service? Infernal211283 Slackware 5 08-02-2006 11:35 PM
How do i cleanly stop a service? n0vembr Linux - General 18 07-29-2005 04:11 AM
service won't stop in RH9 hairydan Red Hat 6 04-09-2004 01:05 PM
service named can't stop... TAAN Linux - Networking 1 09-11-2003 03:43 AM
Mandrake - how to stop a service? taz76 Linux - Security 1 03-13-2003 06:31 AM

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

All times are GMT -5. The time now is 11:25 AM.

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