Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
    
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
add comment

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.

1 Answer

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
add comment

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