/srv/irclogs.ubuntu.com/2008/12/01/#ubuntu-server.txt

uvirtbotNew bug: #303835 in openssh (main) "Typo in ssh_config man page" [Undecided,New] https://launchpad.net/bugs/30383501:56
vertxHi, I have this ubuntu server which still does not route packets across its 2 NICs, eventhough I have enabled net.ipv4.ip_forward=1 in /etc/sysctl.conf. Routing on both gateway and clients are as shown at http://paste.ubuntu.com/78524/ . Can anyone help? Thanks.01:59
jmarsdenvertx: Did you sudo sysctl -p  after editing sysctl.conf?02:02
vertxHi, I have this ubuntu server which still does not route packets across its 2 NICs, eventhough I have enabled net.ipv4.ip_forward=1 in /etc/sysctl.conf. Routing on both gateway and clients are as shown at http://paste.ubuntu.com/78524/ . Can anyone help? Thanks.02:08
hads15:02:36 < jmarsden> vertx: Did you sudo sysctl -p  after editing sysctl.conf?02:10
jmarsdenvertx: If you ask questions, it is recommended practice to then listen for answers :)02:13
vertxjmarsden: Sorry for the late reply. I had left my computer for a moment, then the network just went bust on me :(02:28
vertxhads: I had restarted the server and done what you recommended beforehand. This is the output http://paste.ubuntu.com/78535/02:28
vertxhads: As you can see, both subnets are private. Should I do a masquerade through iptables?02:29
jmarsdenvertx: Routing doesn't care about private or not IPs, it routes the way you tell it to...02:31
vertxSo, did I do anything wrong with the routing? the subnets are 192.168.0.0/24 and 192.168.1.0/24. What do you suggest I do, for client and server?02:33
jmarsdenThe server has eth0 as 192.168.0.1 and eth1 as 192.168.1.1, right?02:36
ballon two separate ethernets?02:37
jmarsdenvertx: No firewalls of any kind active?  ufw disabled?  No rules visible in sudo /sbin/iptables -L output?02:40
vertxjmarsden: The server has 192.168.0.2 on eth0 and 192.168.1.1 on eth1. They are physically separate NICs. No iptables rules currently applied02:40
jmarsdenSure looks like it should be routing packets between those NICs to me.  So at present a client on the 192.168.0.0/24 can ping 182.168.0.2 but not 192.168.1.1 or anything else on that 192.168.1.0/24 subnet?02:42
ballDo you want it be routing frames between the networks?02:43
ball(or datagrams?)02:44
jmarsdenball: I'd say yes... the original q was: "I have this ubuntu server which still does not route packets across its 2 NICs, eventhough I have enabled net.ipv4.ip_forward=1 ..."02:44
vertxjmarsden: at the moment the client (192.168.1.243) can ping 192.168.1.1 and 192.168.0.2, but cannot ping 192.168.0.3 and others :(02:45
ballAh okay.  I missed that.02:45
ballI need to add a NIC or two to this server, but I don't want routing or bridging.02:45
jmarsdenvertx: This is odd.  Anything being logged in /var/log/messages that could be relevant?02:46
L1NUX_1NS1DEhello02:46
vertxjmarsden: let me check ...02:46
L1NUX_1NS1DEdoes anyone know how to access a hostname that is on a dhcp network02:47
ballyes02:48
ballsort of.02:48
ballL1NUX_1NS1DE: from outside, or from the LAN?02:48
L1NUX_1NS1DEfrom a lan02:48
L1NUX_1NS1DEI setup a computer that I want to access02:48
L1NUX_1NS1DEI setup eth0 connection to get a dhcp address02:49
ballL1NUX_1NS1DE: Easiest way may be to tell your DHCP server to give that machine the same IP address every time.  That's what I do.02:49
L1NUX_1NS1DEhmm.02:49
L1NUX_1NS1DEoko02:49
L1NUX_1NS1DEcul02:49
L1NUX_1NS1DEI'll try it02:49
ballgood luck02:50
L1NUX_1NS1DEdanke02:50
L1NUX_1NS1DEthanks for the the help02:50
L1NUX_1NS1DE;)02:50
ballbitte.02:50
vertxjmarsden: there is only some dhcp related messages that i can see :(02:50
jmarsdenIt sounds like the kernel really is not forwarding your packets.02:51
ballI think you should hit it with a hammer02:51
vertxjmarsden: yes that seems to be the problem. weird huh?02:52
ballDoes Ubuntu Server come with any power management functionality?02:53
vertxball: that would be a great idea :)02:53
vertxSorry, got to go for a moment. BRB02:53
jmarsdenOK... when you get back try   cat /proc/sys/net/ipv4/ip_forward   and tell us what it says02:54
jmarsdenball: I'm sure it does... sudo apt-get install powertop is one way to find out how your system is doing in that regard02:58
ballThanks02:58
jmarsdenI've not tried that on a Ubuntu Server, only desktop -- but I can't imagine they would have removed all the power mgmt from server kernels...02:58
ballI'm tinkering and I wanted to take measurements with a Wattmeter in "suspend" and "hibernate"02:58
balljmarsden: I can see why they might, but if it's there I don't know how to access it.02:59
nemoegoI'm not sure if this is a client or server problem, but I am trying to run a PXE client with an NFS root and I can get to a login prompt but when I try to login i get the error "nfs: server [ip] not responding, still trying"03:00
jmarsdennemoego: Can you mount that NFS share from another (non PXE) client machine OK?03:00
nemoegojmarsden: yeah, and watching syslog, i can see the client mount the share during the init process, but I'm not sure that it's getting mounted properly as / later..03:02
ballIs there a command-line way to invoke suspend or hibernate?03:02
jmarsdenhttp://ubuntuforums.org/showthread.php?t=32990203:02
jmarsdennemoego: Hmm.  I'm not a PXE/thin client kind of person... sounds like you need one...03:04
nemoegojmarsden: lol, yeah been working on this all day, suprised my FF hasn't crashed with the number of tabs i have open..03:05
jmarsdennemoego: OK... NFS I'm fairly comfortable with, but not the whole thin client thing.  Not needed it (yet)...03:06
ballI seem to lack /etc/acpi03:07
jmarsdenball: Maybe the machine concerned doesn't support ACPI?03:08
balljmarsden: that's possible03:08
jmarsdenCAn you play with apmd and maybe find out??  APM is older, ACPI is newer, I think...03:09
hadssudo aptitude install acpid03:09
ballAh, dmesg tells me that ACPI interpreter was disabled due to an error of some sort.03:10
jmarsdenvertx: Are you back here yet?03:13
nomingzihow can I download all the Ubuntu Server Guide files from (https://help.ubuntu.com/8.10/serverguide/C/index.html) for OFFLINE Viewing ?03:14
ballBah, can't ACPI and can't apm.03:14
ballI'll have to go back to this project on a desktop machine03:14
jmarsdennomingzi: I think there is a package ubuntu-serverguide ?03:17
nemoegonomingzi: failing that, you can always use wget03:17
jmarsdenSo you can install that: sudo apt-get install ubuntu-serverguide03:17
nomingzijmarsden: many thanks, I am newbie03:21
jmarsdennomingzi: No problem.  After installing that package the files are all under /usr/share/ubuntu-serverguide/03:21
nomingzijmarsden: can u assist me how do I share this folder so that I can view it from other Ubuntu-Desktop ?03:23
jmarsdennomingzi: That's more work... easy way is to just install it on each desktop machine?  Is that workable for you, or are we talking abut hundreds of desktops?03:24
ScottKIf you have openssh-server set up on the machine already and you are accessing it from a user that has shell access to the server, just use sftp.  No more setup needed.03:27
ScottKAt least in Dolphin (the KDE file manager) you can make a persistent link to it so you don't have to remember it.03:27
nomingzijmarsden: I m just trying to learn Ubuntu-Server03:27
ScottKDunno about Gnome, but I assume you can do something similar.03:27
jmarsdennomingzi: OK, then go through the guide about networking, and then learn about Samba or NFS for file sharing.03:28
ballI have to go anyway.03:29
nomingziI am newbie, and expecting more CLI (after I switch from Ubuntu-Desktop), may b you can provide me a better start/guide to learn Ubuntu-Server :P thanks03:30
nemoegojmarsden: do you know the proper fstab entry for a NFS root? I have "/dev/nfs   /  nfs  1  1 " per https://help.ubuntu.com/community/DisklessUbuntuHowto#Creating%20your%20NFS%20installation03:34
jmarsdennemoego: Looks reasonably sane to me.  But I'm more commonly using NFS for /home or other (non-root) partitions.03:36
jmarsdennemoego: You left out a column?  /dev/nfs       /               nfs    defaults          1       103:39
nemoegoah, forgot to type, it's there03:40
jmarsdenOK.03:40
nemoegojmarsden: is there a way i can get more verbose log output from nfs-kernel-server ? maybe filenames as they are accessed?03:40
jmarsdenYow!  Probably... might be as easy to run wireshark and look at the network traffic though?03:41
nemoegojmarsden: good point.  Just commented out NFS root fstab line, no change.  Either it never mounted or fstab has nothing to do with it...03:43
jmarsdenIf you want to try it your way, I think rpcdebug may turn on some extra debugging output from the kernel for you.  But... I've never used it.03:44
jmarsdennomingzi: For basic command line stuff, try http://tldp.org/LDP/intro-linux/html/intro-linux.html03:45
nemoegojmarsden: that helped a lot "sudo rpcdebug -m nfsd -s fileop" logs all acessed files to syslog, client seems to have nfs access when i try to log in (access to shadow) but after i type the password there is access to faillog and then nothing. I checked faillog but it is empty. any ideas?03:56
jmarsdenSounds like an authentication issue... the login is failing?03:57
nemoegoin that case I should get kicked back to a login prompt, yes?03:58
nemoegoi mean, would a bad login attempt break the connection to the NFS server?03:59
jmarsdenNot sure... as root, if there are existing NFS shares mounted as root?  Maybe.  man 5 faillog and mail 8 faillog really suggest the login is failing to me.04:00
nemoegocreated new user, same error.  I think I'll try again later using a full install as a base for my nfs root instead of using debootstrap...04:09
nemoegothanks for the help tho04:09
jmarsdenOK... at least you made some progress...04:09
nemoegoyeah, gotta appriciate what you got04:10
ballaside from dmesg, is there an easy way to tell whether an Ubuntu server has sound hardware?05:51
jmarsdenball: Try aplay -l ?06:05
hadslspci06:05
=== jussio1 is now known as jussi01
nomingziI am newbie, I use OpenSSH & remote logon to ubuntu-server. HOW DO i use wget to download a folder into my PC ?08:12
Jeeves_You would need a web/ftp-server to do so08:13
Jeeves_Then: wget (http|ftp)://URL/FOLDER08:13
nomingziJeeves_: should i install web/ftp service into my remote ubuntu-server ?08:21
hadsOr just use scp08:22
philsfbetter to use rsync08:24
hadsOr scp08:25
Jeeves_nomingzi: scp or rsync will work as well08:25
nomingzimany thanks Jeeves_ philsf hads08:26
krautmoin08:30
vertxjmarsden: Whew, didn't realize that the meeting took hours. Sorry. FYI, cat /proc/sys/net/ipv4/ip_forward yields a 1.08:35
_rubenhmm .. apt-listchanges can hook into apt at install time, tho i'd rather generate a changelog-overview for packages that would be install by apt-get (dist-)upgrade, any hints on performing such a task?09:40
_rubenusing the --download-only option to apt-get might do the trick09:41
_rubenshame, it doenst10:01
ivokszul: ping11:54
=== lamont` is now known as lamont
* \sh needs some advise...php + upload file size + post_max_size == works with sizes <= 2G...everything above the magic 2GB frontier doesn't work (hardy/intrepid + amd64 server)12:24
ivokswhat client are you using?12:25
ivoksfor example, at some point in history, wget couldn't download files bigger than 2GB12:25
\shivoks: it's not a download thing...it's that firefox, ie, safari and opera are uploading the whole 3.5GB file without any problems...but php dies :)12:26
\shivoks: well, not exactly dieing...it just throws the upload away12:26
\shivoks: simple <input type="file"...> form in a html gives you that :)12:27
ivokson which filesystem?12:27
\shivoks: choose one...I use ext3 and xfs here :)12:28
\shivoks: and tmp location for tmp upload crap..is big enough...I think 1TB is enough :)12:28
maswanfilesystems on linux haven't been an issue for quite some time. is it apache 2.2?12:28
\shmaswan: more php itself...really...12:29
\shmaswan: and yes..apache2.2 + php512:29
maswan\sh: Ok. Well, php is crap, don't use it? ;)12:29
\shmaswan: grmpf..can't development needs it :)12:29
maswan\sh: Well, you better get started at fixing php then. :)12:31
\shmaswan: looks like :)12:33
\shmaswan: btw..what about your visit to Karlsruhe? any news? :)12:33
* \sh needs to plan his birthday party ,)12:34
maswanOh, right. Let me see when that ended up.12:37
maswanJanuary 14/15 200912:40
\shmaswan: that's wed + thu after the 11th ... are you in .de before that? :) well, actually those days are also quite ok...for having a beer or two in the evening :)12:40
lukehasnonamePHP isn't THAT bad, is it? I have some qualms with it, but meh... I guess Python is the hot new web scripting platform12:44
zulyarp yarp13:03
\shmaswan / ivoks: http://bugs.php.net/bug.php?id=44522 <- there it is :) yay13:05
\shand reading the php source, both variables who could be the cause are already "long" ... which means the bug is somewhere else13:10
stefgHi, i'm trying to get the ebox platform running on top of a Jeos 8.04.1 install in virtualbox in oder to set up a virtual fileserver. Unfortunately the ebox network module doesn't seem to like jeos , the network module won't run. google doesn't turn up anything useful, can anyone point me to some specialized support forum or irc channel?13:11
ivoks\sh: oh, nice :D13:14
\shivoks: looks like I found the real bugger in rfc1867.c13:14
\shI'll try to proof my guess and rebuild with a patch which should fix it...and then...let's see :)13:15
zul\sh: er...what?13:27
\shzul: http://bugs.php.net/bug.php?id=4452213:27
zulah ok13:27
\shzul: if you set post_max_size and max_upload_filesize to >2GB it doesn't work in php5 ... but sourcewise: post_max_size and max_upload_filesize are already defined as long...but not max_file_size in rfc1867.c which helds later on the max_upload_filesize ;-)13:28
zulsounds like fun13:29
\shzul: but to be sure, I'm rebuilding hardy php5 with a "guessed" fix and test it if I'm right13:29
zulk13:29
\shzul: if I'm right, I'll file a bug on LP...with debdiffs and fixes...for hardy, intrepid and jaunty...hopefully someone can sponsor at least for jaunty...and for {hardy,intrepid}-proposed13:30
zul\sh: yep no problem just remember to add the test case for the SRU13:34
\shzul: hmm...can I upload >2GB files to LP? ,-)13:34
zulwell no just how to reproduce it :)13:35
ivoks\sh: so, find a big p0rn movie for test case :)13:38
jevangelohi, how would i be able to get a date that is exactly 6 weeks in the past, using the date command13:48
zulcheck google13:49
jevangelooh, i just got it13:50
jevangelodate -d "6 weeks ago"13:50
Koonzul: the fix for bug 286828 is marked "Fix committed", but i couldn't find it in the Changelog... do you know in which update we can expect to find it ?13:56
uvirtbotLaunchpad bug 286828 in linux "Access to samba 3.0.24-3.0.25 shares using CIFS is broken on 8.10" [High,Fix committed] https://launchpad.net/bugs/28682813:56
zulKoon: thats the kernel bug isnt it?13:57
zulthe nodfs one13:57
Koonzul: yes, should i ping rtg about it ?13:57
zulgimme a sec..13:57
zulyeah13:58
zulbug him13:58
nijababug who?14:01
nijabapoor rtg, he's too nice14:01
zulKoon: its sitting in the git tree though maybe there is an update coming soonish14:02
Koonzul: yeah, I'm just trying to calm down the "where is the fix that is due to us" lousy MAS owners.14:02
KoonNAS14:03
ivokstake care guys14:03
zulyeah I saw14:03
KoonSteve's reposnse was obviously a little too complicated for them.14:03
zulmeh..14:04
KoonI simplified it: "your stuff is broken, but since we are extremely nice, we'll help you"14:04
Koonnow I'm trying to counter the "when?" answer14:05
ivokswhat's the problem?14:06
Koonivoks: the fix is marked 'Fix committed' and a few impatient guys are apt-get-updating every minute to see if there is a new kernel coming up with the fix.14:08
ivoks:)14:09
ivokssomeone should tell then that it's easy to git clone kernel tree and build kernel14:10
zulKoon: ping where you doing any merges today so we dont duplicate the work?14:44
Koonzul: nope14:45
KoonI just pushed a sync this morning (syslog-ng)14:45
zulKoon: cool beans Im just doing the samba merge now14:46
mathiazsoren: did you get a chance to review the open-iscsi package?15:25
L1NUX_1NS1DEhello15:41
L1NUX_1NS1DEDoes anyone know how to setup ssh between a server and client computer15:42
ScottKL1NUX_1NS1DE: Lots of us do.  Please ask your specific question.15:42
ScottKL1NUX_1NS1DE: It'd also be nice if you could manage a nick that wasn't all caps.15:43
jmedinaand less l33t :D15:45
Ahmuck*shurgs* ... i always see nicks as personal names.  do you really want to change your personal name for someone else's perference?15:45
jmedinaL1NUX_1NS1DE: install and run openssh15:46
L1NUX_1NS1DEI'll do some googling on the matter15:48
L1NUX_1NS1DEif I run into some trouble I'll know who to ask15:48
L1NUX_1NS1DEI'l just idle15:48
jmedinaL1NUX_1NS1DE: why not read the officlal ubuntu documentation about the topic?15:48
L1NUX_1NS1DEI'm reading a tutorial on setting up shared keys15:49
L1NUX_1NS1DEbut I'll try that to15:49
L1NUX_1NS1DEthanks15:49
jmedinaL1NUX_1NS1DE: that is another topic than your first question15:49
L1NUX_1NS1DEhmmm....15:50
jmedinayou never ask about setting up key autentication beween client and server15:50
jmedinaby default you atenticate againts the ssh server using a user and password15:50
L1NUX_1NS1DEyes15:51
L1NUX_1NS1DEwell I was able to ssh to  the server15:51
L1NUX_1NS1DEbut I did not have the correct password15:51
L1NUX_1NS1DEI'm reading this:15:52
L1NUX_1NS1DEhttp://inside.mines.edu/~gmurray/HowTo/sshNotes.html15:52
jmedinahttps://help.ubuntu.com/community/SSHHowto15:53
L1NUX_1NS1DEhaha!16:14
L1NUX_1NS1DEit works!16:14
L1NUX_1NS1DEI setup a paired key ssh login16:14
cumulus007does te host file support ports?16:16
cumulus007like localhost:123416:16
L1NUX_1NS1DEports16:16
L1NUX_1NS1DEI'm not sure16:16
L1NUX_1NS1DEI just used the default user@servername.org16:17
cumulus007that's a very useful answer16:17
L1NUX_1NS1DEwell I'm sort of a noob with servers16:17
jmedinacumulus007: which host file?16:18
cumulus007jmedina: /etc/hosts16:18
L1NUX_1NS1DEI don't know...16:19
jmedinacumulus007: that is, that file it is useful to resolve host names not ports16:20
jmedinacumulus007: why you want to do that?16:20
L1NUX_1NS1DEthanks jmedina16:20
cumulus007jmedina: I want to configure my PC so: when I go to localhost:portnumber, a web page on a server opens16:20
L1NUX_1NS1DEoh16:20
L1NUX_1NS1DEI think you'll have to configure the web server16:21
jmedinayou mean with a browser?16:21
L1NUX_1NS1DEno the webserver16:21
L1NUX_1NS1DEyou'll have to configure the port that apache listens to16:21
L1NUX_1NS1DEI think the default is 808016:21
cumulus007jmedina: yes16:21
cumulus007never mind, I have already ficed it.16:23
L1NUX_1NS1DEwhat is a good ftp server to use16:27
L1NUX_1NS1DE?16:27
jmedinaI like pure-ftpd16:31
L1NUX_1NS1DEpure-ftpd16:32
L1NUX_1NS1DEhmm..16:32
L1NUX_1NS1DEright now I'm using vsftd16:33
ScottKmathiaz: Are we having a server team meeting tomorrow?16:41
mathiazScottK: AFICT yes16:41
ScottKmathiaz: OK.  I'll upate the agenda then (just added an item).16:41
katakaioHey everyone, I just joined the team and I'm still finding my way around16:55
katakaioCould you tell me where the agenda is located? Is it on the team wiki?16:56
katakaioNevermind - I got it on a lucky guess16:58
uvirtbotNew bug: #304047 in samba (main) "package samba 2:3.2.3-1ubuntu3.3 failed to install/upgrade: subprocess post-installation script returned error exit status 1" [Undecided,New] https://launchpad.net/bugs/30404717:22
=== L1NUX_1NS1DE is now known as cathode
=== cathode is now known as kizer
kizerhello again17:38
kizerI was wondering what actions I should take to secure a server17:38
kizerWhat port I should turn of17:39
kizeror change17:39
kizerwhich firewall to use17:39
kizeretc..17:39
ScottKkizer: What Ubuntu version are you running?17:40
kizerI guess it's not the smartest thing to do but I'm running 81017:41
kizerwhy17:41
kizerjust how hacked can a linux server get?17:42
kizerand could it compromise an entire network17:42
kizer?>17:42
kizercurrently I'm running web, torrentflux and pure-ftp (with username/password login) on my server17:44
kizer*webmin17:44
Faust-Ckizer, heh 'hacked'17:45
ScottKWell 8.10 is fine to be running.  Webmin, not so much.17:45
Faust-Ca system is only as secure as the person who administers it17:45
ScottKkizer: 8.10 comes with ufw (stands for uncomplicated firewall) installed already, you just need to configure it.17:46
ScottKUbuntu Server by default does not have any ports open, so nothing to close.  Additional stuff you've added will change that, of course.17:46
Faust-Ckizer, and linux has only one fw that i know of17:47
kizerok17:49
kizerthat's a relief17:50
ScottKkizer: I have no idea what webmin opened up though.  You've installed that from a 3rd party repository, so we know nothing about what that package does.17:51
kizerso would it be good practice to change password ever month or so17:51
kizerwith webmin I changed to default port17:51
ScottKFaust-C: That's true, but for someone just starting, writing iptables rules themselves by hand is probably not the best idea.17:51
Faust-CScottK, i was gonna refer to ufw which is just a frontend to iptabes17:52
Faust-Cfrom what i read ufw's syntax is similar to pf17:52
kizerwebmin comes with a webgui interface for changing ip rule conveniently enough17:52
Faust-Ci like that17:52
ScottKFaust-C: yes, I already mentioned ufw to him.17:52
Faust-Ckizer, imo i wouldnt get to comfy w/ webmin17:52
kizerwell it's certainly a handy way of admin'ing a server17:54
kizerwell I'll see what I could do with ufw17:54
kizeroh17:54
kizerwhat are some useful commands for seeing open ports on and proccesses that or running on certain ip's or ports?17:55
ScottKkizer: see man ufw.17:56
erik78sekizer: netstat -pant17:56
kizerthanks17:56
erik78sekizer: Shows you open TCP sockets, ans their application names. Use "sudo" with that as the -p switch is restricted.... "sudo netstat -pant"17:57
kizeryeah that command is really helpfull17:58
kizerit shows that I'm connected via ssh to the server17:58
kizerbut, there's another port that's open17:58
erik78seyou can also do "sudo netstat -panu" (shows UDP ports)17:59
kizerI don't know what service is running from there17:59
kizerthanks17:59
erik78seWhats the port ?17:59
kizerfor tcp it's 13918:00
erik78seOpen services are usually in the "LISTEN" state, and the address will give you a hint of what interface is allocated to it. 0.0.0.0 means "all" interfaces.18:00
Deepsgrep 139/tcp /etc/services?18:00
kizerohh....18:00
Deepsprobably linked to samba18:00
kizerhmm...18:01
kizerthere are at least ten ports that are listening18:01
erik78seIn some cases you can use "telnet <address> <port>" to investigate the nature of the service running on a certain port. try it with some web-server and you'll see.... just type "GET" once connected to a port 80...18:01
Deepss/telnet/nc/18:01
kizerk18:01
* jmedina also likes to use lsof to check for open ports18:02
jmedinalsof -i18:02
kizeroh18:03
kizerok all these port make sense18:03
erik78seSimply using "netstat" wont show you firewalls, since the firewall is "above" the OS service layer. That means that even if you can see the open ports in a LISTEN state - the firewall might block those ports. Test that by trying to connect to the ports with - for example - telnet.18:04
kizerI recognize the port afiliated with there services18:04
ballnmap?18:04
kizerI should change ssh from it's default port18:04
kizerrich?18:04
kizerright?18:04
erik78seNo need.18:05
kizerit's ok the way it is18:05
kizer?18:05
erik78seYes.18:05
uvirtbotNew bug: #303458 in samba (main) "segfault in pam_smbpass.so" [Undecided,New] https://launchpad.net/bugs/30345818:05
kizerthanks ball nmap is the right tool for the job18:05
ballI use it every day.  It's a handy thing.18:06
erik78sekizer: By changing ports for the ssh-service, you will not achieve much security wise. A determined hacker will be able to detect a running ssh-service regarless of port-mapping.18:06
kizerright...18:06
kizerok18:06
erik78se... however, ssh is rather secure if you keep it at a good patch-level.18:07
kizernoted!18:07
* ball tends to describe ssh as "less insecure than Telnet" ;-)18:07
kizerwell I think I'm just about ready to deploy my server for ready use18:08
ballkizer: what are you using it for?18:08
kizerftp server and remote torrent box18:08
erik78seIf you are really anal about networking security, you could change it to a really high port, lets say, 63040. I don't know why you would do that tho and how much it would add to security.18:08
kizerhmmm...18:08
Deepswould protect you against generic scans18:09
Deepscasual hackers looking for easily exploitable machines18:09
Nafalloport knocking? ;-)18:09
ballrtorrent?18:09
erik78seDeeps: yes. but the scan itself is nothing to worry about.18:09
kizerwell unless my server burst into flames I guess I'll be ok with the security for now18:09
Deepsdisabling root logins also helps (stupid that it's enabled by default)18:09
ScottKkizer: If you care about security, pick something other than ftp.18:09
kizernafallo: torrentflux!18:09
Nafallowhat about it?18:10
ballsftp18:10
kizertorrent flux has a webgui18:10
Nafallobeen there, contributed code, gone back18:10
ballI would like some alternative to nfs that was less insecure.18:10
kizerand it's quit usable18:10
Deepsball: nfs over vpn? ;)18:11
erik78sekizer: disable root-login, keep a good patchlevel, use passwords that has no real words in it and use a rudimentary firewall and your server will be mega-hard to "hack/break".18:11
Deeps..via ssh18:11
kizersweet18:11
erik78se... via a network.18:11
kizerthanks for all you help guys!18:11
ballDeeps: Yeah, I suppose that could work at a push.18:11
Deepsif you're running any other internet visible services that aren't firewalled off, they're also exploitable18:11
Nafallokizer: it's not as usable as the fork, tf-b4rt.18:11
Nafallokizer: also, I don't think tflux ever committed my patches for IPv6 support.18:12
kizerk18:12
jmedinaball: nfs is insecure, do you want something really secure, you can use AFS :D18:12
* ball suspects jmedina is joking18:12
erik78seDeeps: yeah, however a simple DROP default rule in the firewall will provide all the security needed.18:12
kizerso I should just set firewall rules to restict access to those services to a select pool of Ip's18:12
kizerwith the ftp18:13
jmedinahttp://www.openafs.org/18:13
kizerI have user name and pasword login enabled18:13
jmedinaball: http://www.openafs.org/18:13
erik78sekizer: you configure your firewall with ALLOW for only those services you want to expose. Lets say SSH. ALL other protocols are DROP.18:13
kizerok18:13
Deepserik78se: i know that, and you know that, not everyone in here may know that though ;)18:13
erik78seDeeps: cheers =)18:14
kizerbut I could still access the services via the local network?18:14
kizerjust not through the internet gateway?18:14
erik78sekizer: Thats in total 2 rules.  <1> from * allow SSH <2> from * deny *18:14
ballback shortly18:14
ballI saw afs and thought it was part of AppleTalk btw.18:15
kizerok18:15
erik78seThen you can refine those rules...18:15
kizerso I won't be able to access the ssh?18:15
erik78se<1> from internal_network allow SSH <2> from * deny *18:15
kizerI'm a bit confused18:15
kizerwhere would I edit this setting18:16
Deeps!ufw | kizer18:16
kizerthrough ufw18:16
ubottuSorry, I don't know anything about ufw18:16
Deepsubottu: fail18:16
ubottuSorry, I don't know anything about fail18:16
kizerk18:16
Deepslies18:16
erik78sekizer: Yes. The first rule tells you "who" can access ssh. The second rule say "nobody can access anything". The rules are allied from top to bottom....18:16
kizerthanks erik18:16
kizeroh ohh oh18:17
kizersorry you had to explain that18:17
kizerI understand now18:17
erik78sekizer: good, happy to help.18:17
erik78seiptables is really easy to configure, once you understand that the rules are "applied" from top to bottom and that in the bottom you should ALWAYS have "from * drop *" (the syntax is different ofc). From there, you can create super-safe firewalls.18:19
erik78seYou can "practice" iptables by trying out "fwbuilder" and try create a simple firewall.18:20
erik78seStart by doing that "from * drop *". That will effectively shut out everything. Then add one rule at the time until your firewall works as you intend.18:21
erik78seHelpful to debug is to do : "from * drop * log" .... that will show you what is acctually dropped by the firewall.18:22
kizerI changed to default app policy to "DENY"18:24
kizerhello again18:46
kizerhas anyone had any experience with setting up wakeup-on-lan18:46
kizerI reading some documentation on it but it seems abit complicated18:47
ballyes18:50
ballit works for me18:50
ball(at least, to an extent)18:50
ballkizer: what are you trying to do?18:57
kizerI'm trying to setup server to wakeup on LAN19:05
kizerSo I could turn the computer on from anywhere19:05
ballkizer: I was going to try that, but couldn't get my Ubuntu Server box to suspend or hibernate.19:06
ballRealistically servers are usually on 24/7 anyway, but I have to test these things.19:06
kizeryeah but I'm sorta on a budget as far as power consumption and wouldn't mind shutting do the system when I know it's not going to be used19:08
ballkizer: that's fair enough.19:08
kizeryup green is good19:08
ballmake sure you wake it up in time to do its cron jobs though19:09
kizerI'm reading a tutorial on how to set it up19:09
ball(backup etc.)19:09
kizerhere19:09
kizerhttp://ubuntuforums.org/showthread.php?t=23458819:09
kizercron can also wake up the machine?19:09
ballThat said, my current Ubuntu Server box is burning 33W.19:09
kizerthat's pretty decent19:10
ballkizer: cron on another machine might be able to wake your server.  I've never tried the rtc alarm clock thing, but that might be another option.19:10
kizerright19:10
kizerbut I would just want to have the server to be able to wakeup on LAN regardless of the computer that's waking it up19:11
kizerAll I have to do is know the mac address of the NIC19:11
ballUsually I have the server up 24/7 and the users switch off their workstations when they're done.19:11
ballI can turn those on from the server19:11
ball(via ssh)19:12
kizernice...19:12
ball...do some remote admin, then turn them back off19:12
ballThat works if they Hibernate too, but not if they "suspend".19:12
kizerbut if a how can you turn them on... remotely19:12
ballI suspect shoddy firmware.19:12
kizeroh oh19:12
ballkizer: I run "wakeup" on the server.19:13
kizerok19:13
tadeu_guys, how can i edit the boot runlevel ?19:13
kizerwhile there in suspend mode19:13
kizer?19:13
ballkizer: while they're switched off, or in hibernate.19:14
ballIf it's just suspended, I can't revive it.19:14
ball(pet peeve)19:14
tadeu_it isn't a easy thing in ubuntu...19:14
kizeroh19:14
ballHmm... I need to fix my Ubuntu Server box.  Perhaps its CMOS setting for WoL is wrong.19:15
kizerso is there an alternate way of setting up a server to boot remotely even if it's turned off19:16
kizerbesided WOL19:16
kizeror is WOL the only way to go19:16
ballshort of a hardware solution, WoL seems the most likely candidate.19:16
kizerok then WOL it is19:17
ballof course, then you need some way to connect to a workstation or VPN in.19:17
kizercould you explain how WOL could be setup19:17
kizerI've been reading some things on the net19:17
ballkizer: on the machine to be woken, I go in and make sure the CMOS setup program ("BIOS") is configured to allow WoL.19:18
kizeryes, I believe I did that19:18
ball...then on the machine that's doing the waking, I make sure I have the wakeup program.19:18
kizerI'll check to repos19:18
kizerok19:18
ballIn practice I have a shell script on the server19:18
ballI just type "wake"19:18
ball...and the workstations all wake up19:18
kizernice, nice19:18
kizerI have to make a script eventually as well19:19
ballmy script is incredibly simple19:19
kizeryeah I  made a script to easy the long command I use for logging into the server via ssh19:19
kizerok19:20
balleach machine has two lines: the first is just a comment with the machine's name, the second is "wakeup {macaddr}"19:20
kizerok19:20
balle.g. "wakeup 00:02:a5:97:88:b2"19:20
ball(without the quotes ;-)19:20
kizerand you just input that to the prog to wake up the remote system19:20
kizerok19:21
kizerI think I understand the setup now19:21
kizerI'll get started on it19:21
ballkizer: well, just having that line in the shellscript calls wakeup (which is the WoL program) and provides it with a MAC address to wake up.19:21
kizerthanks for your help19:21
ballNo problem.  I hope it works for you.  I see too many offices filled with machines left on all night.19:22
ballWith screensavers that don't.19:22
kizeryeah let's save some coal19:22
ball...and the monitors left switched on and DPMS turned off.19:22
ball:-(19:22
ballWish I could fix that Suspend issue though19:25
ballStandby, whatever19:25
kizerwhat program did you use to execute remote wakeup19:27
kizerI found this program called etherwake19:29
ballkizer: it may be the same program, let me check19:30
kizermost likely...19:31
ballkizer: all it does is generate the "magic packet" anyway.19:37
kizerball: did you have to install anything on the remote machines you wanted woken up or just set the BIOS to have WOL enabled19:38
balljust set the BIOS19:38
ball(and perhaps the O.S. ...depends what you're running)19:38
kizerthe OS?19:39
* ball nods19:39
kizerhow so?19:40
kizerwhat needs to be set for the OS19:40
kizerFYI I'm running ubuntu19:40
ballAh okay.  I imagine that will "just work" then.19:40
kizersweet19:41
ballI know last time I tried it I got similar results: Off and Hibernate will WoL.  Suspend won't.19:41
ballI suspect the firmware is at fault.19:41
kizerhmm... can help you there19:42
kizerhave to tried google your issue19:42
yann2hello folks... I want to enable root account on my servers... but to allow people to connect from ttys *only* - ie no su - root from ssh19:43
yann2I tried many many things... got nothing to work.. any suggestion?19:43
yann2I tried /etc/security/access.conf... /etc/securetty... /etc/login.defs... enabling it in pam... it seems to be possible to restrict this in 10 different ways but none works :(19:44
=== jdstrand_ is now known as jdstrand
stefgI've spend the day trying to get ebox working inside a virtualbox virtual machine (hardy host & guest). Neither a jeos install nor a virtual install of the ebox-installer iso gave me a working result. i'm using ubuntu hardy as host and guest. I'm able to login to the virtual ebox-machine but if i try to access the network configuration or the system module all i get is "Page not found" or...19:51
stefg..."Really nasty bug..." Is ebox currently broken?19:51
LoveGurustefg: hay may i know "ebox" what for? what is the purpose to using ebox/19:57
ScottK!ebox | LoveGuru19:58
ubottuLoveGuru: ebox is a web-based GUI interface for administering a server. It is designed to work with Ubuntu/Debian style configuration management. See https://help.ubuntu.com/community/eBox19:58
LoveGuruScottK: thx.19:58
zoopsterstefg:  ebox works fine on hardy...have not run it in a vm. Do you receive anything in syslog or messages?19:59
LoveGuruahh "warning" for 8.1019:59
zoopsterstefg: other than your 404 error20:00
stefgzoopster, LoveGuru : nothing particular. I started doing a jeos install, then adding the ppa-repo for the latest stabel ebox packages and installed ebox-samba ... didn't work, could not enable the firewall & network module, thus NO SAMBA20:02
stefgtehn i thought: ok, jeos might be a bit too stripped down and tried the ebox installer (hardy-server with post installation script)... same result. At the moment i'm not even sure wether i'm looking at an ebox- or a virtualbox problem20:03
kizerwow that was automagical!20:04
kizerI used etherboot and the server started up!Q20:05
kizerawsome20:05
stefgthere is a (debian-based) live CD which i could run in virtualbox... that one worked, so i guess is an ebox problem and some package might be missing20:05
kizerit's just wonderful when something just works20:05
stefgkizer: in turn it's just frustrating if something does not, and you don't get a clue why20:06
* ball returns, avec hot chocolate.20:06
zoopsterstefg: assume you have ebox-firewall and ebox-network installed, correct?20:09
zoopsterseeing as samba requires them..you must have20:10
stefgzoopster: right... plain server/jeos install and a simple apt-get install ebox-samba (trusting that the dependencies will pull in everything that's needed)20:10
stefgso this is actually a straight forward thing... and i have ebox running on real hardware, so i know it works there. But inside a VM i can't get it to work20:11
stefgi tried ther -server and -virtual kernel, tried the stock hardy version of ebox (0.11.something) and the ppa-repo version (0.12.3) ... doesn't make any difference20:13
stefgATM i'm not even considering a bug report, because that 'doesn't work' type of reposrts don't help anybody20:16
stefgso let me ask the other way 'round: did anyone in here succed in getting ubuntu-server with ebox on top to run inside a virtualbox vm?20:21
LoveGurustefg: i never tried "ebox" well will try it. inside the VMware20:53
=== liberfiasco is now known as libervisco
stefgLoveGuru: would be nice... i suspect that the virtual network adapters in vm's confuse the ebox network conf module. If vmware works, but virtualbox doesn't  we found something out ...20:57
didrocksjdstrand: I thing this merge is still pending for ufw: https://code.edge.launchpad.net/~didrocks/ufw/case-insensitive-app/+merges :)21:01
jdstranddidrocks: yes it still is :(21:01
jdstranddidrocks: however, I have not broken my promise to you-- it will be the first thing I do when I get back to ufw21:01
jdstranddidrocks: I hope to get back to it soonish21:02
didrocksjdstrand: no problem. It was just a reminder to not break the merge ;)21:02
didrocksjdstrand: take your time. You have an UDS to prepare :D21:03
jdstrand:)21:03
\shopennms + ejabberd + mail + opennms dashboard on ubuntu ==> rock hard management compatible tool21:05
\shespecially when the dashboard is displayed on a very big, very full hd flat screen21:06
=== bdmurray_ is now known as bdmurray
AlexC_morning all21:18
AlexC_I'm getting some weird entries in my /var/log/mail.log regarding Dovecot: Dec  1 19:00:11 foobar dovecot: pop3-login: Disconnected: user=<shop>, method=PLAIN, rip=200.219.227.216, lip=72.14.177.5621:19
\shhmm...what is the best way to see the filecache memory on the CLI?21:19
=== liberfiasco is now known as libervsico
AlexC_I have at least 100 of those entries, all with different usernames. Is this someone just trying to connect - or have they actually connected, and disconnected (it's the wording' disconnected' that is worrying me!)21:19
=== libervsico is now known as libervisco
jmarsden|workAlexC_: Sounds like someone is trying a small scale dictionary attack.  if you see entries with "dovecot: pop3-login: Login: user=<someuser>" from that same remote IP, then you should be worried -- it means they guessed a password correctly.21:37
jmarsden|workIf you see all the "unwanted" login attempts are from the same IP or same subnet, you can block them with an iptables rule or similar filtering.21:38
AlexC_jmarsden|work, awesome, at least they are not successful logins then21:40
jmarsden|workCorrect.21:40
jmarsden|workYou can verify you manually connecting (telnet servername 110) and doing user foo and then pass bar and then quit... and look at your resulting log entries.21:41
AlexC_thanks =)21:41
AlexC_jmarsden|work, ah, good idea21:41
Deepss/telnet/nc/ !21:41
Deepsnetcat, not telnet!21:41
jmarsden|workDeeps: Both work equally well :)21:42
Deepsuntrue, telnet process can block and not allow you to ^C exit in some cases21:42
jmarsden|workDeeps: Give me a way to duplicate that.  when connecting to a POP3 server...21:43
jmarsden|workBTW you would usually ctrl-] close in telnet, not ctrl-c...21:43
Deepsnon-standard approach, most programs will respond to ctrl+c, like netcat ;)21:44
* jmarsden|work has been telnetting to POP3 and SMTP servers for testing since at least 1994. Read the telnet man page.21:44
Deepstelnet pop3.telefonica.net 11021:44
Deeps+OK POP3 PROXY server ready (7.2.078)21:44
Deepsat which point ctrl+c fails, ctrl+] works fine mind21:45
jmarsden|workwhy would you ctrl-c at that point, you can type quit ... you just need to know the POP3 commands...21:45
Deepswell you're specifying to pop3 servers now, i was generalising when i recommended nc over telnet21:46
jmarsden|workNo.you were responding to a specific suggestion to telnet to a POP3 server.21:46
jmarsden|workOh well.21:46
Deepsalthough if there are 2 solutions to a problem, one uses a more commonly used approach, the other uses a special syntax and requires knowledge of the protocol + man page reading to get right, which would be the preferred approach for newbies? ;)21:46
AlexC_jmarsden|work, tailing the logs, and doing what you said - I see no such message when an auth fails21:47
AlexC_I get '-ERR Authentication failed.' within telnet, though nothing in the logs21:48
jmarsden|workAlexC_: Hmm, and when you then quit the telnet session... still no disconnect??21:48
AlexC_jmarsden|work, ah, when quiting I get: pop3-login: Aborted login (1 authentication attempts): user=<lolcake>, method=PLAIN,21:48
jmarsden|workAlexC_: Well, that's close... I suspect you didn't exit the session cleanly or something, to get that.21:49
AlexC_jmarsden|work, I typed 'quit'21:49
AlexC_is there another way of closing it?21:50
jmarsden|workAlexC_: OK, go it... it is the other way around...  telnet servername 110 then user foo pass bar, then ctrl- and then ctrl-c and you'll get the "disconnected" message.21:53
jmarsden|workSo whoever is trying passwords is not typing the quit command, apparently.21:53
AlexC_ctrl- ? Missing a letter out there?21:54
jmarsden|work* should have been "then ctrl-] and then ctrl-c ..." above21:54
AlexC_jmarsden|work, ahh I see. Awesome, also just closing the terminal gets the same21:55
jmarsden|workOK.  Anyway, that confirms the diagnosis.21:55
AlexC_Is there anyway I can up the log even, so it actually says failed attempt (so I can get Fail2Ban picking it up and blocking them)21:55
jmarsden|workI don't know.  I have a daily script that greps through my maillogs and uses sort and uniq to show me any probably offenders doing this, then I block them by hand... there's probably a way to automate that further.21:56
AlexC_ok, well I'll look into it later on - at least I know what these messages are now =) Thanks for all the help, put my mind at rest!21:57
jmarsden|workNo problem.21:57
dana_goodi'm trying to set up ndoutils-nagios2-mysql, but it keeps on getting stalled saying "dbconfig-common: flushing administrative password"22:04
axisysi have a sun x4100 which supports 64 bit22:18
axisysshould I install 64-bit ubuntu server 8.10 ?22:18
axisysif there are lots of issue with pkgs I rather not22:19
=== jare_ is now known as Jare
dana_goodaxisys: what application are you running?23:05
axisysdana_good: it will be mainly lamp23:12
dana_goodshould work fine 64bit23:12
axisysalso I have two disks in this x4100 amd opteron server.. how do I install in using mirror raid ?23:13
yann2soft or hard? which version of ubuntu?23:13
axisysyann2: soft23:15
axisysyann2: intrepid23:15
yann2you can get hard raid with x4100 , why use a soft raid?23:15
axisysyann2: ofcourse still deciding if I sh'd go with 64 bit or 32 bit and alternate or regular server iso23:16
yann2why not use 64bits? its a 64bits server :)23:16
axisysyann2: so get the 64bit alternate iso ?23:16
dana_goodaxisys: if you're using SAS drives do HW raid23:16
yann2yeah23:16
yann2how many disks do you have?23:17
yann2dana_good > I had a bug using soft + hard raid on a x4100 not longer than a week ago, very annoying23:17
axisysok how do I do it w/ hard raid? i have two SAS disks23:18
dana_goodyann2: i have very little experience with those sort of issues. 99% of my linux boxes are vms.23:18
yann2how many disks do you have?23:18
axisysyann2: 223:19
yann2it was quite specific to my install.. maybe you won't run into it23:19
yann2right so you won't :) my bug was with 4 disks, 2 raid 1, grub was installing on the wrong virtual disk23:19
axisysdo I get the alternate iso or regular server iso?23:19
yann2i didnt know there was a server alternate :)23:20
yann2but go for hardware raid23:20
yann2where did you get that x4100? :P23:20
axisysyann2: ok how do I do the hardware raid ?23:20
axisysyann2: work23:20
yann2during the boot, it will tell you "to configure blah press ctrl+key"23:20
yann2ctrl-a or ctrl-q23:20
yann2not sure23:20
yann2boot it it tells you at some point :)23:21
axisysyann2: tnx23:21
axisysyann2: i am solaris guy.. thsi will be my first ubuntu 64bit server23:22
yann2good luck... I had a hard time getting my hands on solaris 10 on my t1000 :)23:22
axisysi have been using ubuntu since 5.0423:22
axisysyann2: solaris is joke for me23:23
axisysyann2: but hopefully this will be fun too23:23
axisysin my laptop i am using ubuntu23:23
yann2you can't run vms on x4100 you know that :)23:23
axisysyann2: not planning to23:24
axisysyann2: should I be able to install it from console?23:29
axisysyann2: i dont have any gui23:29
axisysyann2: connected to it thru SP23:29
yann2yes23:31
yann2normal debian-installer23:31
yann2SP should be fine23:31
yann2but there is a VGA port :)23:32
axisysyann2: i know.. but i am doing the installtion remotely23:33
uvirtbotNew bug: #304194 in mysql-dfsg-5.0 (main) "package mysql-server-5.0 5.0.67-0ubuntu6 failed to install/upgrade: el subproceso post-installation script devolvi? el c?digo de salida de error 1" [Undecided,New] https://launchpad.net/bugs/30419423:51
=== boshhead_ is now known as moreon
=== moreon is now known as boshhead

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