/srv/irclogs.ubuntu.com/2013/03/15/#ubuntu-server.txt

qman__I think I'm running into bug 63339200:00
uvirtbotLaunchpad bug 633392 in linux "Bridged Guests losing network connectivity" [High,Expired] https://launchpad.net/bugs/63339200:00
qman__unfortunately it went unresolved00:00
qman__I'll try unbonding and see if it solves the problem00:00
qman__yep, it did00:05
qman__so I guess bonding + bridging + kvm is broken00:05
patdk-lapcan't say I ever joined bonding + bridging00:06
qman__bonding + bridging works great on the host OS00:06
qman__it just breaks stuff with the KVM guests00:07
qman__not sure where the fault is00:07
patdk-lapbonding and bridging on the host and normal nic on kvm guest?00:07
qman__yes00:07
qman__both normal nic and a guest with a bridge00:07
qman__same thing happens to both guests00:08
patdk-lapand firewall rules on the host?00:08
qman__accept all00:08
qman__it just has the normal KVM stuff00:09
qman__or libvirt00:09
qman__or whatever puts it in there00:09
patdk-lapjust thinking :) I normally put a firewall on the host00:09
qman__yeah, this is all externally secured00:09
RoyKbonding on the host, not the guest?00:10
qman__yes00:10
RoyKwhat sort of bonding?00:10
qman__balance-rr00:11
qman__I don't have smart hardware00:11
qman__unmanaged switch, two different types of NIC00:11
RoyKbonding to a single switch?00:11
qman__yes00:11
RoyKthen why not LACP?00:12
RoyKshould work well00:12
RoyKperhaps not to a dumb switch, though00:12
qman__yeah, I don't think I can00:13
qman__I just wanted to try and squeeze some more bandwidth out of it00:13
qman__it's not critical, just annoying that it's broken00:13
RoyKget a good switch00:13
RoyKwell, file a bug report00:13
RoyKif enough users/developers think it's a problem, it'll be solved00:14
MraAlbertinahi. could you please help me sonve this issue; "perl: warning: Setting locale failed." Pastebin: http://pastebin.com/p3N17prX00:26
MraAlbertinasonve/solve..00:27
sarnoldMraAlbertina: 'locale -a' will show you the installed locales on your system00:28
sarnoldMraAlbertina: I guess one of your locale variables there is not one of the legal values reported by locale -a00:28
MraAlbertinawow... i need to discover where that is00:29
MraAlbertinasarnold: i have a C and C.UTF-8 after 'locale -a' everything else seems ok (all en_**.utf8)00:30
MraAlbertinai have no clue where that C is coming from. might that be the problem?00:31
sarnoldMraAlbertina: "C" is the safe fallback :)00:32
MraAlbertinaoh00:32
MraAlbertinaoh, another entry i have is POSIX, besides that C and all en*00:32
MraAlbertinais it possible to reconfigure locale, in a quick fix, sarnold ?00:35
qman__pretty sure this one is the problem: LC_ALL = (unset),00:35
MraAlbertinabecause everything seems ok, with locale -a00:36
qman__there's a dpkg-reconfigure you can do to set the locale00:36
qman__I can't remember which package though00:36
MraAlbertinai saw that LC_ALL = (unset) somewhere00:37
qman__related: http://ubuntuforums.org/showthread.php?t=172035600:37
qman__shows three methods to fix, in the order you should try them00:37
MraAlbertinaoh, ya, on the first "warning" i got, in the pastebin00:37
MraAlbertinaLC_ALL = (unset),00:38
MraAlbertinaokay, thanks so much qman__00:38
MraAlbertinathanks sarnold00:39
sarnoldMraAlbertina: what fixed it? :)00:39
MraAlbertinagoing for a reboot after editing /etc/environment  and i'll tell you :)00:40
MraAlbertinasarnold: adding: LC_ALL="en_GB.utf8" -to- /etc/environment and rebooting solved it00:44
sarnoldMraAlbertina: excellent :) thanks00:44
MraAlbertinathanks for discovering that qman__00:44
patdk-lapisn't bond-mode balance-tlb going be better than balance-rr?01:10
patdk-lapbalance-rr when using a single switch, can cause out of order packets01:10
patdk-lapthat might be your issue01:10
patdk-lapthe other one, balance-a?? can cause issues with devices that depend on the mac being static (cable modems, some switchs management interface, basically anything using mac for a security cookie)01:12
sarnoldqman__: ^^^01:12
qman__while that's possible I don't think it's the problem at hand, when watching a tcpdump, the arp requests go through the bridge and get back to my host, but simply don't get to the guests, most of the time01:12
qman__and the host has no issues at all communicating with the rest of the network over the bridge on the bond01:13
patdk-lapya, I imagine the balance-rr issue will be more if you load the interfaces up good01:14
patdk-lapI believe I have seen that arp issue before01:14
patdk-lapbut it's been awhile01:14
qman__likewise, real hosts on the LAN can reach the guests just fine, it only applies to the guests trying to initiate01:15
patdk-lapI've defently seen that before01:16
patdk-lapbut totally can't remember what it was01:16
patdk-lapI don't use kvm, but used to use xen with bridges like that01:16
autoditachey everyone. is this the right channel to ask questions regarding nfs on ubuntu?01:40
autoditaci' d be glad if someone could give me a hint regarding posix acls and nfs4 on ubuntu.01:41
autoditacquestion is: will posix acls be applied if i access a ext3 filesystem with heavy usage of acls using nfs 4 without using kerberos? i have the same userbase both on the client and the server (LDAP)01:44
xnoxyes, but they will be able to bypass it, if they have root on the client.01:44
autoditachi, xnox :)01:45
autoditacxnox, users don't have root access on the client. furthermore, no_root_squash is not set01:46
autoditaci was just wondering if the nfs4 acls and posix_acls map and if the acls get enforced on the server or on the client side?01:48
patdk-lapenforced on the client01:50
buengenioguys, can somebody please recommend a shared calendar server/service?02:02
patdk-lapgmail?02:02
resnobuengenio: google calendar?02:02
* resno highfives patdk-lap 02:02
patdk-lapjust dunno what a shared calendar server/service is02:03
patdk-laplike a community calendar? a wordpress plugin?02:03
buengeniono, like a caldav02:03
patdk-lapor like exchange/outlook? a webmail thing?02:03
patdk-lapisn't caldav a protocol?02:03
buengenioexchange/outlook type of thing but that can work with Outlook/Thunderbird/Mail, etc....02:03
patdk-lapheh?02:03
sarnoldgood luck with outlook :/02:04
patdk-lapoutlook does it's own thing02:04
holsteinyou can use google cal with those02:04
buengenioI'd love to say that to our boss02:04
patdk-lapand last I knew thunderbird and that doesn't support calanders02:04
resnoim still suggest google calendar02:04
patdk-lapbuengenio, install exchange02:04
buengeniono thank02:04
buengeniono thanks02:04
resnocan you even install exchange in linux?02:04
sarnoldbuengenio: iirc there's a horrible plugin thingy for outlook to make google calendars work there. I'm sure they did their best, but I don'tthink outlook was meant to have plugins. so.02:04
buengeniobut boss is sticking with Outlook till dies irae02:04
patdk-lapI run exchange 2010 currently, not a big deal02:05
patdk-lapbuengenio, next best thing, outlook365 :)02:05
buengenioisn't there something OSS?02:05
buengeniostandards based02:05
buengeniothat works everywhere?02:05
patdk-lapthere are standards?02:05
sarnoldbuengenio: it's the "works everywhere" that fails, outlook doesn't want to play that game.02:06
patdk-lapoutlook has no standards, atleast till outlook 2013, then it can use activesync02:06
sarnoldbuengenio: and iirc nothing else really speaks exchange02:06
sarnold(client-side)02:06
holsteinowncloud02:06
patdk-lapI guess you could install horde webmail, setup activesync, then use outlook201302:06
patdk-lapI have not *tested* that though02:06
resnotheres zimbra02:07
resnozimbra the paid versoin speaks it02:07
patdk-lapthere is always openchange02:07
patdk-lapno idea how well that works02:07
sarnoldbuengenio: I've heard good things about http://en.wikipedia.org/wiki/Open-Xchange but never used it myself02:07
shaunoI'd be wary of google calendar, their caldav access is on the chopping board02:11
buengenioTheir biggest problem is that adding event invitations sent to a non GMail address doesn't work02:12
buengenioAt least in Thunderbird02:12
patdk-lapheh?02:12
buengeniowhich is what almost everyone uses at the office02:12
resnoif you had users comfortable with ftp, how would you allow them to upload their files?02:17
resnowhats a resonable alternative or a secure ftp server?02:18
sarnoldresno: I'd get them comfortable with sftp right quick.02:19
patdk-lapthere is no difference between ftp and sftp these days to a user02:19
sarnoldexcept no more baffling image vs text or pasv vs active :)02:20
patdk-laphmm, most programs hide that too :)02:20
patdk-lapjust when it won't work, do you have to deal with it :)02:20
sarnold:D02:21
patdk-laplike my friends router that messed up active ftp :)02:21
resnois sftp that much improved over ftp?02:21
patdk-lapresno, yes and no02:22
resnoim sure the "s" brings secure, but is it night and day02:22
patdk-lappersonally I hate sftp02:22
resnoi hate s/ftp02:22
patdk-lapbut it uses a single connection, unlike ftp, fixing nat issues02:22
patdk-lapand it uses ssh02:22
patdk-lapso it just works better :)02:22
resnooh?02:22
resnoso, i wouldnt need an ftp server?02:23
patdk-lapdepends02:23
patdk-lapmost ftp servers these days support sftp too02:23
resnoyou give me hope and then snatch it away02:23
patdk-lapbut give you more control than ssh will give you for sftp02:23
patdk-lapall depends on what goal you have02:23
patdk-lapuse ssh for both02:24
patdk-lapor use like proftpd for sftp02:24
patdk-lapI think pure-ftp does it too now, but haven't checked02:24
resnotheres 3 main ftp servers right?02:24
patdk-lapwhat is *main*?02:24
resnouhm02:26
resnoill look into proftpd02:26
resnoive managed to avoid ftp being installed, so i want to make sure its all good and secure02:26
patdk-lapthere is one issue with that :)02:27
patdk-lapyou can't have both proftpd and ssh both listening on port 22 (I believe, maybe they did a passthough thing?)02:27
patdk-lapso you would have to move normal ssh to another port02:27
resnoyou cant have proftpd listen on another port as well?02:28
resnoseems like a reciepe for disater02:28
patdk-lapif you have it listen on another port, it will confuse users02:28
patdk-lapwhen they use the default port :)02:28
sarnoldman, i'd so much rather just rely on sshd to do sftp rather than get one of the ftpd servers involved.02:28
patdk-lapsarnold, like I said it depends :)02:29
patdk-lapthe ftp server has more control, than ssh gives you per user02:29
patdk-lapand personally, I love file upload notifications02:29
patdk-lapso I can realtime scan and check files people upload02:29
resnopatdk-lap: do you do that even for trusted users? ie) coworkers02:30
sarnoldsomething that'd be annoying to put together with imcron and sshd over a few thousand users :)02:30
resnoi dont know your enviroment02:30
patdk-laptrusted users? those exist?02:30
patdk-lapanyones account could be compromised02:30
resnotrue02:30
resnohmm, i didnt think of that actually02:30
=== VD is now known as Guest32085
=== freeflyi1g is now known as freeflying
=== smb` is now known as smb
jamespageyolanda_, https://code.launchpad.net/~james-page/python-quantumclient/grizzly-2.2.0/+merge/15351209:36
jamespagewhen you get a chance please :-)09:36
yolanda_jamespage, meeting09:36
jamespageyolanda_, (I know :-))09:37
nailorasarnold: i found this https://bugs.launchpad.net/ubuntu/+source/linux/+bug/100840009:54
uvirtbotLaunchpad bug 1008400 in linux "Ubuntu server uses CFQ scheduler instead of deadline" [Medium,In progress]09:54
yolanda_jamespage, i'm looking the code at the diff, i see that in changelog * debian/control: Set version minimum for python-cliff (>= 1.3.1).10:00
yolanda_but i don't see that reflected in the diff, is that from a previous commit?10:00
jamespageyolanda_, yeah - it needed a tweak in the changelog to drop the ~10:21
jamespageas changelog and change did not actually match10:21
yolanda_approved it10:22
jamespagebug 115555611:39
uvirtbotLaunchpad bug 1155556 in maas "HP ProLiant DL380 G7 tftps kernel, but initrd tracebacks in tftp server.  DL380 G6 succeeds." [Undecided,New] https://launchpad.net/bugs/115555611:39
jamespageadam_g, reviewed and uploaded to folsom CA11:45
jamespageadam_g, I swept that and the django fix through to -updates11:45
smoserroaksoax, jamespage woot, isc-dhcp in raring with our no maas no-uuid patch.12:15
smoserer.. what ever that patch was. thansk to stgraber12:15
jamespagesmoser, great!12:15
roaksoaxsmoser: nice!!12:43
smoserroso i guess actualy, in raring you should modify maas to use that.12:44
smoserin its default config.12:44
zetheroogot a couple ubuntu servers both running 12.04.2 here  ... one looks like this when logged in "[root@mars ~]#" while the other looks like this "root@saturn:~#" ... why does mars have those brackets ?13:02
patdk-wkprobably cause of the shell your using13:03
zetherooI am accessing them both through the same terminal via ssh ...13:04
zetherooall servers are using bash shell13:07
zetherooweird ... I closed the saturn session and reopened it and now saturn has those brackets ... [root@saturn ~]#13:08
jamespageadam_g, http://people.canonical.com/~jamespage/ca-updates/13:26
jamespagequantumclient and new version of python-django-compressor for horizon13:26
crankharderwhat is it about this builder command that I can't ssh or telnet into the host once it's built & started?  https://gist.github.com/crankharder/c0063a365996f90b170c13:33
ttxjamespage: cinder milestone-proposed cut13:39
jamespagettx, ta13:39
* jamespage switches configs13:39
sorenDaviey: There's a question for you(r team) in my post to the tb mailing list earlier today. Would you mind (having one of your minions) taking a look?13:51
=== wedgwood_away is now known as wedgwood
Davieysoren: I am the minion to the cretins. :)13:57
sorenDaviey: That's the spirit.13:59
Davieysoren: I'll reply to that.. just not right now. Thanks for raising it13:59
sorenDaviey: By extension, is... err.. Rick Spencer  your minion?13:59
Davieysoren: The higher you go, the least important you become.. so yes :)14:00
DavieyI say jump. and he says,14:01
Daviey"your're fired"14:01
pmatulishmph, on quantal (at least) i see that 'deluser --remove-home' does not remove the home directory, just the files14:05
CrovesHello guys! I'm trying to install Ubuntu Server 12.04 i386 on a XenServer Virtual Machine, but when I try to install the sistem, I get this error: "Your installation CD-ROM couldn't be mounted. This probably means that the CD-ROM was not in the drive. "14:12
CrovesAny idea?14:12
saki`hi ho14:18
saki`i was wondering14:18
saki`if i could run an ubuntu server OS off a live usb?14:18
melmothsaki`, http://en.wikipedia.org/wiki/Ubuntu_Live_USB_creator14:21
crankharderwhat is it about this builder command that I can't ssh or telnet into the host once it's built & started?  https://gist.github.com/crankharder/c0063a365996f90b170c14:23
CrovesAnyone here is familiar with XenServer?14:23
saki`thanks melmoth14:29
saki`maybe i should mention14:29
saki`i'm going to be trying to run this off it: http://www.sourcefabric.org/en/airtime/download/14:29
melmothsaki`, the usb creator thingy let you have a "stat" in your live usb system. wich means, any change you make, will be there after a reboot.14:31
melmothso you can apt-get install or compile stuff you need, and they will be available on the usb stick.14:31
melmothall you need is... space on the key.14:31
saki`okay cool, so a persistent install or whatever yeah?14:32
saki`thanks melmoth.14:32
melmothindeed.14:32
melmothwhen you create the key, you have an option about "casper", that s the persistant stuff14:32
melmothbasically, it ask you how much space you want to allocate to the persitsant storage (if i understand correctly)14:33
saki`ah ok14:33
melmothi dont kow the details, i just know it "just worked" last time i needed it14:33
saki`hmm this seems to require me to compile it somewhere. if this works let me try and use a windows based installer instead.14:34
saki`as in, if it works anyway14:34
saki`you wouldn't happen to know of one would you melmoth? the only one i know of is YUMI, and that's for multiboot stuff14:38
melmothnope, sorry.14:39
saki`ah no worries14:40
saki`found one14:40
zetherooin trying to setup glusterfs here I am running into this message and cannot seem to find a fix that works for me:  /mnt/gluster or a prefix of it is already part of a volume14:45
=== wedgwood is now known as wedgwood_away
=== wedgwood_away is now known as wedgwood
=== HappyLoaf is now known as Gemma-and-Sp00n
=== Gemma-and-Sp00n is now known as HappyLoaf
=== HappyLoaf is now known as Mr_Spock
=== Mr_Spock is now known as HappyLoadf
=== HappyLoadf is now known as HappyLoaf
hrenovoso to add a rule with ufw I do something like this "ufw allow 8080" , now how can I delete this rule from showint up in "ufw status" ?15:33
jpdshrenovo: That's... not suppose to be done?15:33
jpdsWhy would you add a rule, then hide its existance?15:34
hrenovoif I no longer need it15:34
hrenovonot hide, just get rid of it15:34
hrenovoi gigured it out15:34
hrenovoits ufw delete allow 808015:34
hrenovolike that15:34
jpdshrenovo: Ah, right. :)15:38
fabiofrancosomething weird is happening with my tomcat7 and mysql server. when I add firewall rules with iptables to open the port 8080 and 3306 and add the last rule dropping everything else the communication between tomcat7 and mysql just stops... any thoughts?16:45
patdk-wkfabiofranco, thoughts without seeing the rules?16:57
fabiofrancosure, I add: iptables -A INPUT -j ACCEPT -p tcp --dport 8080, iptables -A INPUT -j ACCEPT -p tcp --dport 3306 and finally iptables -A INPUT -j DROP -p tcp16:58
fabiofrancojust those three... and after I add the last one the communication stops immediately16:59
fabiofrancoI add the one open ssh too of course16:59
qman__you need to add rules to allow all traffic on the loopback interface16:59
fabiofrancoqman__ example pls?17:00
adam_gjamespage, those 2 new CA updates LGTM17:00
qman__iptables -A INPUT -i lo -j ACCEPT17:01
qman__iptables -A OUTPUT -o lo -j ACCEPT17:01
fabiofrancoqman__ i see.. gonna give a try17:02
qman__also, it's conventional to put the -j at the end of each line17:03
qman__not sure if it affects the rules17:03
qman__but if it does, your last rule could mean iptables -A INPUT -j DROP, which would certainly not be great17:04
qman__also, do you have rules for established traffic?17:04
qman__iptables -A INPUT -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT17:04
fabiofrancono, I dont17:05
qman__you definitely need that too17:05
fabiofrancogonna apply it right now17:05
jamespageadam_g, great - ta17:07
fabiofrancoqman__ do you think the last rule should be iptables -A INPUT -j DROP?17:10
qman__it can but that will break all icmp and udp traffic17:12
qman__so if you want any of either, make sure you allow it first17:12
fabiofrancoqman__ I see... gonna try it17:13
fabiofrancoqman__ it worked... thanks a lot17:17
jamespageadam_g, that horizon oddness with firefox is fixed with the new version of django-compressor17:24
adam_gjamespage, great17:25
adam_gjamespage, which projects are we waiting on for RC1?17:25
jamespageadam_g, most of them17:25
adam_gah17:26
jamespagequantum and cinder have released rc1's17:26
jamespageI started on quantum17:26
jamespagebut noticed the watch file does not work that well and got distracted....17:27
jamespageadam_g, MP for quantum rc - https://code.launchpad.net/~james-page/quantum/grizzly-rc1/+merge/15360617:34
adam_gjamespage, nice.17:35
jamespageadam_g, I think all the required deps are in the grizzly-staging PPA now17:35
jamespagethere are a few catchups outstanding but nothing critical.17:35
adam_gjamespage, when i got online, saw a precise+grizzly test had just failed on volume creation. hope its something transient. :)17:36
jamespageadam_g, hmm - worked a few minutes ago - I'll try again17:36
jamespageadam_g, btw I'm working on a tool to make backporting easier17:37
jamespageca-backport-package 'os_series' 'package' 'Comment for Changelog'17:38
adam_gjamespage, hah17:38
jamespagehopefully it will mean the only thing you can get wrong is the changelog comment :-)17:38
adam_gjamespage,  i just did this yesterday http://paste.ubuntu.com/5617160/17:38
jamespageadam_g, lol17:39
jamespagegreat minds and all that17:39
jamespagewe should consolidate stuff17:39
jamespagemines a bit more hacky write now17:39
adam_gjamespage, yeah, what are your thoughts on making this automated, in response to the version_drift failing?17:39
jamespageadam_g, I'd be up for that - I implemented the changes we discussed in the CA archive admin tooling to help support that today17:40
jamespageca admins now get the change details so can choose to ignore things.17:40
adam_gjamespage, where do you envision the bot pushing the auto-built backports? straight to the staging PPA or somewhere for a human to do that?17:41
jamespageadam_g, cinder looks OK to me - http://paste.ubuntu.com/5617170/17:41
jamespageadam_g, I think step one would be to put it somewhere for a human to review, sign and upload17:41
jamespageadam_g, but so long as that proves reliable then full automation ++17:42
adam_gjamespage, thats what i was thinking. a staging-staging-PPA so we can ensure builds, as well17:42
adam_gneed to step away. back in 1017:43
jamespageadam_g, yeah - one that inherits of the staging PPA would be neat17:43
jamespagehmm - that give me a thought17:44
jamespagewe could just write a tool that pulls stuff from there, signs the packages and uploads them to the true staging PPA17:44
jamespageactually thats almost an extension of the tool I already wrote for syncs staging->proposed->updates17:45
jamespageadam_g, other thing I have been doing is switching the build configs from master -> milestone-proposed as the branches are cut17:47
jamespagedone for cinder and quantum - ttx has been good at pinging me when that has happened17:48
jamespageadam_g, if you agree with the approach I took in the mysql charm re openstack-charm-helpers I'll add that to tha ha-helpers branch, re-sync swift-proxy and start working on keystone on monday17:50
jamespageI guess the unison helper could live in charm-helpers as well.17:51
jamespageAnd then we can write some unit tests.17:51
jamespagew00t17:51
adam_gjamespage, +1 to all that. do the branches that have a milestone-proposed also have havana version bump in master?18:04
jamespageadam_g, yes18:04
jamespagebut due to the way we override the OSLO version number in the lab we don't get busted by that18:04
jamespagei.e. the release created is always 2013.118:04
jamespageadam_g, OK - I have to go now18:05
jamespageadam_g, weekend and all that - I will check back in a bit later +3 hr18:05
jamespagettfn18:05
adam_gjamespage, k, looking at the mysql stuff now. after we merge that i'll sync the helpers branch with those changes + anything else still pending18:05
jamespageadam_g, ahead of you - lp:~james-page/openstack-charm-helpers/ha-python-updates18:06
jamespagefeel free to merge - I added headers over the mysql versions to tell people its part of openstack-charm-helpers18:06
adam_gdoh! :)18:06
HelloWorld321I'm looking at a resolved help-forum post that seems similar to my problem (http://boards.portforward.com/viewtopic.php?f=3&t=9910&sid=201967eaaef5c2335ed22ea5a811c5d3&start=10) and I don't know what the poster means in his resolution: "I noticed that the net:bind_ip in utorrent was set to a different internal IP address than the static one assigned my computer, so I just cleared this, so the field was blank.".  I'm not 18:35
HelloWorld321What is net:bind_ip?18:35
sarnoldHelloWorld321: you were cut off at "I'm not"18:37
swHelloWorld321: net:bind_ip is the IP address that it binds too. from their website: net.bind_ip: If your computer setup requires that you use a specific LAN adapter for incoming connections, you may specify that adapter's IP address here.18:37
sarnoldHelloWorld321: when a program listens on a socket, it binds a socket to a port on an IP18:37
sarnoldHelloWorld321: the usual interface is, if no IP address is specified, bind that port on _all_ IPs the machine uses. If an IP is specified, then bind only on that IP, so other IPs on the machine don't expose the service -- or can run a different service.18:39
HelloWorld321thanks.  so I can find that in netstat?18:53
HelloWorld321(cut off at "I'm not"):  ... using utorrent, I'm trying to set up an ftp as a proof-of-concept, since I figure ftp is pretty standard (maybe a little too standard: I'll disable it for security once I figure out what's going on with my router), ...18:53
HelloWorld321but I don't know what the net:bind_ip is or where to clear it18:54
sarnoldHelloWorld321: yikes, ftp is a pain in the butt all around :) active vs passive connections is extremely irritating.18:55
HelloWorld321I was supposiung that it would be easy, because it was so old and so standard18:55
HelloWorld321(afk4lunch!)18:55
HelloWorld321bak19:28
HelloWorld321I'm able to hit the ftp server from inside the network, so I suppose that the hsot is set up properly19:28
hrenovohi. iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE19:30
hrenovoI have this rule added in iptables19:30
hrenovois there a way to add it in ufw ?19:30
hrenovoif I enable ufw this rule is blocked19:30
HelloWorld321My system is listening for ftp on all ip addresses (http://pastebin.com/WjhZtzTX) and I'm having no trouble reaching the ftp server from inside my network, so I believe that my original question about checking/clearing net:bind_ip is not really the issue.  Is that correct?19:46
qman__HelloWorld321, that is correct19:52
qman__FTP is ancient and poorly designed, and does not play well with NAT19:53
qman__http://mywiki.wooledge.org/FtpMustDie for more information19:53
qman__the short if it is, don't use FTP, SFTP is in all ways superior and you probably already have it19:53
PiciAlso ,don't confuse FTPS is not SFTP19:56
PiciAlso ,don't confuse FTPS with SFTP19:56
* Pici confuses himself sometimes19:56
Picier, not with that, with typing the right thing.19:56
HelloWorld321okay, I'll take that into account.  But for now, my point isn't actually to set up an FTP server., it's to set up my router.  I just want to hit anything inside my network from the world IP address.19:58
qman__HelloWorld321, FTP is the worst possible protocol to test that with19:58
qman__becuase FTP specifically will not work over a NAT without lots of hacking19:59
HelloWorld321I used to run a Ventrilo server, but I had to stop when I got a different router, so now all my gamer friends are bummed.19:59
HelloWorld321okay, what's the simplest application to test that with?19:59
qman__http or ssh19:59
HelloWorld321okay.  I have apache running on that same box.20:00
HelloWorld321I'll go open those ports and try that.20:00
=== rook is now known as Guest12763
HelloWorld321http is port 80, right?20:01
qman__yes20:01
qman__bear in mind that if you have a residential ISP, they may block it20:01
qman__many block 25, 80, and 44320:01
HelloWorld321I've thought of that.  I asked the support desk.  They said they didn't.  But they also sounded like they didn't know what "ports" are20:01
=== Guest12763 is now known as imrook
HelloWorld321and yes, this is on a residential ISP.20:02
qman__I've never seen one that blocks 22 though20:02
qman__and you can always try forwarding a high port, like 8080 -> 8020:03
imrookI'm trying to build the php5_5.3.10-1ubuntu3.6 source package, but getting "debian/setup-mysql.sh: 44: debian/setup-mysql.sh: USER: parameter not set" during test-results.txt20:03
HelloWorld321is 22 sftp?20:03
qman__ssh/sftp20:03
imrookThis was fixed back in 3.3 http://irclogs.ubuntu.com/2012/12/21/%23ubuntu-server.html20:03
imrookIs this a known regression?20:03
HelloWorld321okay, 80 doesn't work with this configuration.20:04
RoyKHelloWorld321: setup ssh and tell us the ip address - unless you have a very bad password, it should be safe to post the address for some of us to test. if you have a bad password, your box will be compromised in hours anyway20:05
HelloWorld321I have just tried to sftp localhost, and ssh to the internal ip, so sftp is setup.  My outside ip address is 98.148.120.18720:05
HelloWorld321o:20:06
HelloWorld321but I haven't opened that port yet: 2220:06
RoyKhehe20:06
qman__yeah, it's being dropped20:06
HelloWorld321okay, I think I've opened that port.20:08
HelloWorld321But I also think that that's my problem.  I'm not setting up the router properly.20:09
qman__I got a response20:09
qman__it's open20:09
HelloWorld321you see me?  freaky!  yay!20:09
HelloWorld321can you guess my password?  :P20:09
qman__The authenticity of host '98.148.120.187 (98.148.120.187)' can't be established.20:09
qman__RSA key fingerprint is 86:6a:1b:00:03:2c:85:bd:6e:2e:dc:31:50:47:6a:2a.20:09
qman__so, that part of it works20:10
HelloWorld321Hm.20:10
qman__you can check if your software is listening correctly by doing `netstat -lanp | grep $port`20:11
HelloWorld321That's not the same figerprint I'm seeing20:11
HelloWorld321I can hit ssh & sftp at localhost, but I can't hit them from the external ip I just gave you.  Would you mind hitting it one more time, tell me, then I'll disable it, and see if it stopped.  Just to make sure that it's me20:16
hallynjamespage: please do let me know if/when tests confirm the /dev/kvm issue is fixed - i'll wait until then to sru the fix.  (have written down to look at it again next w if nothing else)20:18
qman__HelloWorld321, yes, it's still working20:20
HelloWorld321This means that the box will accept ssh from anywhere?:   tcp6       0      0 :::22                   :::*                    LISTEN20:20
qman__HelloWorld321, most NAT routers won't route traffic back in destined for your external IP20:20
qman__you have to specifically configure it20:20
qman__so, you can't reliably test the setup from inside your own network20:21
HelloWorld321I have stopped forwarding port 22, see if you can hit it now.20:21
qman__nope, dropped20:21
HelloWorld321Nifty.  So I'm onto something here.20:21
HelloWorld321and the reason I couldn't do the same with ftp was because it was the hardest example, not the simplest20:21
qman__yes20:21
qman__FTP requires ports 20 and 21, in addition to a range of high ports20:21
HelloWorld321lemme try http now ...20:21
qman__and your FTP server must be configured with those high ports, and must also be configured to hand out your internet IP20:22
qman__you need a minimum of 3 open ports to handle a single connection20:22
HelloWorld321I would suppose that it's generally safe to leave port 22 (ssh) open, as long as I have a strong password policy in place?20:23
qman__it's actually best to disable password authentication20:23
qman__but if you have strong passwords it should be ok20:23
qman__it's also advisable to limit brute forcing through things like fail2ban or a rate limiting firewall20:23
HelloWorld321would you mind trying to hit me at http://98.148.120.18720:23
qman__squirrelmail20:24
HelloWorld321that's right.  Thanks!20:24
HelloWorld321This was driving me nuts!20:24
imrooksshguard is also an easy and effective solution to prevent hammering on 22.20:24
HelloWorld321For http, I would suppose I only need TCP open, not UDP?20:27
HelloWorld321Thanks qman__, imrook, RoyK.  I was totally stuck on that.20:29
qman__HelloWorld321, for all of the above, only TCP is needed20:30
HelloWorld321I'ma secure my ssh in all the ways you've said:  disable password authentication, fail2ban, and sshguard.20:32
HelloWorld321fail2ban was already installed and auto-configured.  I've poked abuot that documentation, and don't understand a word, from which I'll infer that the default configuration is reasonable?20:41
HelloWorld321I've installed sshguard 1.5-4 from the package, and the developer site says that post 1.5 there is zero configuration.  Is that correct?20:55
imrookIf you're just protecting sshd, then yes20:55
imrookAside from the bug I reported that hasn't been closed yet20:55
imrookHaving the string 'ssh' in your hostname causes the regex to fail and sshguard will not properly detect failed login attempts20:56
HelloWorld321bummer.  k.  that won't be a problem for my hostname20:56
sarnoldimrook: hah :)20:58
HelloWorld321I now beleive I have my port 22 open, sshguard & fail2ban installed, and password authentication turned off for ssh at 98.148.120.187.   Care to verify?21:29
sarnoldHelloWorld321: Permission denied (publickey).21:30
sarnoldno password prompt. woot.21:30
HelloWorld321That's good, right?  Yay, I did it.  Thanks.  That's pretty cool.21:31
HelloWorld321Now I can run around opening other ports21:31
HelloWorld321I tell ya: it was driving me NUTS!21:31
HelloWorld321I totally thought I had a bum router21:32
sarnold:)21:33
dsmythiesHello, I am not normally on IRC, and am actually somewhat IRC challenged, but there is an issue I was hoping to get help with.22:31
dsmythies.22:31
dsmythiesThe computer is an Ubuntu Server 12.04 LTS with no GUI. To install a virtual machine (a ubuntu 12.04 server again) I am following the Ubuntu Serverguide Virtualization chapter, sub-section 1 Libvirt.22:31
dsmythiesThe problem is that I can not figure how to complete a virtual machine installation, without either a GUI or a 2nd computer with a VNC viewer client.22:31
dsmythiesThe serverguide sub-chapter mentions both virt-manager and virt-viewer, but both require a GUI.22:31
dsmythiesI finally figured out that I could use another computer with both a GUI and a VNC viewer client, if I used this command:22:31
dsmythies.22:31
dsmythiessudo virt-install -n virt32_01 -r 128 --disk path=/var/lib/libvirt/images/virt32_01.img,bus=virtio,size=12 -c ubuntu-12.04.2-server-i386.iso --accelerate --network network=default,model=virtio --connect=qemu:///system --graphics vnc,listen=0.0.0.0 --noautoconsole -v22:31
dsmythies.22:32
sarnolddsmythies: (please don't use . to try to add paragraphing to irc :)22:32
dsmythiesThe important part of the command being: "--graphics vnc,listen=0.0.0.0"22:32
dsmythies.22:32
dsmythiesMy question: Is there a (Libvirt) way on a non-GUI server without involving other computers?22:32
dsmythies.22:32
dsmythiesReferences:22:32
dsmythieshttps://help.ubuntu.com/12.10/serverguide/libvirt.html22:32
dsmythieshttps://bugs.launchpad.net/serverguide/+bug/112964922:32
uvirtbotLaunchpad bug 1129649 in serverguide "Chapter 20 - Subsection 1 - Virtualization - Libvirt needs updating" [Undecided,In progress]22:32
dsmythieshttp://ubuntuforums.org/showthread.php?t=211641522:33
dsmythies.22:33
sarnolddsmythies: have you tried leaving off the --graphics command line option?22:33
sarnolddsmythies: I use the 'uvt' wrapper to build, snapshot, and revert VMs, no VNC required: https://wiki.ubuntu.com/SecurityTeam/TestingEnvironment22:33
sarnolddsmythies: .. though it is Yet Another Tool to configure.22:33
dsmythiesIf I leave off the --graphics line, then I am unable to connec to anything.22:34
dsmythiesI do not know of "uvt", but will look into it. Right now I am specifically trying to use virt-install...22:34
dsmythiesIn the end, I hope to edit the serverguide itself with better emphasis on a non-GUI server.22:35
sarnolddsmythies: uvt doesn't do anything that you couldn't otherwise do, but it does make it easy to ignore the virt-* details :D22:35
dsmythiesBefore the --graphics stuff, this is the command I was trying:22:39
dsmythiessudo virt-install -n virt32_01 -r 128 --disk path=/var/lib/libvirt/images/virt32_01.img,bus=virtio,size=12 -c ubuntu-12.04.2-server-i386.iso --accelerate --network network=default,model=virtio -v22:39
luminoushello! what is the ubuntu solution to easily encrypting/decrypting a directory23:24
luminoussimilar to truecrypt, but not tc23:24
sarnoldluminous: ecryptfs if you just want directories; dm-crypt on an entire block device if you want everything...23:25
luminousthe fuse encfs?23:25
luminoussarnold: ^^23:26
tyhicksluminous: ecryptfs and encfs are similar23:27
tyhicksluminous: you get to choose :)23:27
luminousbut not the same23:27
tyhicksno, different implementation23:27
luminousinteresting.. i will need to read more23:27
tyhicksecryptfs is an in-kernel filesystem, encfs is fuse based23:27
luminousgreat!23:28
* luminous does not like fuse23:28
tyhicksecryptfs will get you a little better performance, encfs probably has more knobs and features (but I haven't looked at it in a while)23:28
luminousll i need is to be able to do is copy/store a git repo and some files23:29
luminousto confirm, encryptfs requires one to decrypt, edit/update/read, then encrypt, w/ encryption/decryption initiated manually - correct?23:30
tyhicksluminous: no, it does it all transparently23:30
sarnoldluminous: ecryptfs is intended to be transparent -- once mouted, the decryption and encryption happen for you23:31
tyhicksluminous: it is a stacked filesystem that goes on top of your existing local filesystem23:31
luminousor, said another way... if in use, it is readable to all / like a normal directory23:31
luminousit has to be unmounted to be 'protected'23:31
patdk-laponce unlocked it's usable by the whole system, yes23:31
luminousk, good to know, ty23:31
tyhicksluminous: yes... it is close enough to be considered a posix compliant filesystem23:31
sarnoldluminous: if you're instead wanting git to store remote repositories encrypted, there's a tool for that specifically under development: https://github.com/blake2-ppc/git-remote-gcrypt23:33
luminousthat's cool23:33
luminousi'll check it out, though i do want to feel reasonably confident in the setup23:34
sarnoldno doubt ecryptfs has seen more development time and more peer review :)23:34
luminousyea23:35
luminousthanks for your input!23:38
luminousit is apprecited23:38
sarnoldhave fun :)23:38
luminousoh, and if interested in this stuff.. have a peek at crypton.io23:39
sarnoldnice :)23:40
luminousyea :) still early, but very promising23:40
luminousand backed by spideroak.com23:40
=== wedgwood is now known as wedgwood_away

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