![]() Iptables -A INPUT -m state -state ESTABLISHED,RELATED -j ACCEPT # Accept packets belonging to established and related connections #Setup ftp for wordpress centos 7 update#Personally I have a shell script in my root folder which I can run to add my iptables rules, I just update it as and when I need new rules adding then run the script, I also have one to open all the ports up to see if there is a firewall issue causing me problems (this is my personal server with nothing business critical on it, I don't recommend you open up all your ports for any length of time if there is anything worth stealing on there).īut if you are able to test, I would recommend you save this locally on the machine (root folder is a good place IMO as root should be the only one who can see the files and then set it's permissions to 700 (chmod 700 filename.sh - I call mine firewall.sh and firewallopen.sh)): #!/bin/bash A OUTPUT -p tcp -m tcp -dport 465 -j ACCEPTĪre there any (obvious) issues with my iptables setup considering the above mentioned issues? Saying that the firewall is doing exactly nothing in this state is also an answer.Īnd again, if you have any other suggestions for me to increase security (considering the basic things I do with this box), I would love hear it, also the obvious ones! A OUTPUT -p tcp -m tcp -dport 8000 -j ACCEPT A OUTPUT -m state -state RELATED,ESTABLISHED -j ACCEPT A FORWARD -j REJECT -reject-with icmp-host-prohibited A INPUT -j REJECT -reject-with icmp-host-prohibited A INPUT -p tcp -m tcp -dport 465 -j ACCEPT A INPUT -p tcp -m tcp -dport 80 -j ACCEPT ![]() A INPUT -p tcp -m tcp -dport 8000 -j ACCEPT A INPUT -m state -state RELATED,ESTABLISHED -j ACCEPT This is my iptables configuration (using vim): # Generated by iptables-save v1.4.7 on Sun Jun 1 13:20:20 2014 After each change I tried implementing I restarted the iptables service. Ssh connections from the terminal are working fine though. I tried opening up the firewall to accept traffic for ports 465 (gmail smtp) and ssh port (lets say this port is 8000), but both the issues remain. I have the feeling that these are both related to the iptables configuration, because I've tried everything else (I think). Smtp (Failed to connect to server: Permission denied (13)) sending emails from my site using the Gmail.installing plugins and updates through ssh2 (failed to connect to.Getting my Wordpress to run as desired, I'm running into some connection problems. I tried to configure the server as default as possible, but I like it to be secure as well (no ftp, custom ssh port). ![]() The websites running on it are nothing special, just some low traffic projects. I recently set up a hosted server with Centos 6 and configured it as a webserver. Let me start off by saying that I'm a Centos newby, so all info, links and suggestions are very welcome! ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |