/srv/irclogs.ubuntu.com/2016/01/10/#ubuntu-server.txt

=== Lcawte is now known as Lcawte|Away
=== Lcawte|Away is now known as Lcawte
lordievaderGood morning.10:01
=== Lcawte is now known as Lcawte|Away
nasixHi every body!13:09
nasixI have a question regarding apatche. Actually I've done all my search and found nothing!13:10
nasixI want to run a simple CGI script to execute an application like xterm.13:11
lordievaderXterm with apache as a parent? Sounds like a bad idea.13:11
bekksOUCH13:12
nasixReally?13:12
nasixOk13:12
bekksYes.13:12
nasixThank you for your response13:12
nasixActually I want to let some clients to run some application on my server13:13
nasixand13:13
bekksNo need to use enter as punctuation sign.13:13
nasixthen send the application window to that specific user13:14
bekksThats not how a webserver works.13:14
nasixIs there a good way to do so?13:14
nasixI don't want to let those client have ssh or something like that to my server13:15
bekksThe only usable solution I do know of is a Citrix XENDesktop Web Server.13:15
nasixlet me google it...13:17
nasixSo this is a Desktop virtualization software.13:20
nasixBut my final target is to let my clients run some specific applications like firefox or so.13:21
nasixI don't want to let them see the whole desktop environment13:22
SchallaThis sounds borked imho.13:22
SchallaWhere is the usecase for this?13:22
bekksThe usecase is to give a user a desktop or application via web.13:23
nasixWe have a single Linux machine which can access the internet.13:23
maswanwell, if you only want to run command line tools, you can have a browser terminal13:23
nasixWe should not connect any other machine to the internet13:23
maswangraphical stuff the only reasonable way I know of is complete remote desktops13:23
maswanor ssh with X forwarding13:24
nasixcan you check my cgi-script: http://paste.ubuntu.com/14457834/13:26
Schallabekks: Doesnt make that more sane? Or is it only me?13:26
Schalla(The idea with apache spawning applications)13:26
bekksSchalla: Basically its not apache which spawns the processes, but a small application (the citrix receiver, even webbased) which does it. On the client.13:27
nasixwhen I run this as a bash script, it goes well13:27
SchallaGot a small question regarding software raid, I created via ubuntu server installation a degraded raid 1 and added then later on a new partition (this is a vm, but I will do the same later on a physical server), is it normal that the number is 0 and 2?13:30
Schallahttps://i.imgur.com/TU4cE2V.png13:30
SchallaThe sync worked as intended after adding and the degraded state is also gone, just wondering about the number + minor13:30
nasixbekks: Of course when I set DISPLAY variable to some thing like 192.168.1.108:0 , I can see its window on that client. (192.168.1.108)13:30
bekksnasix: The mechanism behind that is totally different.13:31
nasixbekks: I can see the window for a short time and then it closes automatically.13:32
nasixbekks: what is that mechanism?13:33
nasixbekks: can you shed light on that or guide me to some reference?13:34
bekksnasix: citrix provides a lot of technical documentation.13:34
nasixbekks: can I use critix for just sending a single application window upon client request?13:35
bekksnasix: Yes.13:36
nasixbekks: Thank you very much for your help. Is it so hard to achieve that?13:37
bekksIn a safe way - yes.13:37
nasixbekks: Thank you. I'll try to do that. I was working on this since yesterday!13:38
=== Lcawte|Away is now known as Lcawte
mfaroukgpeople i there is issue with the built-in firewall not blocking the google IPs17:59
rokusanianyone?? i'm stuck with a dlink router port forward works on some survialance ip box but not ubuntu server :(17:59
rokusanionline port checker says port is closed for ufw enable ports18:00
lordievadermfaroukg: What do you mean?18:00
rokusanibut that same online port checker shows another port i..e cameras ip box as open and is accessible using static ip18:01
mfaroukglordievader, i have built-in iptables list they should block the google all sites but still can access google , the main function for the FW is not working18:02
mfaroukglordievader, this was discovered yesterday only18:02
lordievadermfaroukg: Could you pastebin your firewall config?18:03
mfaroukglordievader, http://pastebin.com/2RJ7eFSg18:04
lordievadermfaroukg: Your output policy is accept without any drop rules? So, yes you can still access google.18:05
mfaroukglordievader, but how ? i have used for long time it was simply redirect me to my local website before , now it is some times redirect and some times passes it18:06
lordievadermfaroukg: Are you talking about your forward table? If so, that is a mess.18:07
lordievadermfaroukg: Anyhow, if you want to block outgoing connections then you need to specify drop rules in the output table.18:08
mfaroukglordievader, some thing happened after latest kernel update , or google have done something confuses ubuntu check this http://pastebin.com/TiGEeShm18:09
lordievaderWhat is wrong with that?18:10
mfaroukglordievader, and many many location with different IPs18:10
lordievaderYeah, it is google ;)18:10
mfaroukglordievader, when i block some it passes others18:10
lordievaderThat makes sense, doesn't it?18:11
lordievaderMuch more effective to black hole the google dns records.18:11
mfaroukglordievader, but how i stop the users from searching and watch youtube .. they don't stop and network traffic is f**k18:11
lordievadermfaroukg: Like I said, use the output table of iptables.18:12
AboodymanCan you block a range of IPs18:12
Aboodyman?18:13
lordievaderThat too, you can block google's ip range.18:13
AboodymanBut how to know the ip range18:13
mfaroukglordievader, Aboodyman, how i can let the tun0 only control that i don't want permanent blockage18:14
lordievadermfaroukg: What?18:14
Aboodymanmfaroukg: you can not do that unless you install third party software18:15
mfaroukgAboodyman, the range is in the pastebin18:15
mfaroukglordievader, Aboodyman, i have coovachilli controlling the traffic with virtual tunnel tun018:16
Aboodymanlordievader ?18:16
lordievadermfaroukg: Do you handle the dns requests?18:17
lordievaderAboodyman: ?18:17
AboodymanWhy aren't you talking18:17
mfaroukglordievader, I changed the DNS to use the google's 8.8.8.818:17
lordievaderHmm, if you controlled it you could black hole google'18:18
lordievaders domain ;)18:18
mfaroukglordievader, it was working like charm but suddenly it is throwing me down on the floor18:18
lordievaderAnyhow, i'd setup an ipset with all the google ip's and drop the output if the set matches.18:19
mfaroukglordievader, hard workaround :( -crying-18:20
Aboodymanmfaroukg: What would you do then18:21
lordievadermfaroukg: It ain't, it is actually quite lovely. Just one line in iptables and a flexible set.18:21
mfaroukglordievader, can you check this script : http://pastebin.com/T3kzb7uE it might just need some modifications18:24
lordievaderAh, that is where the forward rules come from... did you write this?18:26
lordievaderLooking at your earlier paste of your iptables rules I'd say some variables evaluate to ''.18:27
mfaroukglordievader, i have contributed only18:27
mfaroukglordievader, do you want the iptables -S ?18:29
lordievaderNo.18:29
lordievaderLike I said earlier, I'd go with the ipset approach.18:29
mfaroukglordievader, do you suggest DNS changing ?18:30
lordievadermfaroukg: No, read my answer from before.18:31
mfaroukglordievader, but this firewall should redirect ALL to my local hotspot client18:33
lordievaderThen let it do that, besides it is not the firewall doing that, but the routing.18:34
mfaroukglordievader, you're right .... would you mind hinting18:36
lordievaderhttp://unix.stackexchange.com/questions/126595/iptables-forward-all-traffic-to-interface18:37
Aboodyman👍18:40
mfaroukg:-*18:41
=== Zupreme is now known as zupreme
=== zupreme is now known as Zupreme
=== Lcawte is now known as Lcawte|Away
dannymichelfail2ban keeps stoping dovecot from working. is there anything i can do about that? http://pastebin.com/YMDaZPhf22:06
SchallaRoyK: Everything worked out fine btw! Tested the procedure first on a VM and did it today on the real host, everything worked fine. :)22:19
SchallaJust have to configure now the software raid for the 2 data disks and then start with the KVM config22:19
axisysfailing to install lsscsi... looks like linux header dependency needs to be resolved... but apt-get -f install fails too.. any suggestion on how to get around it? here is the apt-get output23:06
axisyshttp://dpaste.com/37ZWRJ123:06
axisysrunning Ubuntu 12.04.3 LTS23:07
axisyson kernel 3.2.0-60-generic23:07
bekksRead line 42. You ran out of disk space.23:10
axisysbekks: doh! let me clean up /boot .. 81% now23:13
trippeh_ahh, all the times I've had a full /boot :))23:17

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