Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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?

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Posts
    8
    Thanks anyways people, I got it solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •