Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
IP tables and firewall
View previous topic :: View next topic  
Author Message
dray007
Junior Member


Joined: 09 Jan 2008
Posts: 1
Location: Oklahoma city, OK

PostPosted: Thu Jan 17, 2008 4:44 am    Post subject: IP tables and firewall Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1752
Location: Greece

PostPosted: Thu Jan 17, 2008 10:07 am    Post subject: Reply with quote

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:

Code:
#!/bin/bash

awk '{ sub("\r$", ""); print }' /etc/rc.d/rc.firewall > /etc/rc.d/rc.firewall.new
mv /etc/rc.d/rc.firewall.new /etc/rc.d/rc.firewall
chown -R root.root /etc/rc.d/rc.firewall
chmod +x /etc/rc.d/rc.firewall


gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional