Re: What is the best way to turn off the iptables

2012-07-06 Thread lina
On Fri, Jul 6, 2012 at 10:15 PM, Panayiotis Karabassis wrote: > Sorry for replying directly but I think you may want to read this. No need sorry, very nice to have replies. > > You have: > Chain INPUT (policy DROP) > > This should be ACCEPT instead of DROP. Try: > > iptables -P INPUT ACCEPT > >

Re: What is the best way to turn off the iptables

2012-07-06 Thread Panayiotis Karabassis
lina wrote: > On Thu, Jul 5, 2012 at 10:50 PM, Darac Marjal > wrote: >> On Thu, Jul 05, 2012 at 10:28:43PM +0800, lina wrote: >>> Hi, >>> >>> What is the best way to turn off the iptables? >> # iptables --flush > I tried before. > > # ip

Re: What is the best way to turn off the iptables

2012-07-06 Thread Budnev Vladimir
07/05/12 19:02, lina пишет: On Thu, Jul 5, 2012 at 10:50 PM, Darac Marjal wrote: On Thu, Jul 05, 2012 at 10:28:43PM +0800, lina wrote: Hi, What is the best way to turn off the iptables? # iptables --flush I tried before. # iptables -F # iptables -L Chain INPUT (policy DROP) target

Re: What is the best way to turn off the iptables

2012-07-06 Thread lina
> > Maybe nobody is listening to that ports? > > What does > > netstat -plunt > > returns you? # nc -l -p 5000 # netstat -plunt Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:22

Re: What is the best way to turn off the iptables

2012-07-06 Thread bruno.deb...@cyberoso.com
Le Fri, 6 Jul 2012 15:31:22 +0800, lina a écrit : > On Fri, Jul 6, 2012 at 4:01 AM, Joe wrote: > > On Thu, 5 Jul 2012 22:28:43 +0800 > > lina wrote: > > > >> Hi, > >> > >> What is the best way to turn off the iptables? > >> > &

Re: What is the best way to turn off the iptables

2012-07-06 Thread lina
On Fri, Jul 6, 2012 at 4:01 AM, Joe wrote: > On Thu, 5 Jul 2012 22:28:43 +0800 > lina wrote: > >> Hi, >> >> What is the best way to turn off the iptables? >> >> or come back to its default settings. Flush my current one. >> > > This

Re: What is the best way to turn off the iptables

2012-07-05 Thread lina
On Fri, Jul 6, 2012 at 12:33 AM, Brian wrote: > On Thu 05 Jul 2012 at 22:28:43 +0800, lina wrote: > >> Hi, >> >> What is the best way to turn off the iptables? >> >> or come back to its default settings. Flush my current one. > > Depends on what rules y

Re: What is the best way to turn off the iptables

2012-07-05 Thread lina
> > You could always flush/remove all the rules. But my suggestion is to > understand why it is blocking you. > You could do that by > iptables -L -vn > this prints the packets stats against each rule. > Another handy tool is netcat. Combining both of these you could easily > debug iptables scena

Re: What is the best way to turn off the iptables

2012-07-05 Thread Joe
On Thu, 5 Jul 2012 22:28:43 +0800 lina wrote: > Hi, > > What is the best way to turn off the iptables? > > or come back to its default settings. Flush my current one. > This is the script I use: #!/bin/sh #/etc/iptables/iptables.flush iptables -t filter -F iptables -t fil

Re: What is the best way to turn off the iptables

2012-07-05 Thread Anand Sivaram
On Thu, Jul 5, 2012 at 10:06 PM, Brian wrote: > On Thu 05 Jul 2012 at 23:02:19 +0800, lina wrote: > > > Chain INPUT (policy DROP) > > target prot opt source destination > > > > Chain FORWARD (policy DROP) > > target prot opt source destination > > > > Chain OUT

Re: What is the best way to turn off the iptables

2012-07-05 Thread Brian
On Thu 05 Jul 2012 at 23:02:19 +0800, lina wrote: > Chain INPUT (policy DROP) > target prot opt source destination > > Chain FORWARD (policy DROP) > target prot opt source destination > > Chain OUTPUT (policy ACCEPT) > target prot opt source

Re: What is the best way to turn off the iptables

2012-07-05 Thread Brian
On Thu 05 Jul 2012 at 22:28:43 +0800, lina wrote: > Hi, > > What is the best way to turn off the iptables? > > or come back to its default settings. Flush my current one. Depends on what rules you have set up. iptables -F and iptables -X should do it for you. > 4]

Re: What is the best way to turn off the iptables

2012-07-05 Thread lina
On Thu, Jul 5, 2012 at 11:02 PM, Mika Suomalainen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > On 05.07.2012 17:28, lina wrote: >> Hi, >> >> What is the best way to turn off the iptables? > > I think that iptables cannot be tu

Re: What is the best way to turn off the iptables

2012-07-05 Thread Mika Suomalainen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On 05.07.2012 17:28, lina wrote: > Hi, > > What is the best way to turn off the iptables? I think that iptables cannot be turned off. > or come back to its default settings. Flush my current one. iptables --flush removes all

Re: What is the best way to turn off the iptables

2012-07-05 Thread lina
On Thu, Jul 5, 2012 at 10:50 PM, Darac Marjal wrote: > On Thu, Jul 05, 2012 at 10:28:43PM +0800, lina wrote: >> Hi, >> >> What is the best way to turn off the iptables? > > # iptables --flush I tried before. # iptables -F # iptables -L Chain INPUT (policy DROP)

Re: What is the best way to turn off the iptables

2012-07-05 Thread Darac Marjal
On Thu, Jul 05, 2012 at 10:28:43PM +0800, lina wrote: > Hi, > > What is the best way to turn off the iptables? # iptables --flush will clear out all your iptables rules. > > or come back to its default settings. Flush my current one. > > Since I tried to configure

What is the best way to turn off the iptables

2012-07-05 Thread lina
Hi, What is the best way to turn off the iptables? or come back to its default settings. Flush my current one. Since I tried to configure the iptables, I have encountered the following problems: 1] I can't access the cups and some other ports I opened in localhost. I comment the line 5