/srv/irclogs.ubuntu.com/2012/10/07/#ubuntu-server.txt

=== n0ts_off is now known as n0ts
=== cpg|away is now known as cpg
=== n0ts is now known as n0ts_off
=== n0ts_off is now known as n0ts
cluelesspersonI seriously don't understand what the fuck is happening01:18
cluelesspersonEverything is fail for me know01:18
cluelesspersonwhat the fuck is "public login: mountall: Disconnected from Plymouth" ?01:19
IdleOnePlease stop cursing01:19
cluelesspersonIdleOne: I'm getting extremely frustrated.01:21
cluelesspersonIdleOne:  I cannot get a fraking stable configuration in place, because seemingly, every day, there's an undate that breaks something.01:21
cluelesspersonIdleOne: and by something, I mean everything01:21
IdleOneI feel for you and wish I knew how to help you but getting upset and swearing is not going to help you get help.01:24
IdleOneI know that saying everything is broken is not enough detail to start trying to help.01:25
cluelesspersonIdleOne: I cannot shutdown my vm because ubuntu put out a flawed update, I'm getting a "public login: mountall: Disconnected from Plymouth" when the server (FRESH install) boots up01:26
cluelesspersonIdleOne: and apache is not responding on port 80.01:26
patdk-lapand the logs say?01:28
qman__does sudo netstat -lanp | grep apache return anything?01:29
cluelesspersonpatdk-lap: qman__  I'll respond to your questions in a moment, I appreciate your taking interest01:30
=== n0ts is now known as n0ts_off
qman__I don't know anything about Subsonic, and I don't have experience using apache's proxyforward, but I know a thing or two about apache and networking in general01:31
qman__so hopefully I can at least get you that far01:31
cluelesspersonqman__: I don't think that's broken.  Actually, I think it's virtualbox that may be breaking things.  However the "public login: mountall: Disconnected from Plymouth" and the screwed up shutdown are known bugs now01:32
cluelesspersonYou know what?01:34
qman__well, one other point to verify01:34
qman__bad downloads can really ruin your day01:35
qman__they do happen, even with good internet connections, and they have happened to me01:35
qman__and that is _never_ fun01:35
cluelesspersonqman__: like, bad ubuntu iso?01:35
qman__bad iso, or bad debs from the net01:35
cluelesspersonqman__: I'm installing very few things.  lamp, openssh, subsonic, virtualbox guest additions01:36
qman__check the md5sum/sha1sum/whatever to make sure your iso is good, and then I'd check key packages like apache01:36
cluelesspersonokay01:36
qman__every package downloaded will be in /var/cache/apt/archive01:36
cluelesspersonqman__: The apache thing happened after a restart01:36
qman__I try not to reboot01:38
qman__upstart had ruined my day on more than one occasion, too01:39
patdk-lappackages should be ok, they are signed01:40
patdk-lapand the signature wouldn't be valid01:40
qman__should be, but it has happened to me before01:41
patdk-lapsounds like bad disk then01:41
qman__I think it displays on screen when a signature isn't valid, but a lot of times that gets blown by with all the other feedback and you miss it01:41
patdk-lapmine always bombs out on bad sig01:42
* patdk-lap likely would place the blame on virtualbox, it's known to have issues01:42
patdk-lapone of the reasons I don't use it01:43
qman__given the alternatives, virtualbox isn't half bad01:43
qman__but it does have some issues01:43
patdk-lapalternatives? I'm happy with vmware01:43
qman__virtual PC is really lacking in options, and last I checked, vmware workstation was expensive01:44
cluelesspersonvirtualbox lacks obvious features like start on boot or login, or graceful shutdown with host, dear god01:44
qman__well, that's not what it's for01:44
qman__virtualbox is for user-centric virtualization on a desktop01:45
patdk-lapyep, and this is the server channel01:45
qman__if you want features like that you need to use a software designed to do it01:45
qman__like KVM, or ESXi01:45
qman__or Xen01:46
patdk-lapdepending on the scale you need, lxc :)01:46
patdk-lapopenvz, ...01:46
cluelesspersonqman__: What do you suggest for a small server?01:46
qman__what's your hardware like, and what sum total are you virtualizing?01:47
patdk-lapwhat is the small server? is it inside this vm? or is it what is running these vm's?01:47
patdk-lapalmost sounds like you want to run a small server vm on a desktop machine01:48
qman__if you're doing that, and you have a linux desktop, you could use KVM01:48
sarnoldkvm++01:48
qman__it'll play nice when you're using the host as a desktop01:48
qman__Xen and ESXi won't do that, they're for dedicated host setups only01:49
qman__KVM does dedicated host too, but it can work on a user desktop01:49
cluelesspersonqman__: patdk-lap    This is a Xeon 3.4ghz quad core with 8 threads, 10 MB cache, motherboard automatic overclocking to 3.6.  I run Windows Ultimate64 bit01:50
qman__well, all of the above requires a linux host OS01:50
cluelesspersonqman__: patdk-lap  I use this for gaming, work, several serving functions.  I want the VM for an isolated and modular linux server that handles certain situations01:51
patdk-lapI wouldn't know anythin about running when using a windows os01:51
qman__I don't know if microsoft still does virtual server, but that could work01:51
sarnoldqman__: did they ever update that for the CPU-based virtualization deals or did it stay a paravartualized thing?01:52
qman__but hyper-v probably squashed that product01:52
qman__in the windows world, hyper-v is the right thing for this situation, but it's pretty expensive01:52
qman__virtual server was free01:53
qman__or, if you can still get vmware server, that'd be a good option01:53
qman__but that was squased with ESXi01:54
qman__squashed*01:54
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
cluelesspersonsigh03:28
cluelesspersonSo right now.  Apache2 is not responding on port 8003:29
cluelesspersonqman__:  ^03:29
cluelesspersonand I get "psithurisms login: mountall: Disconnected from Plymouth"03:30
cluelesspersonapache2 logs and system logs show nothing.03:31
qman__cluelessperson, that message is benign, you shouldn't see it at your login screen but it doesn't by itself break anything03:32
qman__does sudo netstat -lanp | grep apache return anything?03:33
cluelesspersonqman__: it disables my login on that screen03:33
qman__cluelessperson, press enter, it should give you a new prompt03:33
cluelesspersonqman__: Control Alt F203:33
cluelesspersonqman__: What's causing it though? -_-;03:33
cluelesspersonqman__: alright, but apache2 doesn't work.  Not responding on port 8003:34
qman__from what I found while searching, it's a symptom of a lot of other problems03:34
qman__so is it running or isn't it03:34
cluelesspersonqman__: apache is running, yes03:34
qman__ok03:34
qman__and are there any messages in /var/log/apache2/access.log?03:35
qman__if there are, check error.log for errors03:35
cluelesspersonqman__: None.03:35
qman__so, what it means is, your requests are not reaching apache for one reason or another03:35
qman__access.log would contain things regardless if it worked or not03:36
cluelesspersonqman__: Which doesn't make sense to me.  Because I'm able to to putty in from my host over the forwarded port to the guest localhost:2203:36
escottqman__, can you telnet to http? is your firewall up?03:36
cluelesspersonqman__: and port 80 is forwarded in the exact same way.03:36
escottrather cluelessperson can you telnet to http? is your firewall up? does it respon on localhost?03:37
qman__on the server, run curl localhost03:37
qman__you may have to apt-get install curl03:37
qman__if you get output that looks like a webpage, apache is working, and something else is causing your problem03:37
cluelesspersonqman__: 404 not found, which means my directory is off, but I should still see that 404 in browser. but yes, apache's apparently working03:40
qman__yes03:40
qman__so that means apache is working03:41
qman__ubuntu does not have any firewall rules enabled out of the box, you can verify with iptables -L03:41
qman__so the next step is to find out where the networking issue is03:42
qman__probably virtualbox, networking has never been its strong suit03:42
qman__could be your windows firewall too03:42
cluelesspersonqman__: Firewalls are disabled.03:43
cluelesspersonqman__: The only way I know to test virtualbox right now is to localhost:22 which is allowing my putty through.03:44
cluelesspersonhttp is forwarded the same way, I've double checked my port settings on other possible interfering programs.03:44
qman__you may have another program on your host OS or a feature of virtualbox using port 80 and preventing the port bind03:45
cluelesspersonqman__: Wouldn't netstat show that?03:45
qman__if you have another app, yes03:45
qman__if it's virtualbox, maybe03:45
cluelesspersonqman__:   :/  I haven't upgraded virtualbox.  I don't know why it would work one night and not the next.03:50
cluelesspersonqman__: I should've reinstalled it already, will now03:50
qman__reinstalling is not likely to fix this problem03:51
qman__though depending on how bad it is that might be a good plan anyway03:51
cluelesspersonqman__: Reinstall virtualbox I meant?03:52
qman__oh, ok03:52
qman__maybe, don't know03:52
cluelesspersonqman__: No dice. reinstalling did not work04:01
cluelesspersonqman__: At this point, it's a fresh install of Virtualbox, Ubuntu 12.0404:01
cluelesspersonqman__: I've tried closing out and opening other network adapters on the guest.04:02
qman__cluelessperson, if you're using a NAT networking config, I'd try setting it up as bridged instead and see if it solves the problem04:05
cluelesspersonqman__: I was avoiding that, but okay.04:05
cluelesspersonqman__: Also, I do not have graceful shutdown with "sudo shutdown now" but I'll worry that later04:06
qman__cluelessperson, try sudo poweroff04:06
cluelesspersonqman__: Upon reboot, Sda1 is not ready or is not present.04:07
cluelesspersonqman__: ...  I don't understand how switching to bridge mode makes a partition inaccessible04:09
cluelesspersonqman__:  I think I may be done with virtualbox04:09
qman__cluelessperson, you can still get VMWare Server, it's unsupported but available: https://my.vmware.com/web/vmware/evalcenter?p=server20&rct=j&q=&esrc=s&source=web&cd=9&ved=0CFoQFjAI&url=https://www.vmware.com/go/getserver&ei=vgBxUN3jIu66yAG9oYCACw&usg=AFQjCNHs4HR7u8yZ9MQgHmR4wAAVNVOUGw04:13
qman__I think that will be better suited to your purpose04:13
cluelesspersonqman__: btw, I feel I owe you money.04:17
qman__heh04:20
cluelesspersonqman__: Sigh.  Now I can't install ubuntu on vmware.  It's stuck05:28
MammutpanzerHello. My name is Mammutpanzer and I plan to administrate a server. Before going onto the real server I want to run a VM to test everything, see if it is possible for me, look if it is fun to me or too much of a desaster. So I installed a VM of Linux Ubuntu Server 12.4. Now I would like to discuss security. Is this the right channel to discuss ubuntu server security?05:32
darthanubisMammutpanzer,never ask to ask, just ask your questions06:04
cluelesspersonclear06:15
cluelesspersonSo, I've installed VMware Server, and I can't install ubuntu 12.04 because it hangs at the very first menu.06:16
darthanubisand?06:18
darthanubisneed more info06:19
cluelesspersondarthanubis: sorry06:44
cluelesspersondarthanubis: I just installed VMware server, ubuntu install hangs at "install ubuntu server" first menu06:44
=== n0ts_off is now known as n0ts
=== n0ts is now known as n0ts_off
MammutpanzerIs this the right channel to ask questions about ubuntu and server security or should I go to ubuntu-hardened?10:17
chris|Mammutpanzer, don't ask to ask, just ask the question10:29
MammutpanzerWell chris I didn't ask to ask a question I just wanted to follow the channel rules and one is that I should be on topic question was if I am on topic10:46
=== n0ts_off is now known as n0ts
=== viezerd- is now known as viezerd
=== n0ts is now known as n0ts_off
=== n0ts_off is now known as n0ts
=== n0ts is now known as n0ts_off
=== Kiall is now known as Guest35492
=== nandemonai is now known as Guest20421
=== n0ts_off is now known as n0ts
=== cpg is now known as cpg|away
MammutpanzerI can't open the man start-stop deamon manual does someone know why? Do I have to download additional man packages?11:50
=== n0ts is now known as n0ts_off
=== johannesasldasld is now known as dacre
MammutpanzerI am trying the command "ps -aux > foo" but it doesn't write to foo it simply says "bad ps syntax perhaps a bogus"? What am I doing wrong?12:24
woodlerI just recently installed ubuntu server on a vm, Im very new to linux servers. Whats the initial process you would perform to setup on a Linux server? For example does it need to have something such as Active Directory setup, or the promotion of a Domain Controller? Can you give me some thoughts/insight on what they think should be set up first initial process? Please give me a real world testing solution. Thank you12:36
=== n0ts_off is now known as n0ts
roniezwoodler: well do you use AD or DC_13:46
Rodney353hi, by any chance has anyone here ever worked in a datacenter?14:27
Rodney353:(14:35
SpamapSRodney353: maybe ask your real question?14:38
SpamapSRodney353: a lot of us just read backscroll... so an answer might take a few hours14:38
Rodney353trying to find information to learn about the equipment in a datacenter14:42
SpamapSRodney353: take a tour14:42
Rodney353trying to get a job in one, took a tour today, and realized i know next to nothing...14:42
roniezthe equipment in a a datacenter can variy alot14:42
SpamapSHm, I've been in about 20 DC's ... they are all basically the same in my eyes14:43
Rodney353there were hard drive arrays, load balancers, and all this crazy equipment...14:43
roniezwhat does it say about responsibilities.14:43
SpamapSthe make/model might differ, but the setup is almost always the same14:43
roniezSpamapS: also depends wheter he will be having access to client cages or not as well14:43
Rodney353I took ccna and mcsa, and wasnt prepared....at all....14:43
SpamapShaha14:44
SpamapSRodney353: "learn by doing"14:44
Rodney353i thout it would be just routers, switches and servers14:44
Rodney353WAY off14:44
roniezhttp://www.cisco.com/web/learning/le3/le2/le41/le99/learning_certification_type_home.html14:44
roniezthats for datacenter certificates.14:44
SpamapSRodney353: don't take this the wrong way, but when I evaluate an operations person for hire.. the more certs they have, the more suspicious I am that they know nothing.14:45
roniezvery true14:45
roniezi worked in a NOC for almost 2 yrs before i took my ccna14:45
roniezand ccnp14:45
SpamapSRodney353: did you bother talking to ops people before getting these certs?14:45
Rodney353I took them as a extra class at my college14:45
roniezmy entire IT career is based on experiance. i have not landed a single job due to any certificates.14:46
Rodney353it was cheap, so i took them14:46
Rodney353figured they couldnt hurt...14:46
roniezRodney353: they dont. :)14:46
roniezcan easily get you a better paycheck14:46
Rodney690but i kinda want this job...14:47
Rodney690and if I get it I dont want to show up and be clueless...14:47
roniezDO you know how many other applicants?14:47
Rodney690even though it is a 'lerning' lower level position14:47
SpamapSroniez: you'll be fine. my recommendation would be to get an entry level job and just push hard to learn.14:47
roniezthat was for Rodney690 :D14:48
SpamapSRodney690: You'll be fine. Be honest about what you don't know, and how excited you are *to learn*14:48
Rodney690its very entry level, but just giving the tour I felt bad that i didnt know anything14:48
roniezYou cannot know everything from start.14:48
roniezand entry lvl at a Datacentre means u will have a mentor14:48
roniezatleast it does here in holland14:49
SpamapSyeah in fact they probably wouldn't want you to know anything14:49
SpamapSthen you'd want $$14:49
roniezhehe14:50
Rodney690well the pay is decent...14:50
roniezknowledged = higher paycheck demands14:50
Rodney690not great, but livable14:50
roniez so dont worry too much Rodney690 just be honest about what you know and dont lie about it.14:50
Rodney690well, Im looking for information to learn these things14:51
Rodney690but i cant find any information on it14:51
SpamapSRodney690: seriously, the way to learn these things is to get a job like the one you're applying for.14:52
Rodney690I think they want me to know at least a little lol14:52
Rodney690They gave me a test but they were easy14:53
Rodney690like really easy...14:53
roniezits entry level14:53
roniezand if you find them easy your already in a good position14:53
roniezcounting that you passed the test ofc.14:53
Rodney690like make a crossover cable14:53
roniezalot of your work will be remote hands supporting14:53
roniezpatching, switching hardwares etc.14:53
roniezdepending on the clients request ofc.14:53
Rodney690and then we walk into the center and theres milltions of cables everywhere14:54
Rodney690spools of 100 fiber cables14:54
Rodney690and im like uhhhh.... Ive connected fiber cables to a switch .... I have no idea what these 100 do14:54
Rodney690there was equipment I have never even seen before14:55
roniezjust preformance difference.14:55
SpamapSRodney690: right, nobody ever sees those except in a job in a DC14:55
SpamapSRodney690: *chill out*14:55
Rodney690lol...14:55
SpamapSRodney690: your biggest danger now is your own head, not knowing something.14:55
* SpamapS goes back to regular Sunday14:56
Rodney690wish there were videos that described what goes on in typical racks14:56
Rodney690keep searching, found nothing :(14:56
shaunodon't let the cabling phase you.  they can smell fear.  show any sign of weakness, and you'll disappear into a loom and never return14:57
Rodney690lol, I act like its no big deal, Ive seen it before14:58
Rodney690when inside Im like: I have no idea what any of these things are doing14:58
Rodney690I was like a computer helpdesk guy at my old job.14:59
Rodney690Just delt with routers, switches, and servers15:00
roniezoh yea cabling is like dont even bother. if they failed it from the start they will never work it out until they redesign the entire DC15:00
Rodney690never even seen a load balancer, let alone one thats worth over 100k15:00
ronieza LB is nothing special just a fancy way of moving a round robin DNS to its own hardware.15:00
roniez:)15:00
Rodney690yah but they had like 500k equipment15:01
Rodney690my hp proliant 7 server cost 4k...15:01
roniezjust wait until they cmoe with the new nexus-switches15:01
roniezthey are fun15:01
Rodney690they also had cloud servers15:01
Rodney690with hard drive arrays15:02
Rodney690no idea how that works...15:02
roniezjust a storage raid setup. :) linked to some ESX environment15:03
roniezits all Virtualized now and days.15:04
Rodney690well, yah but if I have to troubleshoot or change wiring on it...15:06
roniezu wont learn that until u do it15:06
roniezthere is no way to prepare for that kind of stuff.15:06
Rodney690they were throwing out models left and right15:10
Rodney690like i was supposed to know what they are talking about lol15:10
Rodney690needless to say catalyst 6500 was not one of them lol15:11
=== n0ts is now known as n0ts_off
=== maxb_ is now known as maxb
=== railsraider_ is now known as railsraider
=== n0ts_off is now known as n0ts
=== n0ts is now known as n0ts_off
Joy0x3806anyone experience a black screen with white cursor on boot from USB?16:12
Joy0x3806trying to install ubuntu server from usb16:12
Joy0x3806used universal usb installer and unetbooting16:13
Joy0x3806both give me the same results16:13
Joy0x3806anyone?16:13
Joy0x3806help?16:15
roniezwell black screen with white cursor is not really saying much16:16
Joy0x3806oh16:24
Joy0x3806trying to install ubuntu server from usb drive16:24
Joy0x3806I used universal usb installer16:25
Joy0x3806when I boot from usb, I dont see any splash screen, not even a grub message, nothing16:26
Joy0x3806It just hang16:26
Joy0x3806what could it be ? Maybe the MBR was not properly installed on usb with universal or unetbooting ?16:28
Free99Hello everyone. I'm setting up a mailstack server (that is, the semi-preconfigured postfix/Dovecot via the repos), but I'm having a little trouble getting postfix to accept mail17:41
Free99I have the system setup to use my LDAP server, postfix searches the LDAP for any users who have the17:41
Free99*who have the "mail=" field defined, and if so, accepts the mail... or at least, that's the plan17:42
Free99I've checked with postmap -q that the ldap search file works, it returns a username if the search for an email address was successful, otherwise it returns nothing17:43
Free99the stack has been removed from chroot, and I'm sending mail locally, so there should be no problems with the firewall, etc..17:43
=== cpg|away is now known as cpg
MammutpanzerHi I try to do sudo cd directory to go into a directory but it says sudo: cd: command not found19:14
MammutpanzerHow can I go to the directory?19:14
TJ-Mammutpanzer: firstly, you don't need "sudo" to change-directory. Secondonly, when you use "sudo" it cannot execute a shell-builtin (which is what 'cd' is) unless you use additional options to "sudo".19:16
Mammutpanzerbut how can I access a dir that has the following? drwx------?19:18
MammutpanzerOh and thanks for the explanation TJ- :)19:18
TJ-Mammutpanzer: You'd need to do "sudo -i" which gives you an interactive root shell. Once you're done in the shell, type "exit" to return to the non-privileged user19:18
MammutpanzerThere is no other option?19:19
TJ-Mammutpanzer: If you want to execute a particular program as super-user, you can do things like: "sudo ls -l /path/to/restricted/dir/"19:19
TJ-Mammutpanzer: If you need to do several things, you could also create a short shell-script file, and execute it "sudo /path/to/my/simple.sh"19:20
MammutpanzerSounds good thanks for all the advices :D I really try to not login as root19:21
Free99hello there. I'm curious to see what the standard solution is for when iptables isn't responding correctly19:25
Free99I have 12.04.1 on a 64-bit server with two interfaces and two bridges19:26
chmuricould someone used in past klickstart for ubuntu?19:26
Free99I wound up doing an iptables-save, then iptables- L (which promptly locked me out of my SSH session..ha. ha.) then iptables-restore... seemed to fix the issue. Has that happened to anyone else in the past?19:27
=== X66Mammut is now known as Mammutpanzer
=== cpg is now known as cpg|away
=== chronossc is now known as chronos
=== cpg|away is now known as cpg
guntbertFree99: I have only seen instances of iptables not bein configured correctly, the rules you set are followed by the kernel19:52
guntbert*being19:52
cluelesspersonSo I've installed VMWare server, but ubuntu server hangs at selection in the first menu "Install ubuntu server"19:53
cluelesspersonNo errors are seen19:53
Free99guntbert: funny thing is, I had only enabled UFW, no rules were added. I also have fwknopd 2.0.3 running on the server, but I've never had it misconfigure the firewall before19:54
Free99is there a command I can run to get iptables to mention an erroneous config?19:54
patdk-lapheh?19:55
patdk-lapthere is no such thing as an erroneous config19:55
patdk-lapeither the iptable command works or doesn't19:55
patdk-lapit is easy possible to create some kind of packet flow logic that doesn't do what you want, but no way iptables would know that19:56
Free99that's what I figured, considering that I ran iptables-restore on a possibly bad config, and it works fine now19:56
Free99hmm19:56
guntbertFree99: it may be that there are misunderstandings between yourself and the programmer of a tool...19:56
Free99I do have two interfaces, so that could have something to do with it19:56
guntbertFree99: its still a matter of your understanding what some tool will do - the final commands are unambiguous19:57
Free99I do not know how to directly control iptables. This much I do know: UFW has worked a-ok in the past, as has fwknopd. The only reason I think I may have an issue is because this is the first time I've had two interfaces active as opposed to just one19:59
patdk-lapyour not attempting to use both are you?19:59
patdk-lapyou should only have one or the other installed19:59
patdk-laphaving both, is going be unpredictable19:59
Free99really? why is that?20:00
patdk-laplikely, at reboot, both will run20:00
patdk-lapso the last one to run will be active20:00
patdk-lapand with upstart, that order could be random :)20:01
Free99well, I see both have their own separate tables20:01
patdk-lapheh?20:01
patdk-lapthey both have to use the input/output/forward tables at least20:01
Free99sudo ufw show raw:20:02
Free99  533070 775614937 FWKNOP_INPUT  all  --  *      *       0.0.0.0/0            0.0.0.0/020:02
Free99  532389 775567243 ufw-before-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/020:02
Free99  532389 775567243 ufw-before-input  all  --  *      *       0.0.0.0/0            0.0.0.0/020:02
Free99  123399 20614426 ufw-after-input  all  --  *      *       0.0.0.0/0            0.0.0.0/020:02
Free99    2741    89822 ufw-after-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/020:02
cluelesspersonsigh20:02
Free99    2741    89822 ufw-reject-input  all  --  *      *       0.0.0.0/0            0.0.0.0/020:02
Free99    2741    89822 ufw-track-input  all  --  *      *       0.0.0.0/0            0.0.0.0/020:02
Free99that's for the input chain20:03
escottoh joy20:03
guntbertFree99: having more than one program to manage iptables is like calling trouble20:03
Free99so yeah, you're right, they all go through in out and forward20:03
guntbert!paste | Free9920:03
ubottuFree99: For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.20:03
patdk-lapin this case, FWKNOP gets priority, then ufw20:03
Free99woops, my bad20:03
patdk-lapand if upstart flipped it, ufw might get priority and fwk later20:04
patdk-lapand it could make a huge difference20:04
patdk-lapthough you don't seem to understand why20:04
Free99Ho-hum.20:04
Free99I see what you mean20:04
Free99ufw's default is to deny access20:04
Free99incidentally, I'm still not sure how upstart works. I'm used to making sysV style scripts and using update-rc.d to install them in init.d20:06
Free99hang on, I'll google it rather than bother you blokes20:06
guntbertFree99: STOP - uninstall one of them, and keep the other, then you can try to tweak the rules20:08
Free99system is running ok for the time being, I'll leave it be without rebooting it for now20:10
Free99I'm going to need UFW, my boss doesn't know much about iptables. I'll try writing an upstart script for fwknopd rather than use sysV20:11
guntbertFree99: not the best of possible ideas - usually the system restarts at one point in the future when you definitely cannot cope with any problems :-)20:12
Free99I think it'll be ok for a couple of days... I know what you're saying however lol20:13
guntbertFree99: and you migt want to have a look into shorewall20:14
guntbert*might20:14
guntbertand keep in mind: only one tool at a given time!20:15
Free99well.. let me ask you then: this server is a KVM host, it doesn't need to anything but directly route packets to the VMs which are connected to bridges br0 and br1..20:16
Free99I need to be able to SSH in, but other than that, nothing really (and obviously ssh is protected by fwknop)20:16
guntbertFree99: I have no idea what fwknop might be - but it doesn't protect anything by itself - all tools only generate iptables rules20:17
Free99oh, silly me. It's a single-packet port knocker, basically asks iptables to unshield port 22 to a specific ip that sends a correctly encrypted packet20:18
Free99works really well, no 0day exploits or anything of the sort are possible against commonly attacked ports when fwknop is in use20:19
guntbertFree99: don't rely on port knockers - they provide just a not so secure password - configure your ssh server to only accept pubkey based logins20:21
guntbertFree99: SEE http://bsdly.blogspot.co.at/2012/04/why-not-use-port-knocking.html20:22
patdk-laphmm, no need for fwdnop, iptables does that itself20:22
Free99umm... gpg keys are supported for fwknop. Besides, sometimes I have to manage something on my android phone, it's a bitch to use pub/priv keys with20:23
guntbertFree99: suit yourself - but you have been warned :-)20:24
Free99guntbert: I actually read something like this, it's not based on knocking different ports in sequence20:25
Free99http://www.cipherdyne.org/fwknop/20:26
patdk-lapwait? fwdnop is an daemon? with root permissions?20:28
patdk-lapand it's allowed to receive generic ip traffic? and you trust it more than sshd?20:28
patdk-lapjust use the built in iptables port knocking, so much safer20:28
patdk-lapifyou must use port knocking at all20:29
Free99well, you have to know what port it's on, it uses UDP...hmm.20:29
patdk-lapan those things make it secure? no20:29
patdk-lapforget about a zero day ssh issue, any issue in fwdnop and your toast20:30
patdk-lapI personally never saw the point of portknocking though20:31
guntbertFree99: how many different ports are there?20:31
patdk-lapshorewall has portknocking built in though, using iptables rules to do it, no extra software insecurity20:32
Free99alright, so look: on the client, I run "fwknop -a 123.123.123.1 -A tcp/22 -D 123.234.111.12 --test" and then input my password, or use my gpg key20:34
Free99it encodes as 2146526055123413:ZmFsY29uZXll:1349642014:2.0.3:1:MTIzLjEyMy4xMjMuMSx0Y3AvMjI20:34
patdk-lapthat isn't the point20:35
patdk-lapyour exchanging one daemon (opensshd) with another daemon(fwdnopd) to cause the same root exploit20:35
patdk-lapyour protecting x, with something just as insecure, y20:35
Free99so if I run it as a different user with permission to run a sudo script that opens only 22 to a specific address...?20:36
Free99it=the dameon, that is20:36
patdk-lapwould be better then20:36
Free99so why should I trust any of the author (Michael Abrash)20:36
Free99*any of the author's other stuff?20:37
patdk-lapI dunno? should you?20:37
patdk-lapI personally don't trust many people20:37
patdk-lapand defently not random blogs20:37
Free99he has a module that listens for stuff via snort and blocks skiddies automatically based on the rules.. well. I looked through his code, it looks good, and people liked him at toor20:38
Free99(shrug) I guess it is a trust thing.20:38
Free99it's in the repos, by the way20:38
Free99fwknop, that is20:38
patdk-lapno one is saying it's a bad idea, there is no usecase for it20:39
patdk-lapbut care must be taking in how it's used20:39
patdk-lapand it seems overkill for simple ssh protection20:39
Free99yeah, kinda forgot that it was running as root :-/20:39
Free99I'm not a professional sysadmin if you couldn't tell lol20:40
Free99I got tired of the ssh bots running around my school network, this seemed to fit the bill20:40
patdk-lapI just use basic tech, like fail2ban20:41
patdk-lapalso submit all those firewall blocked logs to dshield, and do my own parsing on them20:41
Free99I originally like denyhosts until I heard about the ssh botnets that purposely distribute cracking attempts20:42
patdk-laphaven't ever had an issue with one of them20:43
Free99I understand that these are all band-aids to a problem... but I've got this running successfully on ~8 different servers, it'll be a while before I can get people to adapt to something new20:51
Free99perhaps an apparmor profile?20:51
patdk-lapapparmor would just be more bandaid protection to fwdnop20:53
Free99someone's mentioning that the server listens passively via libfko, no direct tpc or udp connections per se. Sigh. that sucks man, I thought this was great20:55
patdk-lapwell, udp is passive20:55
patdk-lapbut it processes data contained in that passive udp listener20:55
patdk-lapthat is where issues can come up20:55
patdk-lapbuffer overflows, being common20:56
Free99you know, that reminds me. why the hell doesn't the ubuntu kernel use NX?20:56
Free99I have to compile my own kernel for that, what gives?20:56
Free99anyway, yeah. I'm looking over shorewall right now20:57
Free99wrong again also, looks like they put no-exec in after 10.0421:01
Free99https://wiki.ubuntu.com/Security/CPUFeatures21:01
patdk-lapno, that has always been there21:08
patdk-lapthe WARNING, if your on a noexec compatable cpu, that has that feature disabled, is on 10.04+21:08
Free99I appreciate your help so far patdk-lap. I have one more Q... any reason I shouldn't compile my own kernel for a web-facing system using the grsecurity patches?21:12
patdk-lapit all depends21:15
patdk-lapseems like it has a lot of interesting stuff, I have never used that though21:15
patdk-lappersonally, I perfer to detect if a system is compromised long before something like that should kick in21:15
Free99I was looking at it in terms of just mitigating that potential as much as possible21:16
Free99I have backups already implemented, and I tried to harden nginx and php as much as possible21:16
Free99or at least, as much as I knew how to w/o breaking anything21:17
chris|harden php.. that one never gets old21:17
patdk-lapwhile those are a problem, 90% of the issues is normally the php program themselves21:17
Free99lol I have to run wordpress, so... yeah21:17
Free99I'm using the suhosin patches21:18
patdk-lapheh, wordpress has a long histroy of issues :)21:18
Free99(shrug) Its a fickle thing you know?21:18
patdk-lapI would opt for using mod_security21:18
Free99isn't that only for apache?21:18
patdk-lapyep21:18
Free99<- nginx21:19
patdk-lapyour running facebook?21:19
patdk-lapperformance over security?21:19
Free99apparently? lol..21:19
patdk-lapit's all what you want :)21:19
patdk-lapI have crapload of iis server I *must* use21:19
Free99guh21:19
patdk-lapbut I do shove an apache with mod_security on them21:19
patdk-lapmakes me feel better21:19
patdk-lapalso require vpn access to even hit the proxy21:20
patdk-lapand yes, I do perfer not to use apache when I can21:20
patdk-lapbut some things, it still is required21:20
Free99I mean look, I'd use thttpd if I could make it run with php21:21
Free99I like simple, it usually translates to secure (I used to tinker with freeBSD a lot)21:21
Free99nginx hasn't been too bad security-wise though, you have to structure the rules correctly from what I understand21:22
Free99it freaked me out how my apache mpm prefork would jump in cpu and memory every time I tested connecting to it21:23
Free99one firefox connect= 2% ?21:23
roniezthttpd should work with php no?21:25
Free99I wish man, I turned the internet upside down looking for a way to do fastCGI21:27
patdk-lapheh?21:33
patdk-lapI have >300 connections with apache and I don't have 2% cpu usage21:33
patdk-lapbut then, prefork is the issue there, just don't use prefork21:34
Free99cripes, just when you think you're getting good at being a sysadmin, you find out you don't know your dick from your elbow :P21:37
roniezhehe21:38
roniezthe life of a sysadmin21:38
roniezalways learning21:38
patdk-lapya, it's whatever works best21:39
patdk-lapI do not use apache on a lot of systems21:39
roniezagreed.21:39
patdk-lapbut I do use apache on any systems I don't have full control over21:39
patdk-lapyou could implement a lot of mod_security stuff by making nginx rules in it's config21:40
patdk-lapbut it would get highly annoying21:40
=== doko_ is now known as doko
Free99I followed the nginx tutorials... all I cna hope for is that they're secure enough, I have too much to do atm21:45
Free99:-/ what a cop out though21:45
CrypticSquaredFree99: nickto is a nice little tool21:45
CrypticSquareder nikto21:45
Free99wow crypticsquared, that's awesome! thanks!21:49
CrypticSquarednp21:49
codesciencecan i still download ubuntu server 8.10?21:55
holsteincodescience: http://old-releases.ubuntu.com/releases/8.10/ though the repos are down AFAIK21:56
codesciencethanks.21:59
Free99anyone good with postfix here?22:02
patdk-lap!ask22:02
ubottuPlease don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience22:02
roniezYea be ready to idle. :)22:03
roniezsometimes an answer can take a while22:03
patdk-lapthere is a whole #postfix channel too, though I am normally only there during working hours22:04
gen0cide_Anyone know what happens when rsyslog on ubuntu tries to send to a server but can't resolve the DNS name?22:50
gen0cide_I'm trying it now, but can't see anything in syslog to tell that it's failing22:50
TJ-gen0cide_: "man rsyslog" might give you some clues22:54
gen0cide_" If  the  remote  hostname cannot be resolved at startup, because the name-server might not be accessible (it may be started after rsyslogd)  you  don’t  have  to  worry.   Rsyslogd will retry to resolve  the  name  ten  times  and  then   complain.    " - I don't see the complaint. Where would that happen?22:56
TJ-In the log, I'd have thought22:57
gen0cide_Nope, nothing -.-22:59
TJ-Maybe the startup-script is sending output to /dev/null23:00
techieim going to be setting up a machine running ubuntu-server as a game server in the next few weeks and i was wondering if there was a way to recursively create folders and symlinks23:46
techiefor shared resources23:47
techieor would i have to manually create folders, and symlink everything in them23:48

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!