Joined: 09 Jan 2008 Posts: 1 Location: Oklahoma city, OK
Posted: Thu Jan 17, 2008 4:44 am Post subject: IP tables and firewall
First off I like your distro, it's simple and only has what I need, not too much bloat. I was looking to expand the system once installed to perform as a firewall/router for my home network. I want the system to share files as it already does and act as a local web server, as it also already does. In addition to these I would like it to perform as a dhcp server and masquerade for the local network to share the Internet connection. I can figure out how to generate a file from the Easy Firewall Generator but I'm not sure where to put it on a Slackware system. Also how to implement the script at boot time. Could you direct me to a simple howto, I seen and read so many and all have differences here and there.
Any help would be appreciated.
Thanks
dray
You can save the output of IPTables firewall generator as rc.firewall in
/etc/rc.d/ so you will have /etc/rc.d/rc.firewall script.
make it executable with
Code:
chmod +x /etc/rc.d/rc.firewall
rc.firewall will automatically loaded at startup.
to stop the rc.firewal script do
Code:
/etc/rc.d/rc.firewall stop
To prevent from loading at startup do
Code:
chmod -x /etc/rc.d/rc.firewall
If you have problem saving the output of EFG and get an error upon execution of /etc/rc.d/rc.firewall try this script:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum