Ubuntu Servers :: Shorewall Taking An Age To Restart?

May 11, 2010

Any time I try and restart the Shorewall it takes forever. Sometimes I have to reboot the File Server as its faster.In the shorewall-init.log it seems to stick on the loading modules and goes no further. Anyone come accross this before.I have Ubunut 8.04LTS - everything seemed to be working OK until I installed NFS, NIS, AUTOFS - but I can't be 100% sure.

View 1 Replies


ADVERTISEMENT

Ubuntu Networking :: Use Shorewall On My Servers - Unable To Get Tos?

Apr 5, 2010

I always use Shorewall on my Ubuntu Servers and it works great, one things I have never been able to get right is the TOS.Let say for example I would like:

HTTP traffic (80, but all traffic get routed to 3128 [Squid]) to get highest priority
SMTP (25) second highest
POP (110) third highest
The rest forth

How would I get that right?

View 1 Replies View Related

Ubuntu Servers :: Install Shorewall As A Firewall - Package Not Found Error

Jun 10, 2011

I installed ubuntu server and got it set up, and im trying to install shorewall as a firewall, but whenever i do sudo apt-get install shorewall i get a package not found error.

View 5 Replies View Related

Ubuntu Servers :: Single User Mode Not Taking Password?

May 2, 2010

I want to fix my disks with fsck but using sudo init 1 is not allowing me in. It shuts my services down, then gives a "Give root password for maintenance" prompt. I've tried my password, but it rejects it.

View 3 Replies View Related

Ubuntu Servers :: Apache Taking Too Long To Respond On Localhost

Jul 5, 2011

I am following this howto to install Apache, MySQL, and PHP5:

[URL]

I have just installed Apache and I am pointing my browser to:

http://192.168.0.100

but I am getting the error message that the server is taking too long to respond.

View 1 Replies View Related

Ubuntu Servers :: Emails Taking Unusually Long To Deliver (1-5min)

Apr 12, 2010

I'm running Ubuntu 9.10 on a VPS with linode.I run around 10 sites from this vps and whenever I try to do anything thats related at all to email (such as user registration, contact form submission) the process itself can take anywhere from one to five minutes. I realize that this is most likely due to a misconfiguration with how my email has been set up.

View 3 Replies View Related

Ubuntu Servers :: Deleted Log Files Taking Up Huge Disk Space?

Sep 7, 2010

My /var/ partition continues to fill up on all my servers, and it is because the logs in /var/log/apache2 or /var/log/mysql are being deleted during log rotate, but their file handles are being held open. Thus, a "du -sh /var/log" shows the correct values, but "df | grep /var" shows something much different.

It seems that the log files rotate, however if I run "lsof | grep deleted" it returns lots of files that are no longer visible in the directory, however refuse to clear themselves off the disk.

The only way I have found to make these log files go away (and thus clear up the disk space on the partition I should have) is to restart either apache or mysql, depending on which process has huge sized log files being held open.

Is it just me, or is this a big flaw in the way linux works, that it can't figure out how to release file handle for a log so the disk space can be reclaimed? This is happening to me a lot lately.

Here is some output from one of my web servers so you can see what I am seeing...

root@web49:~# df -h | grep /var$
Filesystem Size Used Avail Use% Mounted on
/dev/sda8 9.2G 6.1G 2.7G 70% /var
root@web49:~# du -sh /var

[Code]....

View 9 Replies View Related

Ubuntu Servers :: 10.10 - Samba Restart (File Not There)

Oct 13, 2010

I recently installed Server 10.10 64-bit. After installation, I set up my config file (/etc/samba/smb.conf), and tried to restart Samba:
Code:
/etc/init.d/samba restart
There was nothing to restart though - the file /etc/init.d/samba wasn't there!
Purged the package and re-installed. Tried reformatting and adding Samba as a pre-installed package. Trying to find the server guide for 10.10, but no dice. Did something change for Samba in 10.10?

View 1 Replies View Related

Ubuntu Servers :: Ssh Restart Gives Error In Auth.log

Oct 29, 2010

When ever I restart ssh

Quote:

/etc/init.d/ssh restart

I see following line in auth.log

Quote:

sshd[5678]: error: Bind to port 22 on :: failed: Address already in use.

That is a headless server. What does the above line signify or tell and why am I seeing that? Ubuntu 10.04 64 bit server edition

View 9 Replies View Related

