Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to know if it's possible to block inbound traffic to a host but be able to send data only using 'route' command

Thanks :)

share|improve this question

closed as unclear what you're asking by Michael Hampton Jul 9 '13 at 8:27

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Your question is confusing. Where do you want to type that command? In a firewall? In a router? In the target host itself? Anyways, it may be possible if you explain better, but it won't be correct. When you think about filtering, the immediate answer is iptables. – Juliano Oct 2 '09 at 23:53

i'll take a guess here and say you cannot do it. routing is pretty much stateless - assuming that you have one ip address assigned to linux box you can indeed block bidirectional communication with given host by setting static route just for it pointing to... neverland. but such approach will block both communication initiated by your host or by foreign host.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.