you're very welcome!! let me know if any issues come-up... good luck!!
|
hmm.. kinda an issue, not that big of one I guess....
but pre this, I had apache set up, as well as proftpd and they worked fine... now they aren't working.. is it related, or did I change something without realizing it ? ssh also isn't working...... which is more of an issue than anything... I planned on using that mostly when I needed to do anything with the machine. |
you mean, like, to access those services on your box from the internet??
|
well, yeah, or the local network.. from the windows machine..
and when I try to connect with ssh, it just times out. same with http |
Quote:
Quote:
here you go (the relevant rules are in bold): here you go: Code:
#!/bin/sh |
ok, so if I need a port opened for whatever reason, it's just like those added lines, only change the port number?
|
yeah, basically... but it wouldn't be a bad idea to do some reading about iptables/netfilter so you can have a better understanding of what the script is doing:
http://www.linuxguruz.com/iptables/howto/ http://www.linuxguruz.com/iptables/ http://www.justlinux.com/nhf/Securit...es_Basics.html http://iptables-tutorial.frozentux.n...-tutorial.html for more iptables info: http://www.google.com/linux?hl=en&lr...es&btnG=Search ;-) |
BTW, that script is logging every packet that gets blocked by the firewall... you can see what packets are getting blocked in "real-time" by doing a:
Code:
tail -f /var/log/syslog this is good for troubleshooting and stuff... like, for example when you weren't able to SSH to the box - by monitoring the log file you would have noticed the port 22 packets getting blocked... so you would have known it was a firewall issue right away... it's also good for seeing all the weird spiders that crawl all over the internet... hehe... |
All times are GMT -5. The time now is 11:27 PM. |