[01:07] if you're doing something like sudo find you wont need to do it recursively right [01:07] a sudo find chmod since it's finding all of those file types [01:08] hallyn_: hey, how do I test this new libvirt package in quantal? :) I don't recall exactly the steps I had to take to trigger the bug in the first place... [01:08] petey: indeed, find recurses down directories and mountpoints by default [01:08] okay cool thanks [01:09] hallyn_: I've got a suspicion that it's something like (a) start from precise (b) install a specific SRU release of libvirt and dnsmasq (c) upgrade to quantal...? (d) install new libvirt from proposed and see if the link is repaired? [01:14] hallyn_: (in other words, I'm not very confident in my ability to provide good verification of your package... I'm hoping you or stgraber have an easy way to reproduce the problem and verify the fix. :) [01:51] sarnold: apt-get install libvirt-bin; apt-get rm libvirt-bin; apt-get install libvirt-bin should do it [01:51] hallyn_: oh, keen, that's easy to try [01:51] you shouldn't have to start from precise. it was the act of removing the package which removed the /etc/dnsmasq.d/libvirt-bin, and installing it then didn't recreated it [01:52] then apt-get purge libvirt-bin; apt-get install libvirt-bin; add quantal-proposed; apt-get update; apt-get rm libvirt-bin; apt-get install libirt-bin [01:52] i *think* that's all it is, though there were a few bugs along the way there weren't there... [01:54] sarnold: thanks (heading out) [01:54] hallyn_: have a good night :) [02:12] hey everyone. Having an issue where someone on my network keeps trying to nab my server's IP address. Can't tell if its malicious or accidental, but... any suggestions on what to do? [02:14] Free99: tcpdump or ethereal ought to show you the MAC address involved. if you have managed switches, you can drop packets from that MAC before they cause problems. [02:15] TheLordOfTime: Any pushes yet? [02:15] sarnold, my organization is big enough where I'd have to loop the network guy in, and he's very busy (but I know that's the actual solution). Until then, I seem to recall some app or something in the repos that would hold on to your ARP registration really tightly [02:15] like it'd block anyone else from stealing your ip pretty effectively [02:16] does anyone have a good backup script/software for backing up /home? [02:16] pythonirc1012: investigate rsnapshot and duplicity [02:16] sarnold, how would I do that with tcpdump? I know arping can do that kind of thing [02:17] Free99: add enough -e switches to see ethernet macs.. [02:17] sarnold: thanks [02:18] sarnold, what if they are spoofing my MAC address? I'm sorry if these are obvious questions, never dealt with this before [02:18] sarnold: in my case, my users have copies of exactly the same file stored multiple times. I was hoping that the backup sofware was good enough to not backup multiple copies of the same file. [02:19] pythonirc1012, the ZFS filesystem supposedly does this pretty effectively, it's called data deduplication [02:19] try looking around to see if anyone has ported just the data dedup part into a utility or something [02:20] Free99: sorry, I can't recall the name of the tool you're thinking of.. and no idea what to do if they clone your mac, you're in trouble at that point, you'll need to mac-firewall every port, I expect. :/ [02:20] crud-butter [02:20] so wait a sec, I thought the networks were a lot more resilient to this kind of thing [02:20] rsnapshot is decent at not duplicating files itself, but I doubt it recognizes duplicated files in homedirs :) [02:21] is that the type of issue that ipsec was supposed to handle? [02:21] .. and I don't know how well it would manage, even if you hardlinked them all [02:21] sarnold: perhaps dar would help? [02:21] Free99: ipsec would prevent the new machine from impersonating yours, but yours would be every bit as offline.. [02:21] pythonirc1012: maybe? never heard of it before :) [02:22] (facepalm) [02:24] Hello. I had a software running on https (443 port) but after installing Nginx, it stops answering on that port. Any idea why? [02:26] agu10^: perhaps your nginx is configured to listen there? check the output of sudo netstat -nlpt [02:27] sarnold, http://paste.ubuntu.com/5649815/ [02:28] wheee i missed things [02:28] pythonirc1012: yeah i did [02:28] pythonirc1012: not sure if i broke it or not, but it builds... :/ [02:28] * TheLordOfTime yawns [02:28] agu10^: hrm, I don't even see :443 ... [02:28] yeah, i don't know what happened [02:28] TheLordOfTime: Trying it out now [02:28] agu10^: what did you have installed on that port? [02:28] or rather what were you running before nginx [02:29] iredmail [02:29] TheLordOfTime: This time it stared and the pid error is gone. [02:30] ooooh. iredmail is set up to apache and has a virtualhost.conf for apache. I'm running nginx :/ [02:30] pythonirc1012: yeah that was the idea :P [02:30] TheLordOfTime: this time it starts with the default config, but not with my config - complains invalid option /var/run/nginx.pid [02:30] pythonirc1012: pastebin your ENTIRE config file [02:31] agu10^: and that's your issue [02:31] agu10^: does iredmail run as its own native application? [02:32] no, it doesn't [02:32] i don't know [02:38] sarnold: whenever there's a weird question about nginx, you're free to ping me [02:38] agu10^: here's an example conf file for iredmail on nginx: http://wiki.nginx.org/IRedMail [02:38] can't guarantee it works though, I don't use IRedMail [02:39] TheLordOfTime: thanks :) [02:39] sarnold: especially when there's a huge version difference between what's in Ubuntu and what they're running :P [02:40] case in point pythonirc1012's situation (sorry for the ping!) [02:40] TheLordOfTime: indeed, that'd have been supremely confusing without you :) [02:40] sarnold: xD [02:40] sarnold: lucky random appearance i guess xD [02:41] TheLordOfTime: do you recommend running ubuntu's nginx instead of the PPA nginx? I think the problem was that I was using some of the new features of nginx at the time I configured it [02:42] pythonirc1012: i stick to what's in the PPA, but meh [02:43] pythonirc1012: new features in 1.2.x are probably standard features in 1.4.x [02:43] pythonirc1012: but your error was unrelated to features [02:43] so IDK what's with that [02:44] pythonirc1012: the stable PPA's updated based on whatever's in Debian, so... [02:44] ... yeah, i stick with debian stuff. [03:05] TheLordOfTime, I have several nginx servers to manage. Having a lot of trouble supporting webdav though, do you have any tips? [03:08] Free99: ubuntu? what OS? [03:09] yeah, ubuntu [03:09] I had to make a really weird config file so that WPMU and Owncloud would work together [03:09] but the webdav doesn't work [03:09] *webdav part of owncloud [03:10] Free99: what are you using owncloud for? [03:11] file hosting/sharing [03:11] Free99: with? at work or personal? [03:12] work. It's a server for engineering students to share/backup large CAD files [03:12] ah cool [03:12] as well as make websites for their respective organizations easily [03:12] how do deal with the authentication part then? [03:14] Why is my email taking so long into my inbox? I'm using postfix with iRedMail. [03:14] what do you mean? little hackery of the backend keeps the same credentials in the database for both of them [03:14] agu10^, stop posting in several rooms at once, that's pretty annoying [03:15] Free99, what do you suggest instead? [03:16] not everyone is at their keyboard waiting for someone to talk to bro. Just wait a little, try somewhere else when you think you've waited enough and nobody helped you [03:17] okay, i guess i should code a delay for cross-posts ? [03:17] Free99: how many people are using this thing that you are setting up? [03:18] a bunch? at least 8 clubs, each has their own account and the club president delegates the user/pass to each member [03:18] each club has at least 5 users [03:18] (they have to, to become a club) [03:19] everything works so far but the webdav [03:20] so 40 users [03:20] Free99: which nginx package are you using [03:20] * TheLordOfTime doesn' [03:20] bleh [03:21] * TheLordOfTime doesn't use WebDAV on his deployments, but might be able to tell you if you're using the wrong nginx binary package [03:21] TheLordOfTime, nginx 1.1.19 I believe [03:22] Free99: i meant nginx-light, nginx-full, etc. [03:22] Free99: wait 1.1.19... [03:22] that's... either precise or quantal... [03:22] !ping [03:22] pong! [03:22] !info nginx precise [03:22] nginx (source: nginx): small, but very powerful and efficient web server and mail proxy. In component universe, is optional. Version 1.1.19-1ubuntu0.1 (precise), package size 6 kB, installed size 84 kB [03:22] yep precise [03:22] precise it is [03:23] I did nginx-naxsi [03:23] haven't setup the naxsi part yet, its disabled [03:24] how should one install multiple perl modules ? one way is cat list-of-perl-modules | cpanm --interactive .. is there a better way to do it? [03:24] Free99: I don't think the naxsi version of nginx ships with webdav support [03:25] hmm. how would I get naxsi along with the full module support then? [03:25] but i'm on the nginx PPAs, so i have to dig in the 1.1.19 version instead... [03:26] Free99: a customized version of the naxsi package maybe, i don't see WebDAV and naxsi together in any of the binaries [03:26] (shrug) I guess I can live without naxsi, I have zbblock on the server too [03:26] but remember i'm working with 1.4.x i don't have the 1.1.19 stuff around [03:27] let me check [03:30] ah cripes. my ssh server is acting up again [03:30] TheLordOfTime, I'll have to ask you tomorrow if you don't mind [03:30] maybe even monday [03:30] Free99: i am pulling a copy of 1.1.19 right now [03:30] if you can hold on a sec i can double check [03:32] Free99: yeah, none of the packages ship with both naxsi and webdav [03:32] and that won't ever be changed for precise, because it's kinda frozen that way [03:32] the only way to get webdav + naxsi is to either build from source or have someone build you a customized version of nginx [03:33] * TheLordOfTime would do that but meh [03:33] lol [03:33] it's not a big deal, I'm fine with compiling myself and using checkinstall [03:44] heading to bed, thanks guys === irv_ is now known as irv === jiriki- is now known as jiriki === mrmist_ is now known as mrmist === irv_ is now known as irv === _KaszpiR__ is now known as _KaszpiR_ === ivoks_ is now known as ivoks [10:10] hi [10:10] Q: My server is setup in a VM (virtualbox). I'd like to start apache2 automatically whenever the VM is started or the user logins. What's the best way to do it ? The best practice ? Any suggestion are appreciated! Thank you ;) [10:10] I heard about "upstart" script [10:13] Just install Apache, and it is started by default. [10:23] bekks: thanks for looking. not really, whenever I restart the VM, apache is off [10:23] adding: service apache2 start, to /etc/rc.local and restarting my VM, I mean my ubuntu server it still doesn't auto init apache2 [10:37] Hi guys i got this little php file im running on my webserver. itss supoised to load somexml file and loop troguh and echo/frite to file somdata... but my opendir is failing.... must be the relative path i think, but my combination of solutions are not working. HOW CAN i see from wich relative path the file is calling from? I know its from a /var/ww/html/etcx etc etc, but what is the visiility of the file? === LargePrime is now known as Guest17151 === LargePrime_ is now known as LargePrime [11:09] hello:) what monitoring system do you propose for monitoring web server with databases irc server and icecast ? [11:11] Nagios. [11:13] is there any how to article to help me set it up on 12.04 server? I know the basics but I need it on a "live" srv and I can't experiment a lot [11:14] oDiafanos: http://www.nagios.org/documentation [11:23] Icinga === mjeanson_ is now known as mjeanson [13:58] hello [13:59] I can't seem to mount my dvd-rw, I'm getting an error message :"wrong fs type, bad option, bad superblock on /dev/sr0 [14:01] yobro: Then how do you try to mount it? [14:32] is there a way how I can tell which repo takes priority over which for certain package? [14:32] there was some apt command but I canf seem to find it even in man pages... [14:32] The one with the latest version. [14:32] not really [14:32] if you have multiple sources... [14:32] which provide same packages... [14:33] how does apt figure out which one to get the package from ? [14:33] Are the packages the same version? [14:33] not necessarily [14:33] they can be diffrerent [14:34] I'm not sure how apt treats packages that are the same version, but the highest version number will always be pulled in the other case. [14:35] maybe I'm misunderstanding your question. [14:35] lets say you have 5 nginx repos...and you decide to install nginx [14:35] which repo will the nginx be installed from ? [14:36] Pici: apt-cache policy nginx-full [14:37] apt-cache policy [14:39] now the question is, how do you change the priorities... [14:40] gyre007: aha! found it. according to the apt_preferences manpage, the entry earliest in the sources.list file will be used for packages with the same version in different repos. [14:41] I think the manpage also has information on how to set the priority for those [14:42] im checking this now https://help.ubuntu.com/community/PinningHowto [14:48] actually this wont prioritise the source over another..mm === wedgwood_away is now known as wedgwood === masACC is now known as maswan [16:45] does anyone know about smoothwall firewall (linux) [16:49] A ping is getting through the network and into the web but for some reason websites are being blocked [16:49] kearneykid: sounds like you allow icmp but block tcp [16:51] u see it has been working all along and suddenly it just refuses my connections [16:54] sarnold: i cant find anything in the control pannel that would let me block TCP [16:54] kearneykid: I think you've already blocked tcp.. [16:55] Does anyone know of a way to limit ssh accepting connections to a specific hostname? I have many virtualhosts setup that people attempt to connect to all the time and I dont want to limit ssh to just my IPs (because they may change or I may need to access it from somewhere else) [16:56] sarnold how will i un-block TCP? [16:57] slide23: The ssh protocol doesn't really deal with hostname that way. There is (obviously) a DNS lookup on the client side, but that is a about it. The server has no idea what hostname the client went for. [16:58] hrm dang [16:58] any other ideas for reducing login spam heh, I am using fail2ban which is helping [16:59] kearneykid: sorry, I've never used smoothwall, can't suggest how to unblock a protocol.. [16:59] slide23: something hokey like port knocking? [17:00] slide23: One option, especially if you are the only one connecting to the server, is to have sshd listen on an alternate port. While it might not matter much security wise, it will keep your log files a bit more clean. [17:00] sarnold: just looking at the firewall logs and there are connections blocked about 2 every second. most of them are odd ports like 53099 [17:00] kearneykid: src ports or dst ports? [17:01] hrm port knocking seems interesting [17:02] sarnold: its a different src ip going to my ip. [17:02] sarnold: there are both UDP and TCP ports [17:03] kearneykid: note that outgoing requests from web browsers will use a randomly-selected port, often in the range 40,000-65535, for the source port.. [17:05] sarnold: could this be the problem so; its blocking the websites for no reason [17:05] kearneykid: hrm, can you pastebin your rules? perhaps someone here will be able to spot the issue [17:06] I'm sorry i can only post it here as the web isn't working [17:07] 11:12:12 IN=ppp0 OUT= MAC= SRC=189.222.24.70 DST=*****(MY IP) LEN=131 TOS=0x00 PREC=0x00 TTL=114 ID=22709 PROTO=UDP SPT=43731 DPT=25732 LEN=111 [17:08] that is just a random one i picked out of the list [17:09] that's just a blocked packet, not rule. but you can _irc_ fine but not http? [17:09] how about https? [17:10] yes both http and https [17:11] the error is saying "connection refused" [17:11] also a nslookup works [17:12] Hi I'm having a problem with my ubuntu webserver. I have multiple sites set up with virtual hosts and one has an SSL cert. However, my client is getting an ssl cert error on a different site (even though I have no links to https on that site) where its trying to use a differet domain ssl. Does anyone know the best practice when setting up mulitple sites on the same server where some [17:12] use SSL and others dont? [17:14] sarnold: actually for http; i get the error connection refused [17:14] sarnold: and for https; it just times out [17:14] kearneykid: ah, perhaps a REJECT for http and DROP for https? [17:15] winterpk: investigate SNI: http://en.wikipedia.org/wiki/TLS/SSL#Support_for_name-based_virtual_servers [17:16] mabye, how could i fix that? [17:17] kearneykid: perhaps I could pastebin your firewall rules for you, if you /query me, then paste them in, it wo'nt flood the channel.. [17:17] sarnold thank you. I will look into it directly [17:18] So I can only use one cert per server?! [17:18] thanks very much for your help sarnold query opened [17:19] or a different IP [17:19] ugh, this is not good [17:19] winterpk: different IP is the usual approach, but I think SNI lets you get there, with newer clients anyway [17:20] well what If I only really care about one cert. I just dont want to get a cert error on the other sites. [17:20] ah. I don't think there's anything you can do about that :/ [17:21] oh man this is not good [17:21] SNI should work with most clients these days [17:21] client = browser? [17:21] yes [17:22] hmm ok I'll try it. [17:25] its still trying to use the default ssl darnit [17:26] anyone here understands how package pinning works ? arrrgh...major headache [17:26] is there someway to just turn of SSL for the sites that dont use it? === wedgwood is now known as wedgwood_away [17:30] I have the following preferences set https://gist.github.com/milosgajdos83/5555584 [17:30] YET they are totally ignored [17:31] nginx-full is being installed from the second source.. [17:31] arrrgh.. [17:33] winterpk: you only get to open a port on an ip address. you can't selectively 'close' that port for requests coming in with one name vs another name -- it can't know which hostname the request is intended for until it has accepted the connection and read some bytes from it. [17:34] I see ok [17:35] its a chicken before egg paradox [17:35] hehe, yeah [17:35] SNI is supposed to hint at the right domain [17:35] or, one more motivating factor behind ipv6 :) [17:35] before the connection actually happen [17:35] I'm just having trouble with my config now I suppose [17:35] .. but sni assumes all domains you're hosting on that IP are supposed to have SSL :) [17:36] you _could_ segregate your hosts onto two IPs: the first IP for ones with ssl, the second one for hosts without ssl [17:36] ugh this is getting worse [17:36] most providers will sell you a second IP for sometihng like $5/mo. not too bad. [17:36] hmm I don't think I can assign two IPs to myu server. I'm on AWS [17:38] winterpk: that might be "elastic IPs" in the console.. [17:38] right, but I think I can only assign 1 per [17:38] stupid === r0tha_ is now known as r0tha [17:38] oh? hrm. that is stupid. [17:41] winterpk: oh, check out the section titles "Assigning an Elastic IP Address to the Secondary Private IP Address" here http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html [17:41] sarnold should i leave smoothwall and use a different firewall/router ? [17:41] hmm ok [17:42] kearneykid: maybe? :) [17:43] what would ye recommend because this is really annoying me. [17:47] any ideas on what to try? [17:50] hmm so aws has this virtual nic i need to implement. weird === wedgwood_away is now known as wedgwood [18:34] hallyn_, can you do me a favor and mark this triaged until we learn different? Thanks. https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1178721 [18:34] Launchpad bug 1178721 in multipath-tools "multipathd fails to create mappings when multipath.conf is present" [Undecided,Confirmed] [18:34] e === lool- is now known as lool === wedgwood is now known as wedgwood_away === wedgwood_away is now known as wedgwood [20:44] Can anyone see anything wrong with this rule for allowing ssh in from a specific ip? [20:44] /sbin/iptables -A INPUT -s 192.168.0.99 -p tcp --dport ssh -m state --state NEW,ESTABLISHED -j ACCEPT; /sbin/iptables -A OUTPUT -d 192.168.0.99 -p tcp --sport ssh -m state --state ESTABLISHED -j ACCEPT [20:55] It doesnt allow new connections to be established (outbound in return to inbound new) [21:12] Holaaa [21:22] kathy2: hi [21:22] slide23: not really [21:23] How are you? [21:23] fine, thanks [21:23] emmm [21:23] ok [21:23] ;) [21:24] so what up? [21:37] i configured smtp and all mails are marked as spam [21:38] i have defined the spf in the txt dns record [21:38] and configured openkim [21:38] what do i miss [21:38] hxm: which tool said your mails are spam? did it give you any reasoning? [21:39] gmail and hotmail, they just redirect to a generic page for many reasons [21:44] hxm: you could try this.. https://ers.trendmicro.com/reputations/index === yeats_ is now known as yeats === mikal_ is now known as mikal [23:35] I want to build a clustered/distributed web server using virtual boxes for learning purposes, is there a good link/book i could read ? thanks.