Ubuntu Servers :: 7.10 Sysklogd Hangs On Restart?

Nov 29, 2010

This was working perfect and all of a sudden stops. Now when I try and start this service it simply hangs. I have searched and found a ton of reasons why this could be. No fix yet as worked.

View 8 Replies View Related

Ubuntu Servers :: SSH Stopped Working - Cannot Restart

May 26, 2011

I am running a headless home file server with ssh, samba, webmin and webgui for Transmission. It was all working fine on my lan until I tried to set ssh to listen on a different port (I read it was safer to do so if you wanted access from the internet). Now I cannot ssh into my server and as far I can tell using webmin the ssh process is no longer running and I cannot restart it. I have restored my unmodified sshd_config file. After restoring my original config file and rebooting I am back and working.

View 2 Replies View Related

Ubuntu Servers :: LVM - RAID Device Not Present On Restart

Jan 29, 2011

I've decided to toy around with LVM and mdadm this weekend. I can get everything working, and all is well, until I restart. After that, I no longer have any /dev/md0 device, which during the auto mount process, causes an error. I've looked through several HOWTOs, as well as the LVM/mdadm man pages, and I believe I've tracked it down to mdadm's "assemble" that is needed (so that LVM can see the md0 device).

Not exactly sure how to go about having this occur during the boot process to ensure that the LVM mapped drive is available for when fstab is read. In case it helps this is a base install of 10.10 server 64. I have four drives, the first is used for the OS and is not in the RAID array (nor LVM). The second and third are RAID1 (/dev/md0) and there is a volume group associated with /dev/md0. The last is a LVM, but not RAID, and it has its own volume group.

View 9 Replies View Related

Ubuntu Servers :: Website Not Updating Without Apache Restart?

Feb 1, 2011

I've installed Ubuntu server and got everything setup pretty well.My problem is apache.I put my website in /var/www and changed the security on the files to allow them to be executed by other, which is what I finally discovered was my first problem (access denied). But now whenever.I go in and edit my page, the changes aren't reflected on the site unless I completely restart apache.I know I'm doing something wrong because I used to pay for a host and every time I edited a page, it was instantly updated on the site. Could one of you gurus tell me where I screwed up?

View 4 Replies View Related

Ubuntu Servers :: How To Enable Auto Login On Restart

Feb 5, 2011

How do I enable auto login for my linux servers? I just don't want to have to login everytime I start them up or restart them. As they are test servers this happens alot...

View 1 Replies View Related

Ubuntu Servers :: DHCP3 Won't Start / Restart - Sort It?

Feb 7, 2011

Ubuntu 10.10 w/ dual NICs

here's my etc/network/interfaces file code...

Here's the problem -- DHCP wont start and throws the error "Can't create PID file /var/run/dhcpd.pid: Permission denied." Somewhere I found a post that indicated that the following corrected the issue (I dont really know why):

ln -s /var/run/dhcp3-server/dhcpd.pid /var/run/dhcpd.pid
dhcpd3 -cf /etc/dhcp3/dhcpd.conf eth1

When I do the above DHCP will start (in theory, at least no erros are thrown). But if I ask DHCP to restart, it will stop, but not restart. And the error is "No subnet declaration for eth1 (192.168.3.2)"

I'm newbie-ish. Help me Obi-Wan Kenobi.

View 2 Replies View Related

Ubuntu Servers :: Rebuild Raid5 Array After Every Restart?

Jul 8, 2011

I have software raid 5 array, each time I reboot my server, I have to rebuild array again. Rebuilding array takes too long. I am using ubuntu server 10.10.

View 7 Replies View Related

Ubuntu Servers :: Syslog Daily Restart Time?

Jul 13, 2011

Is there a way to force the syslog ie /var/log/messages to restart at say 1:00 am instead of 7:55 or so each morning?

View 4 Replies View Related

Ubuntu Servers :: Script To Restart And Bypass Password On Startup?

Feb 7, 2010

I'm running Ubuntu 9.10 as a web/ftp/etc server. I like to work on stuff from remote locations and have set it up to be accessed it with the external IP address by my laptop.The problem is that if I'm at a remote location and tell it to restart, when it boots up it won't log me on unless I enter the password, but I can't remote access it until I'm logged in.So, is there a command or script that I can run that will tell it to restart and bypass entering a login password?I'm only looking for something to bypass it ONCE per command/script, NOT to disable my password.

