Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If I use my linux PC as my firewall, is there a way block say for example Internet Explorer from a Windows PC from accessing the Internet and only allowing say Mozilla. I did ask this question some while ago but didn't get an approriate reply.
If I use my linux PC as my firewall, is there a way block say for example Internet Explorer from a Windows PC from accessing the Internet and only allowing say Mozilla. I did ask this question some while ago but didn't get an approriate reply.
I think you can't. Because iptables works at layer 3 and 4, and there is no application-specific traffic (even http) only ports, addresses.. Also you can't distinguish the traffic that comes from Mozilla or IE, because there are standarts for http. But you can remove IE from the computer simply ;-) Because IE is a browser(-like software) and if it will not be able to connect web site; then we don't need it..
Thanks. Is it not possible to block request headers via iptables? I suppose if it possible how do I go about looking for specific request headers for specific software. I rather not uninstall any software because it can simply be re-installed. That beats the purpose. I rather just block it.
That makes sense now. Do i have to run iptables-save everytime I make a change?
Yes if you make a change and you want to keep it you would have to run iptables-save. Of course you should make a backup of /etc/sysconfig/iptables before you do that just to be safe.
Thanks. Is it not possible to block request headers via iptables? I suppose if it possible how do I go about looking for specific request headers for specific software. I rather not uninstall any software because it can simply be re-installed. That beats the purpose. I rather just block it.
Application specific request headers are only packet payloads in the layers which iptables works. I'm not sure whether it could be but there is a netfilter match extension that make you be able to match a string (extension's name is also String) with the packet data. Look at the link below
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.