Results 1 to 2 of 2
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
...
- 08-21-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 8
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?
- 08-24-2011 #2Just Joined!
- Join Date
- Aug 2011
- Posts
- 8
Thanks anyways people, I got it solved.


Reply With Quote