View 5 Replies View Related

Ubuntu Servers :: Changing The Datadir In My.cnf Stops Mysql To Restart On 9.10

Feb 9, 2010

I am trying to change the datadir in my.cnf and try to point it to different location where my database are residing.I have the permission to write on this directory.

datadir = /home/glucose/mysql
#datadir = /var/lib/mysql

if I do ls on my database location.Here is the result

root@bilal-laptop:~# ls -la /home/glucose/mysql
total 20512
drwxr-xr-x 7 mysql mysql 4096 2010-02-09 16:30 .

[Code]....

Because of which I am not able to start mysql. I am not able to locate actual log file as well.I looked at few log files they don't seem to tell me anything.But I am not sure which one I should be looking at as there are quite a few related to mysql.

View 3 Replies View Related

Ubuntu Servers :: Restart Needed After Upgrade Detect From Comandline?

Mar 24, 2010

I'm setting up an ubunutu server (tomcat, mysql etc) which has been going very smoothly I must say. I plan to do manual updates over ssh using "sudo apt-get update" and "sudo apt-get upgrade" but I believe sometimes these update will need a complete machine: how can I tell if I need to reboot the server after an update _using the command line_?

View 3 Replies View Related

Ubuntu Servers :: Disabled Press CONTROL-X To Restart Shell

Apr 30, 2010

I'm setting up an Ubuntu server and I keep getting strange problems with my editor.I'm not sure if this is because my keyboard configuration is wrong or I screwed up the installation but regardless it's quite frustrating.

When using the movement keys (arrows and numpad) I get "[" brackets and "C"s, if I hold down or push down on the key hard a list of errors and text comes up, usually involving something that says something like:"Mount disabled" or "____ disabled press CONTROL-X to restart the shell"Similair problems are also found in vi (when in insert mode).I have been plagued with text editor problems and have need several reboots just to get out of a file, often because it just flat out stopped responding to keyboard commands.

View 1 Replies View Related

Ubuntu Servers :: 8.0.4 Server Apache Overload/Crash On Restart?

Jun 6, 2010

bit of a server noob having built a server to hold a php website for a client hosting at home, I have some experience, but VERY limited and don't speak fluent server.My problem is that overnight each day apache on my clients server stops responding. I can still access via putty / webmin.The best I can see it, it seems that apache 2 opens too many child processes and chokes the system. My reasoning for this is:-Though I have max child set to 20 with a keep alive of 30 there are dozens of child processes 'apache2 -k start' running, some of which were started 9.5 hours ago.

-I can stop apache, though that doesn't kill these child processes. I can terminate the parent process which does kill the child processes, however restarting apache after killing the child processes results in a system crash. Rebooting the server remotely after apache has stopped responding also results in a server crash. That is NO response on any port.I would be happy to display any pertinent server config/logs etc if anyone can help me troubleshoot this?

View 2 Replies View Related

Ubuntu Servers :: Check SSH Settings Post Upgrade / Pre Restart?

Aug 30, 2010

