/srv/irclogs.ubuntu.com/2015/10/19/#ubuntu-server.txt

=== Guest16046 is now known as ikonia
TylerGetsWhat should be my first step in diagnosing why I cant ssh into my server? All other services are working fine..00:57
pmatulisTylerGets: check /var/log/auth.log of the server you're trying to log into01:01
=== markthomas|away is now known as markthomas
=== _ruben_ is now known as _ruben
=== markthomas is now known as markthomas|away
lordievaderGood morning.08:01
=== CiPi is now known as cipi
=== Lcawte|Away is now known as Lcawte
=== Lcawte is now known as Lcawte|Away
atralheaven_I have problem with openvpn, I can't connect to it, is there anyone experienced with openvpn to help me? everything was ok I didn't change anything but I can't connect anymore13:15
thebwtyou're positive it's still listening on whatever port it's running on (mine runs on 443)13:19
thebwtif you do 'sudo netstat -ntpl' . openvpn-openss should appear under 'program name'13:21
thebwtoh, they're gone...13:21
=== balloons is now known as Guest77565
=== Guest77565 is now known as balloons_
atralheaven_thebwt: are you speaking to me? I use 443 too13:29
thebwtah, perfect! do you see the service listening on port 443?13:29
thebwtwe need to see if it just died randomly, or if it was an update or something13:29
thebwtor a server reboot13:30
thebwtthose are the normal ways that could cut off13:30
lordievaderCheck the 1194 udp port too (or what ever it was).13:30
atralheaven_with netstat -ntpl command? no there is just python and sshd13:30
thebwtand you did it with sudo right?13:30
thebwtah yea, you got that output13:30
atralheaven_well I was root user13:30
thebwtah gotcha13:31
thebwtand you've already restarted the openvpnas service?13:31
atralheaven_yes, several times...13:31
thebwtmine outputs to '/var/log/openvpnas.log'13:32
atralheaven_also the vps13:32
thebwtdo you have anything in that log?13:32
atralheaven_I disabled ufw13:32
thebwtthe fact that there isn't an openvon-openss on netstat tells me it's not starting up13:32
atralheaven_I don't have that file13:33
thebwtdo this: "ps aux | grep openvpn"13:33
thebwtone of those should be the full line of the command, it should have a --logfile flag13:34
thebwtand for that matter, also a --pidfile , stop the service and make sure that pidfile doesn't exist13:34
atralheaven_this is output13:37
atralheaven_http://pastebin.com/A9hf2Ypp13:37
atralheaven_I didn't find logfile13:37
atralheaven_but there is  pid13:37
atralheaven_let me stop it first..13:37
thebwthmm, different type of install, then stop the service and see if that pid still exsists13:38
thebwt(it shouldn't)13:38
atralheaven_its gone,13:38
atralheaven_root      8850  0.0  0.0  11740   924 pts/1    S+   13:38   0:00 grep --color=auto openvpn13:38
atralheaven_its the only line13:38
thebwtno13:39
thebwtthe actual file13:39
thebwt@ /run/openvpn/server.pid13:39
atralheaven_btw I followed this instruction: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-14-0413:39
thebwthmm13:40
thebwtfun13:40
atralheaven_/run/openvpn/ is empty13:40
thebwtI'm not sure how to help much more, try to find out how to insert the --logfile flag into the startup (init script?).13:41
thebwtyou need that log13:41
atralheaven_and openvpn service is stoped13:41
atralheaven_internet without openvpn is useless here :(13:41
atralheaven_everything is censored13:42
lordievaderRun the openvpn server manually, that will likely tell you why it crashes (if it does).13:42
thebwt^ true13:43
thebwt(and if that doesn't work, if you're just trying to do web traffic, have you looked into ssh+socks5 ? it's way easier13:44
smosermed_, i'm looking at week old scrollbacks and see your question about 2 boot volumes.13:54
smoseri would suspect that vda woudl get booted most or all of the time.13:55
smoserthe bios probably reliably loads the grub from the "first" drive.13:55
smoserbut then the grub there (in a ubuntu cloud image scenario) will find a kernel and initramfs and a kernel command line like 'root=LABEL=cloudimg-rootfs'13:56
smoserand if 2 devices have LABEL=cloudimg-rootfs, then you are not guaranteed reliable behavior.13:56
smoserhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/66523513:57
ubottuLaunchpad bug 665235 in cloud-init (Ubuntu) "grub-legacy-ec2: attaching a volume to maverick instance may boot off it" [Wishlist,Won't fix]13:57
smoserthis could potentially be fixed by using LABEL=uuid13:57
smosererr.. UUID=uuid13:57
smoserbut that doesn't guarantee anything in the face of duplicate uuid, which you would have in a snaphost case.13:58
=== alai` is now known as alai
=== balloons_ is now known as balloons
=== cz2 is now known as NetworkManager
=== NetworkManager is now known as pulseaudio
=== wendar_ is now known as wendar
=== Lcawte|Away is now known as Lcawte
=== SpamapS_ is now known as SpamapS
=== armyriad2 is now known as armyriad
=== markthomas|away is now known as markthomas
=== cipi is now known as cip
=== cip is now known as cipi
=== mfisch` is now known as mfisch
=== mfisch is now known as Guest27947
=== Guest27947 is now known as mfisch
=== Guest9808 is now known as Adri2000
bittinhttp://open-zfs.org/wiki/Main_Page ZFS Devsummit :)18:44
=== cipi is now known as cip
atralheaven_thebwt: hello...?19:40
thebwthowdy19:40
atralheaven_thebwt: sorry my internet was disconnected19:41
atralheaven_do you remember me? I had problem with openvpn19:41
thebwtI do, are you just trying to pass web traffic through?19:45
atralheaven_thebwt: yes, to pass the censorship19:46
thebwtyou know you could just use an ssh tunnel with a socks proxy to do that right?19:47
thebwtand you wouldn't have to manage this whole openvpn service19:47
atralheaven_the block it19:47
atralheaven_and on my phone I can't use it19:47
atralheaven_they can't block openvpn easily19:47
thebwtbecause you reached the extent of my openvpn knowledge19:47
thebwtah hotcha19:47
thebwtgotcha*19:47
thebwthence the https/44319:48
atralheaven_unless they use DPI19:48
atralheaven_yes19:48
atralheaven_openvpn was not on netstat list, what does that mean exactly?19:48
atralheaven_if they use DPI, I will use obfsproxy or something like this, and they can do nothing about it!19:49
jwitk0Hey All,  I'm having some issues with LACP on ubuntu server, problem described here http://serverfault.com/questions/541917/lacp-with-2-nics-working-when-either-one-is-down-not-when-both-are-up19:49
jwitk0has anyone ever seen this before?19:49
=== jwitk0 is now known as jwitko
thebwtatralheaven_: it means that the program isn't bound to that port, possibly because it's failing to start19:50
jwitkoI'm actually trying on ubuntu 14.04 at this point19:50
atralheaven_thebwt: how can I start it manually, to check if the problem is because of that? I tried restarting the service, rebooting, it didn't help19:51
atralheaven_thebwt: can it be because no one is connected to it?19:52
thebwtI'm not positive, look at the init script for it in /etc/inti.d/openvpnsomethinsomethingstometing19:52
thebwtI doubt it19:52
atralheaven_I have /etc/inti.d/openvpn file19:53
thebwtyup dig through that ,that has the commands the system uses to start it)19:54
thebwt.*19:54
atralheaven_its a long file with alot of options, I think it write configs to server.conf file, maybe19:58
atralheaven_is "/etc/init.d/openvpn start" different from "service openvpn start"?19:59
atralheaven_thebwt: status says that: * VPN 'server' is running20:00
atralheaven_if no one is connected to openvpn, should it be listed on output of netstat -ntpl?20:01
thebwtyes, it's the thing that waits for people to connect20:08
=== Guest44026 is now known as TheEternalAbyss
=== TheEternalAbyss is now known as Guest44216
=== Guest44216 is now known as TheEternalAbyss
lordievaderatralheaven_: /usr/bin/openvpn --config $CONFIG_DIR/$NAME.conf20:33
atralheaven_lordievader: may you explain more?20:37
lordievaderatralheaven_: That is what I got from the init file.20:37
lordievaderI.e. that is what upstary/sysv-init runs.20:37
atralheaven_lordievader: how can I make sure its running?20:39
atralheaven_lordievader: "service openvpn status" says its running20:39
atralheaven_but its not listed on netstat20:39
lordievaderatralheaven_: Does ps list it?20:41
atralheaven_no :|20:42
atralheaven_lordievader: what is ps?20:42
lordievaderatralheaven_: ps - report a snapshot of the current processes. See 'man ps'.20:43
atralheaven_lordievader: what should I do?20:45
atralheaven_lordievader: why shouldn't it be running now?20:46
lordievaderatralheaven_: 'ps aux|grep openvpn' does that return anything?20:47
atralheaven_yes20:48
atralheaven_when I stop openvpn service, its the output:20:49
atralheaven_root     13514  0.0  0.0  11740   924 pts/2    S+   20:49   0:00 grep --color=auto openvpn20:49
atralheaven_when its running, its more20:50
lordievaderOkay, so it does run. Check it's log why it ain't claiming the ports.20:51
atralheaven_where is the log file? I couldn't find it20:51
lordievaderhttp://askubuntu.com/questions/276664/where-are-the-openvpn-connection-logs-and-configuration-files20:51
atralheaven_what should I be looking for in the logs?20:52
lordievaderatralheaven_: Why it ain't claiming the ports. Read them and see what it is and is not doing.20:53
atralheaven_I don't have "/var/log/openvpn.log" file, and "grep VPN /var/log/syslog" just says that openvpn ... built on .....20:58
lordievaderhttp://ubuntuforums.org/showthread.php?t=219807921:04
atralheaven_lordievader: I've set verb to 6, im going to check again...21:10
atralheaven_lordievader: I found this: TLS key negotiation failed to occur within 60 seconds (check your network connectivi$21:20
atralheaven_lordievader: TLS Error: TLS handshake failed21:20
lordievaderThat is rather unlikely the reason for him not listening to the ports.21:25
lordievaderAre you sure you have a server configuration?21:25
atralheaven_what do you mean?21:27
atralheaven_server.conf file?21:27
lordievaderatralheaven_: I don't think a server should try and setup an ssl connection. That'll come when a client tries to connect.21:28
lordievaderHence the TLS handshake stikes me as odd for a server.21:28
atralheaven_I use port 443 for openvpn21:29
lordievaderThat is not what I am saying... Could you pastebin your server config?21:29
atralheaven_and openvpn uses easy-rsa for making  keys21:29
atralheaven_sure21:29
atralheaven_lordievader: http://pastebin.com/qDAiHxgY21:32
atralheaven_what is strange for me is why it was working fine, and stopped working when I didn't do anything21:34
lordievaderUpdates?21:36
lordievaderSomething must have changed.21:36
lordievaderThe config you gave works fine.21:37
lordievaderYou should have seen a connection in the logs.21:38
lordievaderWasn't there some country firewall there?21:39
lordievaderIf so you might want to make it connect over tcp:80 instead of udp:1194/21:39
atralheaven_it may be because of country firewalling21:43
atralheaven_I used port 443 for it21:43
atralheaven_but there can be DPI21:43
atralheaven_that's why I wanted you to check if it connects21:44
atralheaven_and sent you the .ovpn file21:44
lordievaderDPI doesn't really come in to play, they read garbage.21:44
lordievaderAnyhow openvpn really communicates over udp:1194.21:44
atralheaven_what do you mean?21:45
atralheaven_they can block 11921:46
atralheaven_4 easily21:46
lordievaderatralheaven_: Precisely the point ;)21:46
lordievaderHence the advice to use a common port like tcp:80 ;)21:46
atralheaven_ok so I changed it to 44321:47
lordievaderHow?21:47
atralheaven_on the config file21:47
atralheaven_and user file too21:47
atralheaven_but if they use DPI, it wont work anymore21:47
lordievaderDPI has nothing to do with this.21:48
atralheaven_so I wanted someone from another country to check if he can connect to it21:48
lordievaderThe packet contents is encrypted.21:48
atralheaven_thats why tor team made obfsproxy21:49
atralheaven_because of DPI21:49
=== utlemming_sprint is now known as utlemming
atralheaven_lordievader: I have to go soon, what do you suggest to do?21:52
lordievaderAre vpn's illegal there?21:52
atralheaven_yes21:52
atralheaven_where I live21:52
lordievaderThen I cannot give any advice. Read the guidelines.21:53
atralheaven_vpn is illegal where I live, not where you live!21:53
atralheaven_I use vpn to bypass censorship21:53
lordievaderTrue, but if I help you in doing something illegal I am still an acomplice.21:54
atralheaven_but where you live, in your law, its not illegal21:54
lordievaderSearch the web, figure this one out on your own. There are plenty of resources on this.21:54
atralheaven_for us its illegal but only on paper.... every person use something to change her/his ip, internet is useless without it!21:55
lordievaderAnyhow you have ssh, use that as a proxy.21:55
atralheaven_I don't understand why you are worry about it? I should be worry not you21:55
atralheaven_yes I can, but only on my laptop21:56
atralheaven_and they have blocked it before, I don't know it works now or not21:56
lordievaderI have agreed to the CoC, hence I cannot help you in doing something illegal. That it ain't illegal here doesn't matter, that it is illegal there does.21:56
atralheaven_you can't help me doing something illegal in which law?21:57
atralheaven_law of where?21:57
lordievaderThe Code of Conduct ain't a law.21:57
atralheaven_I don't understand :| where I live, we have countless stupid laws that are only on paper, many people don't even know they exist, internet without a vpn/proxy is useless here, you can do nothing with it...22:00
atralheaven_it shouldn't be illegal on this channel too22:00
atralheaven_but its ok...22:00
atralheaven_I will do something myself :|22:01
atralheaven_thanks22:02
=== Lcawte is now known as Lcawte|Away

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