PDA

View Full Version : [ubuntu] How to set up Shorewall in Ubuntu Server 9.10



TomDaBomb2u
May 5th, 2010, 12:55 AM
Hello all:

I'm about at about an intermediate level with Ubuntu, but completely new to servers. I followed this tutorial (http://net.tutsplus.com/tutorials/php/how-to-setup-a-dedicated-web-server-for-free/) to set up Ubuntu Server 9.10 on my Lenovo R61i. All went well up until the installation of the firewall.

I can't seem to install Shorewall. I typed


sudo aptitude install shorewall

and it seems to have installed fine, but when I try to backup the configuration file:


sudo cp /usr/share/doc/shorewall-common/examples/one-interface/* /etc/shorewall/ I get
cp: cannot stat `/usr/share/doc/shorewall-common/examples/one-interface/*': No such file or directory

I can't find any evidence that Shorewall is even installed. What am I missing?? I googled the problem, and haven't seen anyone else with this issue.

Please help! Let me know if any more info is required.

Thanks!
Thomas

bab1
May 5th, 2010, 01:12 AM
...

I can't seem to install Shorewall. I typed


sudo aptitude install shorewall

and it seems to have installed fine, but when I try to backup the configuration file:


sudo cp /usr/share/doc/shorewall-common/examples/one-interface/* /etc/shorewall/ I get
cp: cannot stat `/usr/share/doc/shorewall-common/examples/one-interface/*': No such file or directory

I can't find any evidence that Shorewall is even installed. What am I missing?? I googled the problem, and haven't seen anyone else with this issue.

Please help! Let me know if any more info is required.

Thanks!
Thomas

So what have you done to try and locate the shorewall files? Have you tried
sudo locate shorewall

TomDaBomb2u
May 5th, 2010, 01:19 AM
So what have you done to try and locate the shorewall files? Have you tried
sudo locate shorewall

Thanks for the quick reply. Yes, I tried that, but got nothing.

Thomas

bab1
May 5th, 2010, 01:21 AM
Thanks for the quick reply. Yes, I tried that, but got nothing.

Thomas

Did you update the locate database since you just did the install?

Did you check Shorwall's site for updated information?

Did you check
man shorewall

TomDaBomb2u
May 5th, 2010, 01:36 AM
Neither. Will do when I get back home. I'll post results. Thanks!

TomDaBomb2u
May 5th, 2010, 03:28 AM
Well, that was kinda embarrassing lol. . . I looked on the website (but not very well at first) and completely missed the package repo. I added it and installed.
sudo locate shorewall still doesn't do anything but I'm looking at the manual now.

Thanks! I still may have questions though lol.

redmk2
May 5th, 2010, 03:34 AM
Well, that was kinda embarrassing lol. . . I looked on the website (but not very well at first) and completely missed the package repo. I added it and installed.
sudo locate shorewall still doesn't do anything but I'm looking at the manual now.

Thanks! I still may have questions though lol.
You have to populate the database.

Try this
sudo updatedb

See here (http://ubuntuforums.org/showthread.php?t=912965).

Edit: For a complete config of locate see section 8 of this manual (http://www.nsrc.org/helpdesk/ubuntu/post-install-exercises.pdf).

ne0h184
October 6th, 2012, 05:31 PM
Hey, this might be completely off, but if your installation came up successful try looking in /usr/share/doc/shorewall/... (instead of shoreall-common). That's were I found my examples. -Frank

overdrank
October 6th, 2012, 05:35 PM
http://img147.imageshack.us/img147/5451/necromancing.jpg
From the Ubuntu Forums Code of Conduct (http://ubuntuforums.org/index.php?page=policy).

If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.
Thread closed.