I just rented a godaddy dedicated, the ubuntu variety comes loaded with 8.04...(& I need PHP 5.3)Followed the directions here: URL...I did have to change my sources.list, everything after that went as expected (not like i'd know what to expect)At one point it asked if I wanted to update my grub/menu.lst to the release version, or use my old one, I updated it.Once the upgrade completed, I checked the menu.lst again to ensure it was gonna boot 10.04 (as warned by the guide)However once I sent reboot, I couldn't SSH back in, I waited 5m, 15m, tried again, still couldn't SSH then I had the server power cycled via my godaddy control panel, and still nothing, attempts on port 22 timed out & other ports were refused.

I think I overlooked something because, from what I've read here and there this is technically possible, I also just found this guide here:URL...The first user comment (above link/guide) seems to have a tip for what I'm trying.Anyways had the server re-provisioned via my control panel & I'm about to try again, only this time. uh, check the SSH settings post upgrade/pre restart?

View 9 Replies View Related

Ubuntu Servers :: Can't Restart The Service - Apache2: Command Not Found

Sep 5, 2010

I just installed apache2 and i can't restart the service, i get: Code: sudo: /etc/init.d/apache2: command not found

View 6 Replies View Related

Ubuntu Servers :: Apache Restart Fails After Power Loss?

Oct 25, 2010

I have observed a problem twice now with Apache trying to restart but hanging somewhere in the process. This happens after a power failure; the machine comes back just fine, but not the web server. The machine is on a UPS, but occasionally it runs out of "juice" before someone can get to it (we have a generator for emergencies). When this happens, a ps indicates about three processes running that are trying to start Apache, but they just sit there - this time for three days since the power failure was on a Friday. I can fix this by killing those processes and doing an Apache restart - but that takes human intervention, which is not acceptable.

I suspect this may have to do with SSL, since when I do a manual restart it asks me for the SSL password. There must be some way around this so the system can recover on its own. This system's web site runs under SSL since it maintains medical information that must by law be protected. But it also could be life-threatening to someone if the system can't come back and as a result a person can't get help.

So I would appreciate some guidance as to what I could change that would allow for system recovery without intervention. I'm happy to provide any configuration file info, if you tell me where to look.

View 3 Replies View Related

Ubuntu Servers :: Installed Vsftpd - Restart: Unknown Instance

Nov 23, 2010

I have installed vsftpd. When I run the command sudo service vsftpd restart, I get the following response: restart: Unknown instance. But if I run the command sudo service vsftpd start, I get the following response: vsftpd start/running, process 3804. To understand what is happening, I run the command ps aux | grep vsftpd, I get root 3805 0.0 0.0 27120 620 ? Ss 14:00 0:00 usr/sbin/vsftpd.

View 3 Replies View Related

Ubuntu Networking :: Shorewall Implemented In Scripts With IP Aliases

Aug 17, 2010

let me show you my config and tell me if its ok
Its pretty simple:
eth2 -> 192.168.1.0
eth2:0 ->192.168.50.0
eth1 and eth0 are the net interfaces, 1 router each to provide wan failover (not implemented here)

Hosts:
loc1 eth2:192.168.1.0/24
loc50 eth2:192.168.50.0/24

Interfaces
net6 eth0 detect
net7 eth1 detect
- eth2 192.168.1.255,192.168.50.255

Masq
eth0 eth2
eth1 eth2
eth2 eth2

Policy
all all ACCEPT info

Rules
SECTION NEW
REJECT loc50 loc1 all

Zones
fw firewall
net6 ipv4
net7 ipv4
loc1 ipv4
loc50 ipv4

Problems / Doubs:

1) Is the hosts file required?
2) I guess I need doing masq from local to each external, and also from local to local even if they share the same interface, hence the eth2 eth2 in the masq file...
3) So is shorewall well implemented in these scripts to handle aliases?

View 2 Replies View Related

Ubuntu Security :: Shorewall Firewall Setup In Webmin?

Jan 3, 2011

I got Shorewall firewall all Set-up perfect but I'm stuck at 1 last bit. The aim is to let on 2 clients max onto my server. I have the policy setup in webmin as.
Uploaded with ImageShack.us
More than 2 clients can get onto the server. The aim is to have it as a ddos protection allowing 100 clients on and a max burst of 10 clients at a time.

View 3 Replies View Related

Debian Configuration :: Using Shorewall To Setup NAT

Apr 17, 2011

I posted a previous topic on bridging, and that didn't seem to work, so I went with Shorewall and I'm trying to setup NAT, but I'm struggling very badly. I have the interfaces configured where eth1 is my Local LAN (loc) network, and eth0 connects to my ISP (net). But my problem is that I have no clue how to forward traffic from eth1 to eth0, without using ProxyARP, which routes all traffic to eth1, and doesn't allow traffic out on itself. I've looked at the NAT tutorials, and they don't make sense to me, because I have two interfaces that I want to be able to talk to each other and the internet at the same time. Is there anyone who's good with Shorewall?

View 3 Replies View Related

Networking :: 2 Internet Connections With Shorewall?

Mar 24, 2011

I've got a Ubuntu Server Linux router that I've got 2 internet connections hooked to. One of them is DSL and the other is cable.

What I'd like to do is have everything go through the DSL connection EXCEPT for one desktop, I'd like that system to go through cable for everything.

Here's a diagram of how I've got things set up.

[URL]

I don't have any more expansion slots on the mainboard of my server for another NIC, also I do a lot of file transferring between a laptop and the desktop I want on the cable connection so I don't want that slowing down the rest of my network.

I've got both providers set up in the providers file and I've got everything going through the DSL connection right now. So far everything I've tried has stopped the desktop from connecting out at all.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved