LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Suse Studio Firewall (https://www.linuxquestions.org/questions/linux-security-4/suse-studio-firewall-898649/)

Tactful 08-21-2011 01:41 PM

Suse Studio Firewall
 
Hi, I need help with my firewall settings, and I prospected using the script option.
_______________________________________________________________________________________________
#!/bin/bash
#
# This script is executed whenever your appliance boots. Here you can add
# commands to be executed before the system enters the first runlevel. This
# could include loading kernel modules, starting daemons that aren't managed
# by init files, asking questions at the console, etc.
#
# The 'kiwi_type' variable will contain the format of the appliance (oem =
# disk image, vmx = VMware, iso = CD/DVD, xen = Xen).
#

# read in some variables
. /studio/profile

if [ -f /etc/init.d/suse_studio_firstboot ]
then

echo "Running SUSE Studio first boot script..."
iptables -I INPUT -p tcp --dport 113 -j DROP
iptables -I INPUT -p icmp -j DROP
fi
_______________________________________________________________________________________________
As you can see I need to use the terminal commands of "iptables -I INPUT -p tcp --dport 113 -j DROP" and "iptables -I INPUT -p icmp -j DROP." Is there anything wrong with my script or should I even be using script in the first place?

unSpawn 08-23-2011 11:09 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi...8/#post4449428.


All times are GMT -5. The time now is 07:36 PM.