You are not logged in.

#1 2005-02-23 03:33:20

game99
Member
From: MN
Registered: 2005-02-19
Posts: 24

iptables

Hello,
Can some one please show me how to delete/stop iptables from running.  I don't need it anymore  and maybe that is the reason I can't get webdav to work .
thanks


Seto--

Offline

#2 2005-02-23 03:41:53

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: iptables

if you can access the web site on that server, then it is not intefering. webdav uses http port 80. it was designed to be compatible with firewalls in the same way as a regular webserver is.
I would further counsel you that not having firewall protection on a server (assuming it is properly configured) is a bad idea.

That being said, you can disable iptables by removing iptables from the daemons list in /etc/rc.conf
and issuing an

/etc/rc.d/iptables stop

"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-02-23 04:08:41

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: iptables

After fooling around for about 20 minutes stabbing at the dark, I got webdav to work on a test machine just fine.
If the above doesn't fix your issue, let me know, and I will throw together a quick wiki on how to do it.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2005-02-23 04:37:22

game99
Member
From: MN
Registered: 2005-02-19
Posts: 24

Re: iptables

I will be greatfull to have a the wiki on webdav. Thank you Cactus... smile


Seto--

Offline

#5 2005-02-23 05:04:44

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: iptables

http://wiki2.archlinux.org/index.php/Si … av%20Setup

be warned, I took no time to implement reasonable permissions on the dav dir. That should be done with httpd Auth directives inside the directory directive specific to webdav.
Something along the lines of

AuthGroupFile /dev/null
AuthType Digest
AuthName "WebDav Dir"
AuthDigestFile /home/httpd/.htdigestA
require valid-user
<Limit GET POST>
require user cactus
</Limit>

Not sure which LIMIT methods need to be limited, a little research on your part would likely go a long way on that one, as well as digest based AuthType for apache..
but, the wiki is a good start for just getting dav up and running.

I had to make a package build for cadaver. I have used it in the past on my test machine, and even used it to work with my iMac account when I was playing with my powerbook's free iMac trial.
there is an interesting how to out there for settting up your own .mac account on your server, and fooling your Mac into using it instead of .mac. It is basically just a webdav setup with a little dns tom-foolery ala a hosts file.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2005-02-23 18:53:28

game99
Member
From: MN
Registered: 2005-02-19
Posts: 24

Re: iptables

Do I have to creat the  this file?
AuthDigestFile /home/httpd/.htdigestA


Seto--

Offline

#7 2005-02-23 20:12:21

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: iptables

if you are wanting to use httpd authentication, yes.
you create it with the following..

htdigest -c /home/httpd/.htdigestA WebDav username

then to add more users..

htdigest /home/httpd/.htdigestA WebDav username2

the -c means create the file, so if you use it subsequently, it overwrites everything..heh.
http://httpd.apache.org/docs-2.0/programs/htdigest.html
http://httpd.apache.org/docs/howto/auth.html


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB