Results 1 to 6 of 6

Thread: Shorewall setup help...

  1. #1
    Join Date
    Dec 2009
    Beans
    5

    Shorewall setup help...

    Hey, so i just installed shorewall (on ubuntu server v8.10 32-bit) using this command:
    Code:
    sudo aptitude install shorewall
    Now, i want to block everything other than port 80 (HTTP) and port 22 (SSH). i read that ima supposed to copy the configuration files using this command---
    Code:
    sudo cp /usr/share/doc/shorewall-common/examples/one-interface/* /etc/shorewall/

    (is this even a necessary step?) but, when i do, i get an error saying that it doesn't exist...


    anyway, even if i try to open the rules file to edit them using this code:
    Code:
    sudo nano /etc/shorewall/rules

    it opens the file with nothing in it...


    thanks ahead of time

  2. #2
    Join Date
    Oct 2007
    Location
    Auckland, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Shorewall setup help...

    Quote Originally Posted by Hobbes20xx View Post
    Hey, so i just installed shorewall (on ubuntu server v8.10 32-bit) using this command:
    Code:
    sudo aptitude install shorewall
    Now, i want to block everything other than port 80 (HTTP) and port 22 (SSH). i read that ima supposed to copy the configuration files using this command---
    Code:
    sudo cp /usr/share/doc/shorewall-common/examples/one-interface/* /etc/shorewall/

    (is this even a necessary step?) but, when i do, i get an error saying that it doesn't exist...


    anyway, even if i try to open the rules file to edit them using this code:
    Code:
    sudo nano /etc/shorewall/rules

    it opens the file with nothing in it...


    thanks ahead of time
    Try running
    Code:
    ls /etc/shorewall/
    and see if the file is actually there. If it isn't, try running
    Code:
    ls /usr/share/doc/shorewall-common/examples/one-interface/
    to see which files should have been copied.
    First they ignore you, then they laugh at you, then they fight you, then you win ~ Mahatma Gandhi

  3. #3
    Join Date
    Dec 2009
    Beans
    5

    Re: Shorewall setup help...

    Alright, so i ran the
    Code:
    ls /etc/shorewall/
    and came up with "no such file or directory"
    so, moving on to
    Code:
    ls /usr/share/doc/shorewall-common/examples/one-interface/
    same deal, "no such file or directory"

  4. #4
    Join Date
    Oct 2007
    Location
    Auckland, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Shorewall setup help...

    Quote Originally Posted by Hobbes20xx View Post
    Alright, so i ran the
    Code:
    ls /etc/shorewall/
    and came up with "no such file or directory"
    so, moving on to
    Code:
    ls /usr/share/doc/shorewall-common/examples/one-interface/
    same deal, "no such file or directory"
    Hmm, in that case either the application is not installed, or you have installed a version that is different from the version the instructions were written for.
    First they ignore you, then they laugh at you, then they fight you, then you win ~ Mahatma Gandhi

  5. #5
    Join Date
    Jul 2010
    Beans
    2

    Re: Shorewall setup help...

    Quote Originally Posted by Hobbes20xx View Post
    Alright, so i ran the
    Code:
    ls /etc/shorewall/
    and came up with "no such file or directory"
    so, moving on to
    Code:
    ls /usr/share/doc/shorewall-common/examples/one-interface/
    same deal, "no such file or directory"
    Try:

    Code:
    sudo cp /usr/share/doc/shorewall/default-config/* /etc/shorewall/

  6. #6
    Join Date
    May 2012
    Beans
    1

    Re: Shorewall setup help...

    same problem as OP - Andreauk's solution worked! thanks!

Bookmarks

Posting Permissions

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