LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Firewall on - internet off. (https://www.linuxquestions.org/questions/linux-security-4/firewall-on-internet-off-283773/)

wellington 01-29-2005 03:19 PM

Firewall on - internet off.
 
I tried using the built in firewall in Mandrake 9.2 When I enable it, my internet stops working. How do I find out what ports I need to have open, and how do I open them. I'm fairly new to linux, so please explain carefully. Thanks.

BajaNick 01-29-2005 09:09 PM

I dont know how the mandrake Firewall works but, If your using KDE you might want to download firestarter or Guarddog, they are front ends for iptables and very easy to use and understand. :)

bulliver 01-31-2005 04:50 PM

Quote:

I tried using the built in firewall in Mandrake 9.2 When I enable it, my internet stops working. How do I find out what ports I need to have open, and how do I open them.
I am not familiar with this mandrake firwall either...but I want to explain that you don't want to start opening ports. Iptables (which I am certain this mandrake firewall is a front-end for) is a stateful filter. What this means is that it is able to tell from the packets if it is a response to a packet sent from your own box. This is what you need to enable. The iptables rule would be:
Code:

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
What this rule does is allow any packets that are established or related to a packet/transaction initiated from _your_ box back through the firewall.

If you start opening ports wantonly then you are just opening it up to everyone.

I am afraid I cannot help translate this into mandrake firewall. There must be some sort of docs for it, yeah?


All times are GMT -5. The time now is 11:02 PM.