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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
sir isnt that chmod +x etc/rc.d/rc.firewall can be used?
that would make the file executable by any user, which isn't really kosher... yes, i know the iptables/sysctl (assuming that's all you have in there) commands within the script won't work for non-roots, but still - the file is meant to be executed by root - so that's what you should set... to specify that you only want to set executable permission for root (the user that owns the file) do it like:
I don't know where you got your rc.firewall script,
but the most popular one on the internet will NOT
work with Slackware until you make a modification.
Make sure you have the correct path to iptables
(/usr/sbin/iptables) or it won't run at all.
im rayan and this is my first time to joint to this forum,my question is wich disto is best for blocking open port? thanks and good bless
welcome to LQ...
port blocking is not a distro thing... it's a firewall thing, and all distros come with the same firewall system - netfilter...
please don't jump into ongoing threads to ask your questions unless they are completely related to the thread's original post (this is definitely not a "which distro" thread)... you should open your own thread instead... a good place to open your thread would be here...
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389
Original Poster
Rep:
Quote:
Originally Posted by Chinaman
I don't know where you got your rc.firewall script,
but the most popular one on the internet will NOT
work with Slackware until you make a modification.
Make sure you have the correct path to iptables
(/usr/sbin/iptables) or it won't run at all.
so meaning i have to STILL LINK rc.firewall to iptables before it can function? ?
so meaning i have to STILL LINK rc.firewall to iptables before it can function? ?
no... it means you open your iptables script (rc.firewall) with a text editor and change anything that says "/sbin/iptables" to "/usr/sbin/iptables"... the reason the "/usr" isn't usually put is because most scripts assume the person using them will be runnig a redhat based distro or something like that... for example, if you spot something like this:
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389
Original Poster
Rep:
ok..il be updating you soon.. i have just reinstalled my slack the other day, coz before, rc.firewall is linked to my iptables.. but now, i was told that rc.firewall could just be copied and executed (so i also posted a thread in this forum to verify) il be posting my rc.firewall asap.. thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.