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.
I have to secure our companies webserver with iptables so I searched for HowTos but I only found some which described how to set up a router or something like that ...
so now I played a bit around with that stuff and managed to set up some basic rules ... ports for web/secure-web, ftp/ftp-data, smtp, pop3 and IRC-proxy ( o_O ) are open to the public and mysql and ldap are only open for localhost ...
so far so good but now, if I connect via ftp it is much slower than if every port is open ... and with pop3 it is the same thing ( sometimes it 'hangs' for more than 3 minutes ... )
I think that he tries to connect to some other ports after he connected to the 'main' port is that right ?
so i tried out with a
iptables -A INPUT -m tcp -p tcp --tcp-flags ALL SYN,ACK -j ACCEPT
but there was no change ...
even with a --state ESTABLISHED,RELATED
not ...
( hmm ... well ... i'm a nubie ^^ )
has someone a good howto for webserver iptables security ? or maybe a good script ?
If you have problems with iptables, include a general rule that will log traffic so you can see what get's denied so you can try to solve it, and/or post your script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.